@softcose/softchat - v0.1.0
    Preparing search index...

    @softcose/softchat - v0.1.0

    @softcose/softchat

    Authored TypeScript facade for the shared Softchat Rust/WebAssembly core.

    Node.js 22 supports CommonJS and native ESM entry points:

    const {
    SoftchatIdentity,
    NostrEventDraft,
    NostrEventKind,
    } = require("@softcose/softchat");

    Browser and Worker consumers use the explicit asynchronous loader and receive the same synchronous authored API after initialization:

    import { initializeSoftchat } from "@softcose/softchat/browser";

    const softchat = await initializeSoftchat();
    const identity = softchat.SoftchatIdentity.import(secretBytes);

    Files below pkg/ are generated runtime implementation and are not consumer APIs. The ./wasm export is only an asset-resolution hook for custom hosts.

    See the repository TypeScript developer guide for lifecycle, platform ownership, performance, and package verification.