Skip to content

Repository files navigation

github.com/fastygo/formset

Schema kernel for typed admin forms. No renderer, BFF, or database. Content fields belong to github.com/fastygo/codex. FromCodex projects a Codex record into a form.

schema (RecordType)
  + locale + data document
  → Form
  → slot renders fields
  → save writes that locale document

API

form, err := formset.BindLocale(record, "en", data)
document := form.Document("en")
schema := formset.JSONSchemaFromRecord(record)

Bind accepts an explicit locale map when more than one document is in memory. Codex reads/writes one locale per request (?locale= + fallback). Form.Extra keeps undeclared keys so a save does not drop unknown fields.

Scope

Included: form binding, schema review, and JSON Schema for editor slots.

Not included: content ownership, Templ, a BFF, GraphQL, or persistence. Content stays in Codex. Delivery stays in the product.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages