A comprehensive guide to all things Nostr. Including step-by-step setup guides and details on clients, relays, and NIPs.
- Framework: SvelteKit with Svelte 5
- Styling: Tailwind CSS v4
- Content: Markdown via mdsvex
- i18n: svelte-i18n
- Linting: Biome
- Package Manager: Bun
- Hosting: Vercel
- Clone this repo
- Use Node 24 and Bun 1.4.4 (see
packageManagerinpackage.json) - Install dependencies:
bun install --frozen-lockfile - Run the dev server:
bun dev - Open http://localhost:5173
| Command | Description |
|---|---|
bun dev |
Start development server |
bun run build |
Build for production |
bun run preview |
Preview production build |
bun run check |
Run TypeScript/Svelte type checking |
bun run check:production |
Smoke test routes and CSP after a production build |
bun run lint-check |
Check code with Biome |
bun run lint-write |
Fix lint issues with Biome |
bun run format-write |
Format code with Biome |
bun run audit |
Audit all locked dependencies for known vulnerabilities |
CI runs a frozen install, dependency audit, type checks, lint, production build, and HTTP smoke tests.
Dependabot checks Bun dependencies and GitHub Actions weekly; updates still need review.
Run bun update and the same checks when refreshing the lockfile locally.
TypeScript stays on the latest 6.x release because SvelteKit 3 and svelte-check
currently require that major. Two security overrides in package.json replace
vulnerable transitive dependencies still pinned by upstream packages:
esbuild0.28.2 forsvelte-i18n(its translation extraction CLI).postcss-selector-parser7.1.7 for@tailwindcss/typography.
Recheck these overrides when the upstream packages release fixes. Validate both
the production build and translation extraction before changing them.
For translation extraction with SvelteKit 3, pass --config vite.config.ts to the
svelte-i18n extract command.
We're always looking for writers, coders, and translators to help us make Nostr.how more useful. If you have an idea on how to make the site better, please let me know.
If you recently learned something new about Nostr, it's likely that other people don't know it yet! Feel free to write in whatever format you'd like and then reach out on Nostr and I'll get the page into the codebase. Or, if you're technical, feel free to create a PR directly.
If you're less of a writer but have a sharp eye for typos and grammar, feel free to create issues here on GitHub.
Translations have two parts:
- UI strings: JSON files in
/src/lib/locales/(e.g.,en.json,es.json) - Content pages: Markdown files in
/src/routes/pages/{lang}/
- Fork this repository
- Create a branch:
git checkout -b <language>_translation - For UI strings: Copy
en.jsonand translate the values (not keys) - For content: Create a folder with your language's ISO 639-1 code and translate each
.mdfile - Submit a Pull Request
- Keep frontmatter format intact (the
---section at the top) - Translate the
titleanddescriptionvalues - Update internal links to use your language code (e.g.,
/en/get-started→/fr/get-started) - Anchor links can be translated (e.g.,
#understanding-keys→#comprendre-les-cles)
src/
├── lib/
│ ├── components/ # Svelte components
│ ├── locales/ # i18n JSON files
│ └── config/ # Configuration
└── routes/
├── pages/ # Markdown content by language
│ ├── en/
│ ├── es/
│ ├── de/
│ └── ...
└── [locale=locale]/ # Localized routing
MIT License - see LICENSE