Skip to content

nostr-dev-kit/ndk-svelte-components

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Aug 25, 2023
25d6b2d · Aug 25, 2023
Aug 12, 2023
Jun 6, 2023
Aug 20, 2023
Jun 6, 2023
Jun 6, 2023
Aug 9, 2023
Aug 25, 2023
Jun 6, 2023
Jun 6, 2023
Aug 12, 2023
Jul 1, 2023
Jul 17, 2023
Aug 20, 2023
Aug 9, 2023
Aug 9, 2023
Aug 9, 2023
Jun 9, 2023
Aug 9, 2023

Repository files navigation

ndk-svelte-components

Reusable Svelte components.

Installation

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

# With pnpm
pnpm add @nostr-dev-kit/ndk-svelte-components

# With yarn
yarn install @nostr-dev-kit/ndk-svelte-components

Storybook

This project uses pnpm to manage dependencies.

git clone https://github.com/nostr-dev-kit/ndk-svelte-components
cd ndk-svelte-components
pnpm i
pnpm run storybook

Components

Event

<EventCard>

Displays a card with formatted event content.

<EventContent>

Formats the content of an event for an EventCard. Currently supports:

  • kind 1 events
  • Embedded kind 1 events in other kind 1 events

User

<Avatar>

Displays a user's avatar

<Name>

Displays a user's name

Relay

<RelayList ndk />

Displays a list of relays the NDK instance is connected to, along with information about active subscriptions and connectivity stats.

License

MIT

Author