new version of ndk-svelte-components (and NDK too)

πŸ‘‰ Minimally-styled event cards

```

```

and it will render it.

Supported kinds:

* Short notes (kind:1)

* Highlights (kind:9802)

This is minimal, but it's lays the foundation. Eventually every event kind will be supported.

Kudos to nostr:npub1jlrs53pkdfjnts29kveljul2sm0actt6n8dxrrzqcersttvcuv3qdjynqn, he doesn't know it, but it's pretty much fully his code from Coracle doing this πŸ˜‚

https://void.cat/d/798bxvdorVRqEs3KWNGn9G.webp

Reply to this note

Please Login to reply.

Discussion

πŸ”₯

πŸ˜‚

Truly hilarious to see my code there. How recently did you pull it? I have support for 3 or 4 other kinds and recently did some fairly painful work with quotes I wouldn't want you to have to replicate (recursive parameterized slot forwarding πŸ₯Ά)

from 06405d5cc343483f15fe934956d3071dd12ee4eb

I removed a bunch of kinds that you had support for since I wanted to release a bare-bones MVP; I'll start adding the ones you have asap, but I didn't want this branch to stay unmerged for too long so I yoloed into `master` πŸ˜…

npm add @nostr-dev-kit/ndk-svelte-components doesnt work for me:

npm add @nostr-dev-kit/ndk-svelte-components

npm ERR! code ERESOLVE

npm ERR! ERESOLVE unable to resolve dependency tree

Hmm that’s weird af ; does it say anything else? What npm version?

Yes, all the output:

npm add @nostr-dev-kit/ndk-svelte-components

npm ERR! code ERESOLVE

npm ERR! ERESOLVE unable to resolve dependency tree

npm ERR!

npm ERR! While resolving: linktr@0.0.1

npm ERR! Found: svelte@4.0.1

npm ERR! node_modules/svelte

npm ERR! dev svelte@"^4.0.0" from the root project

npm ERR!

npm ERR! Could not resolve dependency:

npm ERR! peer svelte@"^3.54.0" from @nostr-dev-kit/ndk-svelte-components@0.3.0

npm ERR! node_modules/@nostr-dev-kit/ndk-svelte-components

npm ERR! @nostr-dev-kit/ndk-svelte-components@"*" from the root project

npm ERR!

npm ERR! Fix the upstream dependency conflict, or retry

npm ERR! this command with --force, or --legacy-peer-deps

npm ERR! to accept an incorrect (and potentially broken) dependency resolution.

Looks that its because the svelte version?

npm 8.19.3