supacraft

command module
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2026 License: MIT Imports: 2 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README ΒΆ

SupaCraft

Describe a backend in plain English. Get a running REST API.

SupaCraft is an open-source backend that an AI agent builds for you: database, user accounts and roles, Google/GitHub sign-in, API endpoints, file uploads, emails, background jobs, webhooks and live updates, all defined in one JSON file and served by one small binary.

CI


What is this?

Most apps need the same backend: a database, sign-up and login, a few endpoints that read and write data, maybe file uploads, an email now and then, a nightly cleanup job. Writing it by hand takes days. Firebase and Supabase are quicker, but you then depend on a hosted platform and its dashboard.

SupaCraft goes another way:

  1. The whole backend is one file, supacraft.json. Tables, permissions, endpoints, cron jobs: everything is declarative JSON that lives in your git repo.
  2. An AI agent writes that file for you. SupaCraft ships an MCP server, so Claude Code, Cursor or any MCP-capable agent can design the schema, add endpoints and test them, while SupaCraft checks every change.
  3. One binary runs it. supacraft dev turns the file into a live API backed by SQLite. You don't need Docker, a cloud account or a separate database server. It runs the same on your laptop and on a $5 VPS.
  4. One server runs all your APIs. Start supacraft serve --data-dir once on your server. Every new backend is one supacraft deploy away: the server creates its database and serves it within seconds, next to the others, without a restart or a new process. The X-Tenant-ID header picks which API answers a request.

It is built for lightning-fast MVPs, prototypes, internal tools and side projects, where you want a real backend in minutes rather than days and you don't want to run anyone's platform.

What you get
πŸ—„οΈ Database SQLite tables generated from your schema, migrated automatically when you add tables or columns
πŸ” Auth Register, login and refresh with JWT, password reset and email verification by email; per-endpoint auth and row-level policies
πŸ”‘ Sign in with Google, GitHub or any OpenID Connect provider Microsoft Entra, GitLab, Auth0, Keycloak, Okta, …; accounts link by verified email only
πŸ‘₯ Roles user, editor, admin or your own; limit any table method, file endpoint or function to some roles
⚑ Custom endpoints /fn/posts/{id} routes built from steps: queries with joins and aggregates, transactions, input validation, if/else, loops, try/catch, math, HTTP calls, emails
⏰ Cron jobs The same steps on a schedule (0 3 * * *)
🧡 Background jobs job.enqueue runs a function later, retried with backoff up to its attempt limit; survives restarts
πŸͺ Webhooks Table changes POSTed to other systems and retried; signed (HMAC) when you give them a secret
πŸ“‘ Realtime Clients subscribe over a WebSocket and get each change, filtered by the same access rules as /query
πŸ“ File storage Upload/download endpoints backed by local disk, S3/R2/MinIO, GCS, Azure, FTP or SFTP
βœ‰οΈ Email SMTP with templates
πŸ§ͺ Seed data and tests Development data and request-level tests in the same file; tests run on a fresh database with emails captured and HTTP calls mocked
πŸ“œ OpenAPI 3.1 Generated from your config for Swagger UI, Postman or typed clients
πŸ€– AI-native Built-in MCP server: the agent builds, tests and deploys the project and manages the central server, and asks you before anything risky
πŸ” Studio Read-only web UI to browse your data
🏒 Many APIs, one server One serve process hosts every project; supacraft deploy adds or updates one live; ${NAME} secrets stay on the server

How it feels

you  β€Ί Build me a blog backend: posts with comments, anyone can read,
       only logged-in users can write, and email the author on each new comment.

agent β€Ί set_table posts βœ“   set_table comments βœ“   set_relations βœ“
        set_function list_posts βœ“   set_function create_post βœ“
        set_function add_comment βœ— steps[2].template_id: unknown email template "new_comment"
        update_api_settings (email template new_comment) βœ“
        set_function add_comment βœ“
        call_endpoint POST /auth/register β†’ 201
        call_endpoint POST /fn/posts β†’ 201
        call_endpoint GET  /fn/posts β†’ 200 [1 post]
        set_seed βœ“   set_test Γ—3 βœ“   run_tests β†’ 3 passed

      Done. Your API is running on http://localhost:8080.

The agent never hand-edits files blindly: every change is validated before it's saved. If something is wrong, it gets an exact error such as functions.add_comment.steps[2].template_id: unknown email template, fixes it and tries again. Your supacraft.json is never left in a broken state.

Quick start

