Files
2026-08-11 20:15:06 -04:00

1.1 KiB

sando runtime

gamertan.com/sandwich-hime/sando is the independent Apache-2.0 runtime ABI for Go generated by Sandwich Hime. It contains no compiler, router, HTTP server, middleware, reflection registry, project discovery, or development supervisor.

The stable surface is:

type Component interface {
    Render(context.Context, io.Writer) error
}

type ComponentFunc func(context.Context, io.Writer) error

Render invokes components; generated code uses the context-specific writer helpers and checks ABI. Opaque TrustedHTML, TrustedURL, TrustedJS, and TrustedCSS values can be constructed only by conspicuous Trust* calls in trusted application code.

The runtime has its own go.mod, Apache-2.0 license, COPYRIGHT record, semantic version, and sando/vX.Y.Z tags. It never imports the AGPL compiler. Importing the runtime does not make an application AGPL under the project's terms. Applications may license their own code and generated files under terms they choose to the extent they hold the necessary rights, while redistribution of the runtime remains subject to Apache-2.0.