Build on Apna

Mini-apps run inside the Apna host, inherit the user's Nostr identity, and access social, signing, and storage via @apna/sdk. Choose a path to get started.

SDK quick-reference

Bootstrap

const apna = new ApnaApp({ appId: 'my-app' })

Active user

const me = await apna.identity.me()

Publish note

await apna.social.publishNote('Hello!')

Nostr query

const events = await apna.nostr.query({ kinds: [1] })

Subscribe

const unsub = await apna.nostr.subscribe(filters, cb)
SDK source on GitHubExplore published mini-apps