Install (Go 1.26+, or grab a binary from Releases):

go install github.com/attisvalentin/supacraft@latest

Create a project:

mkdir my-app && cd my-app
supacraft init

This creates:

my-app/
β”œβ”€β”€ supacraft.json   ← your entire backend
β”œβ”€β”€ .env             ← secrets (git-ignored)
β”œβ”€β”€ .gitignore
└── .mcp.json        ← registers the SupaCraft MCP server for your AI agent

Build it with AI. Open the folder in Claude Code (or any MCP client that reads .mcp.json) and describe what you want. The agent starts supacraft mcp, which also serves the API.

…or by hand. Edit supacraft.json and run:

supacraft dev    # API on http://localhost:8080, re-applied on every save

Ship it. On your server, start one SupaCraft for all your projects, once. Run it as your normal (non-root) user; the installer asks for sudo itself where it needs it:

sudo mkdir -p /var/lib/supacraft && sudo chown "$USER" /var/lib/supacraft
umask 077 && echo "SUPACRAFT_ADMIN_SECRET=$(openssl rand -hex 32)" > /var/lib/supacraft/.env
supacraft service install --data-dir /var/lib/supacraft

Then deploy each project from your machine; no new process, no restart. Put the same SUPACRAFT_ADMIN_SECRET in your local .env. For a project that defines GET /fn/posts (like the complete example below):

supacraft deploy --server https://api.example.com
curl -H "X-Tenant-ID: my_app" https://api.example.com/fn/posts

See Many APIs on one server for secrets and tenant management.

A complete example

This file is a working blog API with users, posts and two endpoints:

{
  "name": "blog",
  "auth_enabled": true,
  "schema": {
    "tables": [
      {
        "name": "posts",
        "columns": [
          { "name": "id", "type": "uuid", "primary": true },
          { "name": "title", "type": "varchar", "nullable": false },
          { "name": "author_id", "type": "uuid" },
          { "name": "created_at", "type": "timestamptz", "default_value": "NOW()" }
        ]
      }
    ]
  },
  "functions": {
    "list_posts": {
      "route": { "path": "/fn/posts", "method": "GET" },
      "steps": [
        { "type": "db.select", "table": "posts", "order_by": "created_at desc", "limit": 20, "assign": "posts" },
        { "type": "response", "status_code": 200, "data": { "posts": "{{posts}}" } }
      ]
    },
    "get_post": {
      "route": { "path": "/fn/posts/{id}", "method": "GET" },
      "steps": [
        { "type": "db.select", "table": "posts", "where": { "id": "{{params.id}}" }, "single": true, "assign": "post" },
        { "type": "if", "condition": "{{post}} == null", "then": [
          { "type": "fail", "status_code": 404, "message": "post not found" }
        ] },
        { "type": "response", "status_code": 200, "data": { "post": "{{post}}" } }
      ]
    },
    "create_post": {
      "route": {
        "path": "/fn/posts", "method": "POST", "auth_required": true,
        "input": { "title": { "type": "string", "required": true, "min": 1, "max": 200 } }
      },
      "steps": [
        {
          "type": "db.insert", "table": "posts", "assign": "post",
          "data": { "title": "{{request.title}}", "author_id": "{{auth.user_id}}" }
        },
        { "type": "response", "status_code": 201, "data": { "post": "{{post}}" } }
      ]
    }
  }
}

Try it:

curl -X POST localhost:8080/auth/register -d '{"email":"a@b.co","password":"Secret123!"}'
TOKEN=$(curl -s -X POST localhost:8080/auth/login \
  -d '{"email":"a@b.co","password":"Secret123!"}' | jq -r .data.token)

curl -X POST localhost:8080/fn/posts -H "Authorization: Bearer $TOKEN" -d '{"title":"Hello"}'
curl localhost:8080/fn/posts

The users table and the auth endpoints come from "auth_enabled": true; you don't declare them.

More in the same file

Roles, GitHub sign-in, a live comment feed, a webhook, seed users and tests are all a few lines more:

