Skip to main content

API reference

Use this site for workflows, boundaries, failure behavior, and lifecycle. Use the generated reference for exact signatures and every exported symbol. The generated pages are built from the same source revision as this guide.

Android intentionally shares the Kotlin symbol reference because the AAR exposes the same public declarations. Android-specific threading, packaging, Room, files, lifecycle, and device performance guidance remains a distinct tab throughout the cookbook.

Verified workflowsโ€‹

The repository smoke/package suites compile and execute the authored surfaces, including complex multi-family workflows:

The site uses shortened recipes for clarity; these checked-in consumers are the executable evidence that generated internals are not required.

Operation-to-guide matrixโ€‹

API familyOperations coveredCookbook
Identityimport, public key, erase, external signer capabilities and completionIdentity
NIP-19parse, construct, encode, unknown TLVsNostr and cryptography
NIP-01drafts, raw tags, sign, parse, canonical JSON, verificationNostr and cryptography
NIP-44encrypt, decrypt, immutable message validationNostr and cryptography
NIP-17/59rumor, one-to-one message, durable/ephemeral wrap, unwrapPrivate messaging
Chatmessage, subject, reply, forward, reaction, delete, edit, typing, classifiersChat and account
Accountmetadata, follow list, app data, app-data sync, latest projectionsChat and account
Relay wireframes, filters, NIP-42, EVENTS, acknowledgementsRelay and persistence
Relay stateconnect, authenticate, subscribe, publish, receive, ingestion, reconnect, cancelRelay and persistence
Persistenceingestion batch, result validation, delivery statusRelay and persistence
NoiseNK handshake, transport encrypt/decrypt, chunking, shutdownNoise and synchronization
Negentropysnapshot items, initiate, reconcile, complete, closeNoise and synchronization
Attachmentsmetadata, whole-buffer compatibility, streaming transformMedia and HTTP
NIP-98exact request plan and redirect policyMedia and HTTP
Diagnosticsstable errors, version, fingerprint, redacted countersErrors and diagnostics

Performance reportsโ€‹

Contextual cards appear only beside operations present in the accepted benchmark corpus. They show median duration, p95 duration, equivalent single-thread calls per second, payload throughput where meaningful, allocations where available, comparison with the frozen old library where available, environment, and confidence.

The standalone audit reports remain Markdown:

These are descriptive results for the recorded runner or device. They are not universal latency guarantees.