Important
stackr has moved to lattice. It is developed there now, alongside artifactr, reflexr, evalr, relayr, grantr and portalr, and released as images on GHCR alongside its application template. Docs are at lattice.alexnodeland.com/stackr. This repository is archived and kept for its history.
stackr is the infrastructure template for applications built on artifactr, reflexr and evalr: local Supabase, the LiteLLM gateway, OpenTelemetry, Grafana's LGTM stack with Pyroscope, and Langfuse, as one Docker Compose project with profiles, and a Copier template that generates an application already wired to all of them.
Status: pre-release. v0.1 is built, as planned in RFC-0001, and not yet released.
Every application on the libraries needs the same infrastructure: a database with sign-in, a gateway in front of the models with budgets and guardrails, traces, metrics, logs and profiles, and a place for LLM traces, scores and datasets. The libraries emit OpenTelemetry, reach models through a LiteLLM proxy and ship their own Grafana dashboards, and stackr is where those pieces are configured to meet. Applications talk only to ports (OTLP, the OpenAI API, a PostgreSQL URL, JWTs, Langfuse's API), so moving one from the local stack to hosted services changes its settings, not its code.
You need Docker with Compose v2, uv, make, jq, and the Supabase CLI (or Node, to run it through npx).
git clone https://github.com/alexnodeland/stackr.git
cd stackr
make env # .env, with local secrets generated
make up # start the stack, with local Supabase
make smoke # send test telemetry through it and check it arrives
make down # stop it, keeping its data| Service | Address | Sign in with (from .env) |
|---|---|---|
| Grafana | http://localhost:3000 | admin, GRAFANA_ADMIN_PASSWORD |
| Langfuse | http://localhost:3300 | LANGFUSE_ADMIN_EMAIL, LANGFUSE_ADMIN_PASSWORD |
| Supabase Studio | http://localhost:54323 | |
| LiteLLM admin UI | http://localhost:4400/ui | admin, LITELLM_MASTER_KEY |
Applications send OTLP to localhost:4317 (gRPC) or localhost:4318 (HTTP), and reach models through the gateway at http://localhost:4400 with a tenant's key: make tenant NAME=acme creates one. Provider keys go in .env. Run make to list every command.
uvx copier copy gh:alexnodeland/stackr my-app
cd my-app
git init # the git hooks and `copier update` need a repository
make install # writes uv.lock: commit it
make env && make check
make up # runs it beside the stack, at http://localhost:8800It generates an application on artifactr, reflexr or both: FastAPI with each library's REST, WebSocket and MCP surfaces, Supabase sign-in and PostgreSQL, agents on the gateway, OpenTelemetry, feedback as Langfuse scores, evalr experiments, and the family's quality gates. uvx copier update brings in the template's later improvements.
- Profiles as adapter sets.
observability,langfuseandgateway, started together or one at a time, with local Supabase or plain PostgreSQL as the database behind one setting. - An LLM gateway. Model groups with fallbacks across providers, a team and a budget per tenant, and guardrails chosen per request.
- One route for telemetry. The Collector sends traces to Tempo and Langfuse, metrics to Prometheus and logs to Loki, and Grafana links them to each other and to Pyroscope's profiles, with the libraries' dashboards pinned by release.
- Checked every way it can be.
make validatechecks every configuration with each service's own validator, and the smoke tests start the stack and follow telemetry, a gateway request and an application's agents to where they land, on every pull request. - Local by default. Secrets generated into a gitignored
.env, and every published port bound to127.0.0.1.
The documentation site is at https://stackr.alexnodeland.com. It is built from docs/ and published from main on every push; run make docs-serve to read it locally at http://localhost:8000.
- Getting started and the guides: the stack and its profiles, local Supabase, the LLM gateway, observability, Langfuse, the application template, the smoke tests, validation and CI, security and troubleshooting.
- Reference: every service, setting, pipeline, data source, model, template question, command and pinned version, generated from the files that define them.
- Architecture: the ports, the profiles and what exists today.
- Architecture decision records: why each part is the way it is.
- RFCs: proposals and the v0.1 build plan.
- Brand: the mark, colours and type.
stackr is the infrastructure of a family with artifactr, for chats in which people and agents edit shared artifacts; reflexr, for workflows that events start; and evalr, which evaluates both against people's feedback. The libraries' dev containers join its network, and its template generates applications on them.
See CONTRIBUTING.md for setup, the trunk-based workflow, and the RFC and ADR process.