{
  "name": "blog",
  "auth_enabled": true,
  "schema": {
    "tables": [
      { "name": "posts", "columns": [
        { "name": "id", "type": "uuid", "primary": true },
        { "name": "title", "type": "varchar", "nullable": false } ] },
      { "name": "comments", "columns": [
        { "name": "id", "type": "uuid", "primary": true },
        { "name": "post_id", "type": "uuid" },
        { "name": "body", "type": "text" } ] }
    ]
  },
  "api_settings": {
    "cors": { "allowed_origin": "https://blog.example.com" },
    "auth": {
      "roles": ["reader", "editor"],
      "oauth": {
        "public_url": "https://api.example.com",
        "redirect_urls": ["https://blog.example.com/signed-in"],
        "providers": { "github": { "client_id": "${GITHUB_CLIENT_ID}", "client_secret": "${GITHUB_CLIENT_SECRET}" } }
      }
    },
    "tables": {
      "posts": { "query": { "enabled": true }, "create": { "enabled": true, "roles": ["editor"] } },
      "comments": { "query": { "enabled": true }, "create": { "enabled": true, "auth": true } }
    },
    "realtime": { "tables": ["comments"] },
    "webhooks": {
      "new_post": { "url": "${NEW_POST_HOOK_URL}", "events": ["posts.insert"], "secret": "${NEW_POST_HOOK_SECRET}" }
    }
  },
  "seed": {
    "users": [{ "email": "editor@example.com", "role": "editor" }, { "email": "reader@example.com" }]
  },
  "tests": {
    "readers can't publish": {
      "call": "POST /create", "as": "reader@example.com",
      "body": { "table_id": "posts", "data": { "title": "Hi" } },
      "expect": { "status": 403 }
    },
    "editors publish and the webhook fires": {
      "call": "POST /create", "as": "editor@example.com",
      "body": { "table_id": "posts", "data": { "title": "Hi" } },
      "expect": { "status": 201, "webhooks": [{ "webhook": "new_post", "event": "posts.insert" }] }
    }
  }
}
supacraft test                                        # 2 passed: fresh database, nothing sent anywhere
supacraft users set-role alice@example.com editor     # promote a real user
supacraft realtime tail comments                      # operator log: every change, no subscriber filters

A browser follows the comments live:

const ws = new WebSocket("wss://api.example.com/realtime");
ws.onopen = () => ws.send(JSON.stringify({ type: "subscribe", id: "c", table: "comments", where: { post_id: postId } }));
ws.onmessage = (e) => console.log(JSON.parse(e.data)); // {type: "change", event: "insert", row: {...}, seq}

Every option is in the reference: the WebSocket protocol, the OAuth flow, webhook signatures, job retries and the test format.

How it works

             β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
 AI agent ──►│ supacraft mcp        β”‚   validate β†’ save β†’ migrate β†’ reload
   (MCP)     β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
                        β–Ό
 you ──edit──►  supacraft.json  ──► compile ──► .supacraft/tenants/<app>.json ──► REST API
                        β”‚                                                         (:8080)
                        └──────► additive migration ──► .supacraft/<app>.db (SQLite)
  • supacraft.json is the only source of truth. Everything is referenced by name (tables, columns, functions), never by generated IDs, so the file stays readable and diff-friendly.
  • Validation checks column types, that referenced tables and columns exist, step types and their required fields, function calls, cron expressions, math expressions and more.
  • Migrations are additive. New tables and columns are created automatically. SupaCraft never drops or renames anything in your data.
  • Runtime state (the SQLite database, uploaded files and the compiled config) lives in .supacraft/, which is git-ignored.

Commands

Command Description
supacraft init [name] Create a new project (--auth=false to skip built-in users)
supacraft dev Run the API and re-apply supacraft.json / .env on every change
supacraft serve Apply once and run the API (production); --data-dir serves every tenant of a central server
supacraft mcp MCP server for AI agents on stdio; also serves the API
supacraft validate Check supacraft.json and print errors and warnings
supacraft apply Migrate the database and write the compiled config (--data-dir = into a central server)
supacraft tenants list, disable, enable, remove [--purge] tenants of a central server and show their errors, from your machine (--server) or on the server (--data-dir)
supacraft deploy Send supacraft.json to a central server: validate, migrate, go live (--dry-run first). Values from .env are never sent; write secrets as ${NAME} references, since literal values in supacraft.json are sent
supacraft secrets set, unset, list a tenant's secrets on a central server (values never leave the server)
supacraft seed Load the seed data into the local database (--reset to start from exactly the seed)
supacraft test [name...] Run the tests on a fresh seeded database each; exits non-zero on failure, so it fits CI
supacraft users list users and set-role <email> <role>, locally or on a central server
supacraft jobs list, retry and enqueue background jobs (webhook deliveries show up as webhook:<name>)
supacraft realtime tail [table] Print table changes as they happen (--since <seq>)
supacraft openapi Print the API as an OpenAPI 3.1 document (-o openapi.json)
supacraft studio Open a read-only data browser
supacraft service install Install serve as a systemd service (Linux); --data-dir for a central server

Every command accepts --dir / -C to point at a project directory.

users, jobs and realtime act on the central server when --server / SUPACRAFT_SERVER (from your machine) or --data-dir / SUPACRAFT_DATA_DIR (on the server) is set, and on the project's own database otherwise. --local picks the project's database even when the environment names a server; it can't be combined with --server or --data-dir.

dev, mcp and studio listen on 127.0.0.1 only, so your work-in-progress API is not reachable from the network. Pass --host 0.0.0.0 to expose it (for example to test from a phone). serve listens on all interfaces.

MCP tools

The agent can manage the project and the central server the way you do with the CLI, through the tools below. Editing the local project and calling its API run directly. Changes to a central server, deleting data (seed with reset), user role changes and the systemd service wait for your approval: the agent's request shows up as a prompt in your MCP client that only you can answer, bound to that exact action (an approval for one deploy can't be reused for another). Secret values never pass through the agent; you set them with supacraft secrets set.

Tool Purpose
init_project Create a project in a folder that has none and start its API
get_config, get_reference Read the project and the full format reference
set_table, delete_table, set_relations Shape the database
set_function, delete_function Custom /fn/... endpoints
set_cronjob, delete_cronjob Scheduled jobs
update_api_settings, set_auth Permissions, roles, OAuth, webhooks, realtime, CORS, rate limits, email, storage, env
validate, apply Check, or apply hand-made edits
set_seed, seed, set_test, run_tests Seed data and tests (seed with reset asks you first)
call_endpoint Send a real HTTP request to the running API
query_db Read-only SQL against the database (the JWT key and password hashes are not readable)
get_logs Recent server errors (5xx) of the local API
get_openapi The API as an OpenAPI 3.1 document
list_users, set_user_role Users and their roles; every role change asks you first
get_jobs, enqueue_job, retry_job Background jobs (on a central server, queueing and retrying ask you first)
get_changes The realtime change log
deploy, manage_tenant, unset_secret Central server: deploy, disable/enable/remove a tenant, delete a secret (each asks you first)
get_server_errors, list_tenants Errors of this project on the central server (secret values masked), and every API on it
check_secrets Which ${NAME} secrets are missing (names only), and the command the user runs to set them
service The systemd service on this machine (install and uninstall ask you first)

The full supacraft.json reference is internal/docs/reference.md. Agents get it as the supacraft://reference resource.

Secrets

Secrets never go into supacraft.json. Reference them as "${NAME}" and put the value in .env or the process environment:

"api_settings": {
  "env":   { "STRIPE_KEY": "${STRIPE_KEY}" },
  "email": { "smtp": { "host": "smtp.resend.com", "password": "${SMTP_PASSWORD}" } }
}
# .env
STRIPE_KEY=sk_live_...
SMTP_PASSWORD=...

On a central server, secrets are kept only on the server (<data-dir>/env/<tenant>.json, mode 0600). Deploys and compiled configs carry just the ${NAME} references; the server fills them in when it loads a tenant, so a new value takes effect within seconds. You set them from your machine, typing the value into a hidden prompt:

# in the project's .env (not secret values, just how to reach the server)
SUPACRAFT_SERVER=https://api.example.com
SUPACRAFT_ADMIN_SECRET=...        # same value as on the server

supacraft secrets list            # names only: which are set, which are missing
supacraft secrets set STRIPE_KEY  # Value for STRIPE_KEY (input hidden): β€’β€’β€’β€’
supacraft deploy                  # refuses, listing the names, while a secret is missing

The AI agent never sees the values: its check_secrets tool reports names and gives you the command to run.

Deploying

Many APIs on one server

One supacraft serve process can run every API you have. Each project is a tenant in a central data directory, and the X-Tenant-ID header of each request picks the API:

# on the server, once, as a non-root user that owns the directory
# (the installer uses sudo itself; under sudo the service would run as root).
# Deploys and secrets from your machine need SUPACRAFT_ADMIN_SECRET in
# /var/lib/supacraft/.env (chmod 600):  SUPACRAFT_ADMIN_SECRET=<openssl rand -hex 32>
supacraft service install --data-dir /var/lib/supacraft

# from your machine: add or update an API β€” the server validates it, creates or migrates
# its database and serves it within seconds, without a restart
cd shop && supacraft deploy       # --dry-run shows the migration first

