Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/akiomik/nosvelte
An experimental Svelte library for building Nostr apps easily
https://github.com/akiomik/nosvelte
nostr svelte svelte-components svelte-store
Last synced: 3 months ago
JSON representation
An experimental Svelte library for building Nostr apps easily
- Host: GitHub
- URL: https://github.com/akiomik/nosvelte
- Owner: akiomik
- License: apache-2.0
- Created: 2023-06-07T15:24:48.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-04-05T07:38:01.000Z (7 months ago)
- Last Synced: 2024-05-03T00:43:21.329Z (6 months ago)
- Topics: nostr, svelte, svelte-components, svelte-store
- Language: Svelte
- Homepage:
- Size: 1.02 MB
- Stars: 24
- Watchers: 3
- Forks: 3
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-nostr-japan - nosvelte - An experimental Svelte library for building Nostr apps easily. by [akiomik](https://github.com/akiomik) (Libraries)
README
# nosvelte
[![npm version](https://badge.fury.io/js/nosvelte.svg)](https://badge.fury.io/js/nosvelte)
[![Node.js CI](https://github.com/akiomik/nosvelte/actions/workflows/node-ci.yml/badge.svg)](https://github.com/akiomik/nosvelte/actions/workflows/node-ci.yml)An experimental Svelte library for building [Nostr](https://nostr.com) apps easily.
Highly inspired by [sveltefire](https://github.com/codediodeio/sveltefire).```svelte
import { Metadata, NostrApp, Text } from 'nosvelte';
const relays = ['wss://relay.damus.io', 'wss://relay.snort.social'];
const id = 'b6cf76789bd25d11eafa65d28c16dd640056919f703191aa06619c5b21f732e3';
{JSON.parse(metadata.content).name}: {text.content}
```
## Features
- Zero-configuration
- Svelte stores and components to use Nostr events
- Caching requests## Installation
```
npm install nosvelte
```## Exapmles
You can see some example codes in [src/routes](https://github.com/akiomik/nosvelte/tree/main/src/routes).