Loopy Library · Your reusable Nostr toolbox

Stop rebuilding the same stuff.

Sign in, find relays, post, publish websites, keep archives, block spam and use Moji tools. Find what you need, see how it works, then reuse it in your next project.

11 modules140 direct exports58 + 10 offline testsESM · TypeScript declarations

Build Nostr software without rebuilding everything

Loopy Library keeps us from reinventing the same Nostr code for every new app. It brings together the tools for signing in, finding relays, posting, storing pictures, publishing websites, blocking spam, handling emoji packs and saving archives—so projects like Deepink can reuse them.

Under the hood, this is a JavaScript/TypeScript library with 11 modules and 140 direct exports, plus three convenience API entries. You can use one module at a time or the whole kit.

import { createNsiteSDK, Nostr, Archive } from '@chaoticka/nsite-loopy-sdk';

const note = Nostr.textNote('Hello from Deepink');
const zip = Archive.writeZip({ 'index.html': '<h1>Hello, nsite!</h1>' });
console.log(note.kind, zip.length); // no network or credentials used

Pick your path

What we mean by reusable

Each function has a source, an explanation and tests. The private recovery archive keeps the originals separately. When something still needs a real phone, signer or relay test, the verification page says so.

Newly recovered API areas

Spam & moderation · Moji/NIP-30 · Anchor account recovery · Repo-wide capability audit