stratum

package module
v0.0.0-...-5db0a05 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 14, 2026 License: AGPL-3.0 Imports: 0 Imported by: 0

README

Stratum

CI codecov Go Report Card

Stratum is a schema-first data middleware. Define your data model once as a GraphQL SDL schema; Stratum exposes a REST API and manages the underlying PostgreSQL storage automatically. It handles schema uploads, record creation, querying, filtering, and relation traversal — so you can focus on your data model rather than boilerplate persistence code.

Getting Started

Prerequisites

Build

go build ./...

Run

go run ./cmd/stratum

By default the server listens on :8080. Set STRATUM_SERVER_ADDR to override:

STRATUM_SERVER_ADDR=:9090 go run ./cmd/stratum

Copy stratum.yaml.example to stratum.yaml for file-based configuration. See docs/decisions/ADR-1014-configuration-system.md for details.

Rebuilding the CodeMirror bundle

The pre-built bundle is at internal/ui/static/codemirror.js. To rebuild it after changing dependencies:

cd internal/ui/codemirror
npm install
npm run build

Contributing

See CONTRIBUTING.md for development setup, branch conventions, and the pull request workflow.

License

This project is licensed under the GNU Affero General Public License v3.0 or later (AGPL-3.0-or-later).

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
cmd
configdocs command
stratum command
internal
api
Package api provides primitives to interact with the openapi HTTP API.
Package api provides primitives to interact with the openapi HTTP API.
plugin
SPDX-License-Identifier: AGPL-3.0-or-later
SPDX-License-Identifier: AGPL-3.0-or-later
ui

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL