Copilot 3868e088b4 Add NIP-86 relay management console (Relay Admin app) (#73)
* Initial plan

* Add NIP-86 protocol client library with tests

Co-authored-by: mroxso <24775431+mroxso@users.noreply.github.com>

* Add NIP-86 session hook and relay-admin app UI

Co-authored-by: mroxso <24775431+mroxso@users.noreply.github.com>

* Add integration tests, NIP.md, and apps.md docs for Relay Admin

Co-authored-by: mroxso <24775431+mroxso@users.noreply.github.com>

* Address review feedback on Relay Admin app

- sanitizeIconUrl() now only allows http:// for local relay hostnames
  (localhost/127.0.0.1/::1/*.local), matching its docstring and error
  message instead of accepting arbitrary http:// URLs.
- Scope the discovery-time cache clear to the previous session's own
  relay URL instead of removing every ['nip86'] query, so connecting in
  one Relay Admin window no longer disrupts other open windows.
- Use the AllowedPubkey type (not BannedPubkey) when mapping allowed-
  pubkey entries, since the structural overlap today made a real type
  mismatch invisible.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01BYiUtZMQeA5RHggQw73wto

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: mroxso <24775431+mroxso@users.noreply.github.com>
Co-authored-by: highperfocused <highperfocused@pm.me>
Co-authored-by: Claude Sonnet 5 <noreply@anthropic.com>
2026-09-07 22:35:53 +02:00
2026-09-06 11:37:43 +02:00
2025-12-27 21:42:31 +01:00
2025-12-27 21:42:31 +01:00
2026-09-06 11:37:43 +02:00
2026-09-06 11:37:43 +02:00
2025-12-27 21:42:31 +01:00
2025-12-27 21:42:31 +01:00
2026-09-06 11:37:43 +02:00
2026-09-06 11:37:43 +02:00
2026-09-06 11:37:43 +02:00
2026-09-06 11:37:43 +02:00
2026-09-06 11:37:43 +02:00
2026-09-06 11:37:43 +02:00

LAYER.systems

LAYER.systems is a Nostr client designed like a desktop operating system. Instead of navigating between pages, you open apps in windows that can be moved, resized, stacked, minimized, and kept open side by side. This makes it possible to read a thread, inspect a profile, and keep your feed available at the same time.

The app is for people who use Nostr and want a focused, multitasking-friendly interface, as well as contributors interested in building Nostr applications with React and TypeScript.

What you can do

  • Browse a Following or Global feed, publish notes, and open notes with their replies.
  • View profiles, follow or unfollow people, and search notes, replies, hashtags, and users.
  • Read NIP-23 long-form articles, save notes and articles, and create web bookmarks.
  • Discover picture posts and view live events with their NIP-53 chat.
  • Browse Nostr calendar events by month.
  • Manage relay connections, inspect connection latency, and configure relays and Blossom media servers.
  • Sign in with a Nostr account, switch between accounts, and use NIP-19 identifiers such as npub, note, nevent, nprofile, and naddr as links.
  • Save and share reusable Nostr queries with Spells.

LAYER.systems reads and writes Nostr events through relays. It does not provide a centralized social database; your relays and signer remain the source of your Nostr data. Some features require a signed-in account, and availability of content depends on the relays you use.

Run locally

Requirements

  • Node.js 22 or newer
  • npm

Clone the repository, install dependencies, and start the Vite development server:

git clone https://github.com/layer-systems/website.git
cd website
npm install
npm run dev

The development server listens on http://localhost:8080. The app has no required environment variables; relay and media-server settings are managed in the app.

Useful commands:

npm run test   # Type-check, lint, run Vitest, and create a production build
npm run build  # Create the production bundle in dist/

npm run build also creates dist/404.html, which supports client-side routes when the build is deployed as a static site.

Production deployment

The repository includes a GitHub Actions workflow in .github/workflows/deploy.yml. It runs on pushes to main (or manually from the Actions tab), builds the app with Node.js 22, and deploys dist/ to GitHub Pages.

For another static host, run npm run build and publish the generated dist/ directory. Configure the host to serve dist/404.html for unknown paths so direct NIP-19 links continue to load the client application.

Technology

The application is organized into three main layers:

src/os/              Window manager, persistence, layout, and keyboard shortcuts
src/components/os/   Desktop shell, menu bar, windows, and mobile app shell
src/apps/            Nostr and system apps rendered inside windows
src/components/      Shared UI, authentication, and Nostr components
src/hooks/           Data access and application hooks

Apps are registered in src/os/registry.ts. Each app is lazy loaded and receives a small window-oriented contract, so adding an app normally does not require changing the router. Read the app guide before adding one.

Documentation

For protocol reference, see the Nostr protocol documentation.

Contributing

  1. Create a branch for your change.
  2. Install dependencies with npm install.
  3. Make the smallest focused change that fits the existing architecture.
  4. Run npm run test.
  5. Open a pull request describing the behavior you changed and how you verified it.

When working with Nostr content, treat events, URLs, and profile metadata as untrusted input. Follow the validation and URL-sanitization patterns in docs/nostr.md, and do not use any in TypeScript.

License

LAYER.systems is dedicated to the public domain. You are free to copy, modify, distribute, and use it for any purpose, commercial or non-commercial.

Description
No description provided
Readme 1.6 MiB
Languages
TypeScript 98.1%
CSS 1%
JavaScript 0.8%
HTML 0.1%