# or on the server itself
supacraft apply -C ./shop --data-dir /var/lib/supacraft

curl -H "X-Tenant-ID: shop" https://api.example.com/fn/products
/var/lib/supacraft/
β”œβ”€β”€ tenants/shop.json   ← compiled config of each tenant
β”œβ”€β”€ tenants/blog.json
β”œβ”€β”€ shop.db             ← one SQLite database per tenant
β”œβ”€β”€ blog.db
β”œβ”€β”€ env/shop.json       ← server-side secrets of each tenant (0600)
β”œβ”€β”€ storage/<tenant>/   ← uploaded files
└── errors.db

The tenant id comes from the project name ("name": "My Shop" β†’ my_shop). Manage tenants from your machine (or on the server with --data-dir instead of --server):

supacraft tenants list --server https://api.example.com
supacraft tenants errors shop        # recent 5xx errors with the internal message, secrets masked
supacraft tenants disable shop       # 503 for every request, cron jobs pause; enable brings it back
supacraft tenants remove shop        # stop serving it; the database stays
supacraft tenants remove shop --purge

Deploying a disabled tenant doesn't re-enable it. --purge deletes the database, secrets and uploads, including those in S3 or another remote storage driver: SupaCraft records every upload and deletes exactly those, never anything else in the bucket (if the tenant's storage settings changed, files in the earlier storage are reported for you to delete there). If a remote file can't be deleted, nothing else is, the tenant stays disabled and you can run it again. Pass --default-tenant <id> to serve if requests without the header should go to one tenant.

Back up the whole data directory, for example with Litestream.

One project

SupaCraft is a single static binary. Copy your project folder to a server and run:

supacraft serve --port 8080            # or:
supacraft service install              # systemd, restarts on failure (not via sudo)

Put a reverse proxy (Caddy, nginx) in front for HTTPS. In that setup, run with --host 127.0.0.1 so only the proxy can reach the API, and set TRUST_PROXY=1 so rate limits see real client addresses. To back up the app, back up .supacraft/ (for example with Litestream for continuous SQLite replication).

Server settings
Variable Default Purpose
HOST / PORT see above / 8080 Listen address (same as --host / --port)
TRUST_PROXY off Read client IPs from X-Real-IP / X-Forwarded-For (only behind a proxy)
MAX_BODY_SIZE 1048576 Max JSON request body in bytes
MAX_FILE_SIZE 104857600 Max upload size in bytes
STUDIO_SECRET random Studio password
DISABLE_CRON off Don't run cron jobs, background jobs or webhook deliveries in this process
SUPACRAFT_DATA_DIR β€” Central data directory (same as --data-dir)
SUPACRAFT_ADMIN_SECRET off Signs remote management (deploys, secrets) of a central server; at least 32 characters (openssl rand -hex 32). Admin endpoints are off without it
SUPACRAFT_SERVER β€” On your machine: URL of the central server for supacraft deploy and supacraft secrets

Security

  • Secret values stay in .env or on the server; configs, deploys, logs, API and MCP responses carry only ${NAME} references.
  • Passwords are bcrypt-hashed; a password reset or a disabled user ends every session, including open WebSockets.
  • Clients only ever see readable columns, and a table's row policy applies wherever clients read it: /query, includes and realtime.
  • OAuth uses PKCE towards the provider and a second, app-held PKCE against login CSRF; an account links only through an email the provider verified.
  • Webhooks with a secret are signed (X-SupaCraft-Signature, HMAC-SHA256 with a timestamp) so receivers can reject forgeries and replays; validation warns about one without.
  • The table schema is never served over HTTP; the OpenAPI document (which can be turned off) lists only callable endpoints.
  • Central-server management is signed with SUPACRAFT_ADMIN_SECRET and off without it.

Found a vulnerability? Please report it privately through GitHub Security Advisories rather than in a public issue.

Is it for me?

Good fit: MVPs, hackathons, prototypes, internal tools, side projects, mobile or SPA backends, and anything where "working today" beats "infinitely flexible". Also for running many small backends on one cheap server: an agency or a maker with ten side projects hosts them all with one process.

Not (yet) a fit: large multi-node deployments (SQLite, one process per server), apps that need destructive schema migrations, or complex business logic that really wants a general-purpose language.

Roadmap ideas

