Replying to Avatar verbiricha

Rich rendering of bech32 entities

The npub/nprofile could be rendered as the username with a link to the user profile when nostr:nevent1qqsyxwvgdaacc3hcd9rjwmjwqsfpu8guhrj37026ntl3aqw02mrprsgpp4mhxue69uhkummn9ekx7mqzyr7jprhgeregx7q2j4fgjmjgy0xfm34l63pqvwyf2acsd9q0mynuzp660g9 is implemented.

The nevent of an issue could be rendered as a link to the issue and the text could be the issue title. Similarly for proposals.

The naddr of a repo could be rendered as a repo card with the basic repo data.

Definitely.

Here are some notes on implementation:

The framework for adding rendering of components within event content is currently there.

ndk-svelte-components created a lite adaptation of coracles implementation.

I considered using those components directly but I needed customization of how nip34 event kinds render and wanted more customization of how other events rendered.

I've added TypeScript support to the core of coracles approach whilst removing some coracle specific dependencies.

It currently support new lines, links and images.

Reply to this note

Please Login to reply.

Discussion

No replies yet.