@kubator/sdk v0.1.0
    Preparing search index...

    @kubator/sdk v0.1.0

    Kubator SDK

    The public contract for defining Kubator applications: collections, APIs, migrations, and the building blocks for CMS and CRM-style models.

    import { Collection, type Timestamp, type Uuid } from "@kubator/sdk"

    export type Note = {
    /** @primary */
    readonly id: Uuid<"Note">
    text: string
    created: Timestamp
    }

    export const Notes = new Collection<Note>()

    It requires a compatible Kubator host, which supplies the collection runtime.

    Model tests can use the SDK testing entrypoint instead of importing a host repository's test runner:

    import { ExpectEqual, Test } from "@kubator/sdk/testing"

    Test("notes have a title", () => {
    ExpectEqual("Kubator", "Kubator")
    })

    A compatible Kubator test host supplies the test runner at runtime.