These are open for discussion, and PRs are welcome:

  • Sign in with Apple
  • Realtime broadcast (client-to-client messages) and presence (who is online)
  • A realtime event when an update moves a row out of a subscription's filter
  • Destructive migrations (rename/drop) with explicit confirmation
  • Optional visual schema viewer in Studio
  • PostgreSQL as an alternative storage driver

Contributing

Issues and pull requests are welcome. Please read CONTRIBUTING.md first. Every PR gets an automated review from CodeRabbit and must pass CI and a maintainer review before it can be merged.

License

MIT

Documentation ΒΆ

The Go Gopher

There is no documentation for this package.

Directories ΒΆ

Path Synopsis
Package cmd implements the supacraft CLI.
Package cmd implements the supacraft CLI.
internal
app
Package app runs the SupaCraft API server (REST, auth, files, pipeline functions and the cron scheduler) in-process.
Package app runs the SupaCraft API server (REST, auth, files, pipeline functions and the cron scheduler) in-process.
docs
Package docs embeds the supacraft.json reference served to AI agents.
Package docs embeds the supacraft.json reference served to AI agents.
envref
Package envref resolves "${NAME}" references: config strings that are entirely a reference to an environment variable or server-side secret.
Package envref resolves "${NAME}" references: config strings that are entirely a reference to an environment variable or server-side secret.
jobs
Package jobs runs the background jobs queued by job.enqueue steps: each job calls a PRIVATE function with its args, retrying with backoff until it succeeds or runs out of attempts.
Package jobs runs the background jobs queued by job.enqueue steps: each job calls a PRIVATE function with its args, retrying with backoff until it succeeds or runs out of attempts.
mcpserver
Package mcpserver exposes a SupaCraft project to AI agents over MCP (stdio).
Package mcpserver exposes a SupaCraft project to AI agents over MCP (stdio).
oauth
Package oauth talks to the sign-in providers: Google and any OpenID Connect provider (found through discovery) and GitHub (its own API).
Package oauth talks to the sign-in providers: Google and any OpenID Connect provider (found through discovery) and GitHub (its own API).
openapi
Package openapi describes a tenant's HTTP API as an OpenAPI 3.1 document: the auth, CRUD and file endpoints it has enabled and its pipeline functions.
Package openapi describes a tenant's HTTP API as an OpenAPI 3.1 document: the auth, CRUD and file endpoints it has enabled and its pipeline functions.
project
Package project is the local, file-based source of truth for a SupaCraft backend.
Package project is the local, file-based source of truth for a SupaCraft backend.
realtime
Package realtime streams table changes to subscribers.
Package realtime streams table changes to subscribers.
remote
Package remote calls the signed /admin endpoints of a central SupaCraft server (see internal/studiosign for the scheme).
Package remote calls the signed /admin endpoints of a central SupaCraft server (see internal/studiosign for the scheme).
secrets
Package secrets stores the server-side values of "${NAME}" references for the tenants of a central data directory, one file per tenant: {dataDir}/env/{tenant}.json, readable only by the server's user.
Package secrets stores the server-side values of "${NAME}" references for the tenants of a central data directory, one file per tenant: {dataDir}/env/{tenant}.json, readable only by the server's user.
service
Package service installs SupaCraft as a systemd service (Linux).
Package service installs SupaCraft as a systemd service (Linux).
sqlitedb
Package sqlitedb provisions per-tenant SQLite databases.
Package sqlitedb provisions per-tenant SQLite databases.
sqlitedb/ddl
Package ddl is SupaCraft's SQLite DDL engine.
Package ddl is SupaCraft's SQLite DDL engine.
studio
Package studio is a local, read-only database viewer for SupaCraft projects (Drizzle-Studio style).
Package studio is a local, read-only database viewer for SupaCraft projects (Drizzle-Studio style).
studiosign
Package studiosign is the request-signing scheme shared by the studio proxy client (internal/studio) and the API's /admin/studio middleware.
Package studiosign is the request-signing scheme shared by the studio proxy client (internal/studio) and the API's /admin/studio middleware.
tenantfile
Package tenantfile reads and writes compiled tenant configs under {DataDir}/tenants/{id}.json β€” the same path internal/tenant.FileStore reads.
Package tenantfile reads and writes compiled tenant configs under {DataDir}/tenants/{id}.json β€” the same path internal/tenant.FileStore reads.
testrun
Package testrun loads a project's seed data and runs its tests (the "seed" and "tests" sections of supacraft.json).
Package testrun loads a project's seed data and runs its tests (the "seed" and "tests" sections of supacraft.json).

Jump to

Keyboard shortcuts

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