Skip to content

hearth

hearth

hearth is a toolkit for frostyard's first-party apps: Protobuf options, plugins and a Go runtime. 1 Protobuf service gives an app its API, its MCP tools, its permission checks, its events and a versioned manifest, and the 5 cannot drift from each other.

Install hearth → Read the guide

Install hearth covers the Go toolchain, the 5 commands and how to pin a version. The notes-lite example builds a whole app from its README.

What hearth gives you

  • 1 service, every surface


    Annotate a service with hearth_rpc, hearth_selector and hearth_event, and the plugins write the app's manifest from those files. The manifest is the app's MCP tools, its permissions and its events, in 1 JSON file.

  • A contract that cannot drift


    Every RPC declares its permission, its effect and where it is reachable. An RPC that declares no permission, no effect or no exposure does not build, so a call can never arrive without a rule for it.

  • Permission checks in the app


    protoc-gen-hearth-authz writes 1 check for each RPC, a hook that resolves a stored object's selector value inside the app's transaction, and a wrapper that refuses a call the caller's grant does not cover.

  • MCP tools, with no token on the app's own machine


    protoc-gen-hearth-mcp writes 1 tool for each agent RPC, with the proto3 JSON schema and the effect's hints. The stdio server serves the same tools as the local user, and needs no token.

  • Events that commit with the change


    protoc-gen-hearth-events writes 1 publisher for each event. The event goes to an outbox in the change's transaction, and a relay publishes it to the app's own bus or to lodge's broker, and loses none on a crash.

  • A versioned manifest


    manifest.json is canonical JSON with a JSON Schema. lodge serves an app from that file, and an app whose format major lodge does not read is disabled with a reason that names both versions.

  • A compatibility gate


    hearth manifest diff runs in an app's make ci. A removed operation, tool or event, or a changed permission, effect, selector or topic, needs the app's next major version.

Start here

  • 01 Install

    Install the 5 commands, and pin their version.

  • 02 The options

    Write the options that give an app its manifest.

  • 03 The manifest

    Generate a manifest, and check its compatibility against the default branch.

  • 04 Permissions

    Read a grant, write a hook, and trust lodge's headers on 1 socket only.

  • 05 The Connect route

    Serve an app's API over Connect, on its private socket and on lodge's.

  • 06 MCP tools

    Serve an app's agent RPCs to an agent, over stdio or through lodge.

  • 07 Events

    Publish an app's events with its changes, standalone or through lodge.

  • 08 Manifest format

    Look up every member of the format.