Every config your stack needs. Already written.
35+ product capabilities, all driven by one service.json — which also generates 12-17 files per service and 40+ stack-wide artifacts. Powered by Tilt and Starlark, running on plain Docker. Zero Kubernetes knowledge required.
The two weeks nobody budgets for
Setup friction is a workflow problem. This illustrative scenario shows how a local service contract could help; onboarding time has not been measured on a hiring cohort.
Illustrative setup scenario — 5 developers start together
Example scenario: 5 developers start together. Adjust the assumptions to match your team; this is not a measured hiring cohort.
5 salaries · day 1Day two — "how do I run this?"
Nobody can start. The business analyst hasn't finished the specs. The .env files live in someone's inbox. The setup wiki was last edited eight months ago and describes a stack that no longer exists.
5 salaries · waitingWeek one — the environment lottery
One developer gets the backend running but not the database. Another has the database but not the events queue. Two are still installing tooling. None of them can see the whole system.
5 salaries · still waitingExample delay before the first commit
By the time everyone can run the project, two weeks of 5 salaries are gone — burned on waiting, not on building. This is the most expensive line item nobody put in the budget.
Example scenario · assumptions are user-setWith Flisk — an illustrative setup flow
Flisk is designed so flisk doctor and flisk up replace a setup wiki. Onboarding time has not been measured on a hiring cohort.
Designed workflow · not a cohort measurementConfiguration generation
One service.json becomes 12-17 production-grade files per service - written correctly and kept in sync.
TypeScript config
tsconfig.json with proper paths, includes and compiler options for backend, frontend and libraries.
Vite configuration
vite.config.ts for local, Docker and production builds. React by default, or Vue 3 with "framework": "vue".
Docker and Compose
Multi-stage Dockerfile with golden image layering. Compose orchestration per service.
nginx proxy
Reverse proxy rules with Traefik integration for pretty local URLs.
Environment files
.env files with service-specific variables, database URLs and internal dependencies.
Package manager
.npmrc and bunfig.toml wired to the local Verdaccio registry and npm.
AGENTS.md guard (Premium)
Generated AGENTS.md keeps AI coding assistants from editing autogenerated files.
Development experience
Built on Tilt — 9.4k GitHub stars — for a feedback loop measured in seconds.
Hot reload
Instant code sync with Tilt live_update. No container rebuilds while you type.
Selective startup
Run 5 services instead of 100. Start only what your task touches.
Auto-discovery
Finds every service.json in your directory tree. Zero manual registration.
Manifest synthesis
Services without manifests auto-configure from directory structure.
Config-gen resources
Every manifest gets a visible Tilt resource with its own status, logs and errors.
Dependency graph
dependsOn resolved automatically. Services start in the correct order.
Stack grouping
Boot entire feature sets with one command: flisk up api.
Infrastructure
Production-grade Docker architecture without a production-grade ops team.
Golden images
Four cached layers — L1 OS, L2 runtime, L3 builder, L4 app — shared across all services.
Docker only
Pure Docker + Tilt. No cluster, no control plane, no YAML maze.
Traefik integration
Pretty URLs like user.backend.localhost, configured automatically.
API gateway
Routing between services with path-based rules, generated from manifests.
Local registry (Premium)
Verdaccio npm registry for sharing libraries between services.
Playwright testing (Premium)
E2E configuration per service, ready to run against the live stack.
C4 diagrams (Premium)
Architecture diagrams generated from your actual service topology.
Database and state
Per-service PostgreSQL, migrations, cache and events — provisioned, not documented.
Database provisioning
Isolated PostgreSQL database per service with proper naming.
Prisma integration
Prisma config with DATABASE_URL generated. Migrations built in.
Readiness checks
Services wait for the database. No connection errors on boot.
Migration scripts
prisma migrate runs on service startup, automatically.
Persistent volumes
Data survives container restarts during development.
NATS JetStream
Event-driven pub/sub wired between services out of the box.
Redis support
Shared Redis for caching and sessions, auto-configured.
Security and operations
The boring, expensive parts — validated before they can break your morning.
Infisical secrets
Machine identities, paths and dynamic secrets per service.
Pre-flight validators
Manifests validated before build. Misconfigurations caught early, in plain language.
Dependency manifest
A full service graph for complex trees, resolved automatically.
Path safety
Docker-safe path handling. No more works-on-my-machine builds.
Health checks
Tilt monitors every service and restarts on failure.
Library autodiscovery
Local @flisk/* packages auto-linked from package.json.
Resource aliases
Reference services by name in dependencies and commands.
A real toolchain, wired together
Every artifact below is produced by an actual generator module in the Flisk source tree. Docker is optional: services can run as local processes, or in containers with Tilt live updates. See our generated /health fixture with 100 services.
# generated [from service.json]
Your local stack, generated from one file.
One real service from the restaurant example. Pick a file, then hover the marked lines to see why each part is there.
service.json is the one file you write per service. Hover the highlighted lines to see what each part feeds.
A four-layer build generated per service. Layers that change least sit at the bottom, so Docker can reuse them from cache.
One compose file per stack, generated from every service.json in it. You never edit it; Flisk rewrites it when a manifest changes.
Test and coverage settings are generated too, so every backend in the stack starts from the same bar.
{ "$schema": "https://flisk.sh/schema.service.json", "schemaVersion": 1, "appName": "reservation-api", "appType": "backend", "stack": "guest",Identity. Name, kind, and stack. Flisk derives image names, routes, and folder layout from these three values. "port": 4100, "databaseName": "Flisk_restaurant", "dependsOn": ["restaurant-migrator"], "healthCheckPath": "/health"Runtime contract. Port, database, startup order, and health path. These flow into the Dockerfile, the stack compose file, and Traefik.}
# ---- L1: os_base (Golden L1: tdk-restaurant-example-l1:latest) ----FROM tdk-restaurant-example-l1:latest AS l1_os_base# OS dependencies pre-installed in golden L1 imageWORKDIR /app# ---- L1: runtime_env ----# Shared runtime environmentENV NODE_ENV=productionENV BUN_INSTALL_CACHE_DIR=/cache/bunL1 starts from a shared golden base image, so OS packages and the runtime are installed once for the whole stack.# ---- L2: dependency_manifest ----FROM tdk-restaurant-example-l2:latest AS l2_deps_manifestWORKDIR /app# Cache-busting mechanism - change this value to force dependency reinstallARG CACHE_BUSTER=2026-06-25-v1RUN echo "Cache buster: ${CACHE_BUSTER}"# Copy workspace root for monorepo resolutionCOPY package.json ./package.jsonCOPY services/guest/reservation-api/.autogenerated/.npmrc.docker.autogenerated /app/.npmrcCOPY services/guest/reservation-api/.autogenerated/bunfig.docker.autogenerated.toml /app/.bunfig.toml# Copy service manifest files for deterministic dependency layerWORKDIR /app/services/guest/reservation-apiCOPY services/guest/reservation-api/package.json ./package.jsonCOPY services/guest/reservation-api/.autogenerated/.npmrc.docker.autogenerated .npmrcCOPY bun.lock* ./COPY services/guest/reservation-api/.autogenerated/bunfig.docker.autogenerated.toml .bunfig.toml# Diagnostics suppressed (set TILT_DEBUG=true for verbose output)# Install dependencies (quiet by default; set TILT_DEBUG=true for verbose diagnostics)COPY shared-platform-engineering/docker-templates/install-deps.sh /usr/local/bin/install-deps.shRUN --mount=type=cache,target=/cache/bun,sharing=shared chmod +x /usr/local/bin/install-deps.sh && start_ts=$(date +%s) && /usr/local/bin/install-deps.sh && end_ts=$(date +%s) && echo "install-deps duration: $((end_ts-start_ts))s"RUN mkdir -p /app/node_modules/.bunL2 copies only manifests and the lockfile, then installs against a shared cache mount. Editing source code does not touch this layer.# ---- L3: backend_compiler ----FROM tdk-restaurant-example-l3-backend:latest AS l3_backend_buildWORKDIR /app/services/guest/reservation-api# Build argument to skip Infisical setup (for local dev / fast builds)ARG SKIP_INFISICAL_SETUP=0# Reuse resolved dependencies from l2_deps_manifest to avoid reinstalling in L3COPY --link --from=l2_deps_manifest /app/services/guest/reservation-api/node_modules ./node_modules# Bun isolated linker symlinks may resolve through /app/node_modules/.bunCOPY --link --from=l2_deps_manifest /app/node_modules/.bun /app/node_modules/.bun# Copy manifest files for dependency installation (in case L2 is stale)COPY services/guest/reservation-api/package.json ./package.jsonCOPY services/guest/reservation-api/.autogenerated/bunfig.docker.autogenerated.toml ./bunfig.tomlCOPY services/guest/reservation-api/.autogenerated/.npmrc.docker.autogenerated ./.npmrcCOPY services/guest/reservation-api/.autogenerated/tsconfig.docker.autogenerated.json ./tsconfig.jsonCOPY services/guest/reservation-api/.autogenerated/tsconfig.autogenerated.json ./.autogenerated/tsconfig.autogenerated.jsonCOPY services/guest/reservation-api/.autogenerated/*.ts ./.autogenerated/COPY services/guest/reservation-api/src ./srcENV NODE_ENV=productionRUN bun run build# Fix hono/cors subpath import for Bun runtime compatibilityRUN find ./dist -type f -name "*.js" -exec sed -i "s|from 'hono/cors'|from '../node_modules/hono/dist/middleware/cors/index.js'|g" {} + || trueL3 compiles. It reuses the node_modules resolved in L2 instead of installing again.# ---- L3: production_purger ----FROM tdk-restaurant-example-l2:latest AS l3_production_purgerWORKDIR /app/services/guest/reservation-apiCOPY services/guest/reservation-api/package.json ./package.jsonCOPY services/guest/reservation-api/.autogenerated/bunfig.docker.autogenerated.toml ./bunfig.tomlCOPY services/guest/reservation-api/.autogenerated/.npmrc.docker.autogenerated ./.npmrcRUN --mount=type=cache,target=/cache/bun,sharing=shared bun install --production --cache-dir=/cache/bun# Option 2: Aggressive node_modules pruning to reduce size# NOTE: Keep .d.ts files - they are needed for Bun module resolution with subpath exportsRUN find node_modules -type f \( -name '*.md' -o -name '*.ts' ! -name '*.d.ts' -o -name '*.map' -o -name '*.test.js' -o -name '*.spec.js' -o -name 'README*' -o -name 'CHANGELOG*' -o -name 'LICENSE*' \) -deleteRUN find node_modules -type d \( -name '.bin' -o -name 'test' -o -name 'tests' -o -name '__tests__' -o -name 'spec' -o -name 'specs' -o -name '.github' -o -name 'docs' -o -name 'examples' \) -exec rm -rf {} + 2>/dev/null || trueA second L3 stage installs production dependencies only and prunes docs, tests, and source maps.# ---- L4: backend_runtime ----FROM tdk-restaurant-example-l4-backend:latest AS l4_backend_runtimeWORKDIR /app/services/guest/reservation-api# Build argument to skip Infisical setup (for local dev / fast builds)ARG SKIP_INFISICAL_SETUP=0ENV NODE_ENV=productionCOPY --from=l3_production_purger /app/services/guest/reservation-api/node_modules ./node_modulesCOPY --from=l3_production_purger /app/services/guest/reservation-api/node_modules/.bun /app/node_modules/.bunCOPY --from=l3_backend_build /app/services/guest/reservation-api/dist ./distCOPY services/guest/reservation-api/package.json ./package.json# Fix Bun hoisted package symlinks that break when copied to DockerUSER rootCOPY shared-platform-engineering/docker-templates/bun-hoisted-symlink-fix.sh /usr/local/bin/bun-hoisted-symlink-fix.shRUN chmod +x /usr/local/bin/bun-hoisted-symlink-fix.sh && /usr/local/bin/bun-hoisted-symlink-fix.shUSER bunEXPOSE 4000COPY --chmod=0755 shared-platform-engineering/docker-templates/infisical-entrypoint.sh /entrypoint.shENV RESOURCE_NAME="reservation-api"ENV INFISICAL_SECRET_PATH="/services/reservation-api"ENV INFISICAL_TOKEN=${INFISICAL_TOKEN:-}ENV INFISICAL_CLIENT_ID=${INFISICAL_CLIENT_ID:-}ENV INFISICAL_CLIENT_SECRET=${INFISICAL_CLIENT_SECRET:-}ENV INFISICAL_API_URL=${INFISICAL_API_URL:-http://infisical:8080}ENV INFISICAL_PROJECT_ID=${INFISICAL_PROJECT_ID:-}ENV INFISICAL_ENVIRONMENT=${INFISICAL_ENVIRONMENT:-dev}ENV INFISICAL_ALLOW_FALLBACK=${INFISICAL_ALLOW_FALLBACK:-true}ENV RESOURCE_NAME=reservation-apiENTRYPOINT ["/entrypoint.sh"]CMD ["bun", "run", "start"]L4 is the runtime: production node_modules, the built dist folder, and a non-root user.FROM l4_backend_runtime AS productionFROM l4_backend_runtime AS development################################################################################ 🛑 CRITICAL: SYSTEM-GENERATED FILE - DO NOT MODIFY DIRECTLY## ANY MANUAL CHANGES MADE TO THIS FILE WILL BE WIPED ON THE NEXT 'tilt up'.# TO MODIFY THIS CONFIGURATION:# 1. Edit the source generator in: .tilt/topologies/# 2. Or update service.json## Generation Source: golden_docker_generator_v2.L4_generate_orchestrator# Service: reservation-api# Type: Use docker_build(dockerfile_contents=...) in Tiltfile###############################################################################
################################################################################ 🛑 CRITICAL: SYSTEM-GENERATED FILE - DO NOT MODIFY DIRECTLY## ANY MANUAL CHANGES MADE TO THIS FILE WILL BE WIPED ON THE NEXT 'tilt up'.# Generation Source: .tilt/topologies/platform/docker/index.star###############################################################################Every generated file says so at the top and names the generator that wrote it.# =============================================================================# PORT DEFINITIONS - Change these to change ports everywhere# =============================================================================x-backend-port: &backend-port 4100x-frontend-port: &frontend-port 80Ports are declared once as YAML anchors and reused below.# =============================================================================# MEMORY LIMITS# =============================================================================x-nix-any-m1-arm64-memory-limit: &nix-any-m1-arm64-memory-limit deploy: resources: limits: memory: 192M reservations: memory: 64Mx-frontend-memory-limit: &frontend-memory-limit deploy: resources: limits: memory: 64M cpus: '0.15' reservations: memory: 32MMemory limits keep a laptop usable when many services run at once.services: reservation-api: image: guest_reservation-api:dev restart: unless-stopped build: context: ../../../../. dockerfile: services/guest/reservation-api/.autogenerated/Dockerfile.app.autogeneratedEach service builds from its own generated Dockerfile. env_file: - ../../../services/guest/reservation-api/.autogenerated/.env.backend.autogenerated environment: - RESOURCE_NAME=reservation-api - INFISICAL_SECRET_PATH=/services/reservation-api - INFISICAL_TOKEN=${INFISICAL_TOKEN:-} - INFISICAL_CLIENT_ID=${INFISICAL_CLIENT_ID:-} - INFISICAL_CLIENT_SECRET=${INFISICAL_CLIENT_SECRET:-} - INFISICAL_API_URL=${INFISICAL_API_URL:-http://infisical:8080} - INFISICAL_PROJECT_ID=${INFISICAL_PROJECT_ID:-} - INFISICAL_ENVIRONMENT=${INFISICAL_ENVIRONMENT:-dev} - INFISICAL_ALLOW_FALLBACK=${INFISICAL_ALLOW_FALLBACK:-true} - RESOURCE_NAME=guest - PORT=4100 - INSTANCE_ID=0 - NATS_QUEUE_GROUP=guest_backend_svc - TILT_DATABASE_URL=postgresql://tdk_restaurant_example:${DB_PASSWORD}@tdk_restaurant_example_postgres:5432/tdk_restaurant_example_guest?schema=public - TILT_NATS_URL=nats://tdk_restaurant_example_nats:4222 - NODE_ENV=development - DATABASE_URL=postgresql://tdk_restaurant_example:${DB_PASSWORD}@tdk_restaurant_example_postgres:5432/tdk_restaurant_example_guest?schema=public # Per-project escape hatch: set AUTO_MIGRATE=false in the project root .env # to skip Prisma auto-migration at container boot (e.g. while diagnosing a # migration/CLI issue) without touching the generator or any service code. - AUTO_MIGRATE=${AUTO_MIGRATE:-true} - AUTH_MODE=identity-service - IDENTITY_RESOURCE_URL=${IDENTITY_RESOURCE_URL:-None} labels: - "traefik.enable=true" - "traefik.http.routers.reservation-api.rule=Host(`guest.backend.tdk_restaurant_example.local`)" - "traefik.http.routers.reservation-api.entrypoints=web" - "traefik.http.routers.reservation-api.service=reservation-api" - "traefik.http.services.reservation-api.loadbalancer.server.port=4100" - "traefik.http.services.reservation-api.loadbalancer.healthcheck.path=/health" - "traefik.http.services.reservation-api.loadbalancer.healthcheck.interval=10s" - "traefik.http.services.reservation-api.loadbalancer.healthcheck.timeout=5s" - "traefik.http.services.reservation-api.loadbalancer.healthcheck.followredirects=false"Traefik health checks use healthCheckPath from service.json. - "traefik.docker.network=tdk_restaurant_example_traefik-public" - "traefik.http.routers.reservation-api-project.rule=Host(`api.tdk-restaurant-example.localhost`) && PathPrefix(`/api/reservation`)" - "traefik.http.routers.reservation-api-project.entrypoints=web" - "traefik.http.routers.reservation-api-project.service=reservation-api" - "traefik.http.routers.reservation-api-project.middlewares=reservation-api-strip-prefix-project" - "traefik.http.middlewares.reservation-api-strip-prefix-project.stripprefix.prefixes=/api/reservation" - "traefik.http.routers.reservation-api-project.priority=116" - "traefik.http.routers.reservation-api-management.rule=Host(`api.tdk-restaurant-example.localhost`) && PathPrefix(`/api/guest-management`)" - "traefik.http.routers.reservation-api-management.entrypoints=web" - "traefik.http.routers.reservation-api-management.service=reservation-api" - "traefik.http.routers.reservation-api-management.middlewares=reservation-api-strip-prefix-management" - "traefik.http.middlewares.reservation-api-strip-prefix-management.stripprefix.prefixes=/api/guest-management" - "traefik.http.routers.reservation-api-management.priority=121" # Redirect middleware for URL restructuring: old path -> new path - "traefik.http.middlewares.reservation-api-redirect.redirectregex.regex=^`/guest-management/api/v1/(.*)`" - "traefik.http.middlewares.reservation-api-redirect.redirectregex.replacement=`/api/reservation/$$1`" - "traefik.http.middlewares.reservation-api-redirect.redirectregex.permanent=true" networks: - tdk_restaurant_example_traefik-public - tdk_restaurant_example_backend - tdk_restaurant_example_database - tdk_restaurant_example_infisical-network healthcheck: test: ["CMD", "curl", "-f", "--max-time", "5", "http://localhost:4100/health"] interval: 10s timeout: 5s retries: 6 # STORY 4 FIX: 30s grace period to prevent 504 errors during startup # Services get 30s to initialize before health checks begin start_period: 30s # Note: depends_on removed - Tilt manages service startup order deploy: resources: limits: cpus: '0.5' memory: 512M reservations: cpus: '0.2' memory: 256M reservation-app: image: guest_reservation-app:dev build: context: ../../../../. dockerfile: services/guest/reservation-app/.autogenerated/Dockerfile.app.autogenerated target: production <<: *frontend-memory-limit env_file: - ../../../services/guest/reservation-app/.autogenerated/.env.frontend.autogenerated environment: - VITE_APP_ENV=development labels: - "traefik.enable=true" - 'traefik.http.routers.reservation-app.rule=Host(`reservation-app.localhost`) || (Host(`app.tdk-restaurant-example.localhost`) && PathPrefix(`/reservation-app`)) || (Host(`localhost`) && PathPrefix(`/reservation-app`))' - "traefik.http.routers.reservation-app.entrypoints=web,websecure" - "traefik.http.routers.reservation-app.priority=116" - "traefik.http.routers.reservation-app.middlewares=reservation-app-strip-prefix" - "traefik.http.middlewares.reservation-app-strip-prefix.stripprefix.prefixes=/reservation-app" - "traefik.http.services.reservation-app.loadbalancer.server.port=80" - "traefik.docker.network=tdk_restaurant_example_traefik-public" networks: - tdk_restaurant_example_traefik-public - tdk_restaurant_example_backend healthcheck: test: ["CMD", "wget", "--quiet", "--tries=1", "--spider", "http://127.0.0.1:80"] interval: 10s timeout: 5s retries: 3 # STORY 4 FIX: 30s grace period to prevent 504 errors on startup start_period: 30snetworks: tdk_restaurant_example_traefik-public: external: true tdk_restaurant_example_backend: external: true tdk_restaurant_example_database: external: true tdk_restaurant_example_infisical-network: external: true
///////////////////////////////////////////////////////////////////////////////// 🛑 CRITICAL: SYSTEM-GENERATED FILE - DO NOT MODIFY DIRECTLY//// ANY MANUAL CHANGES MADE TO THIS FILE WILL BE WIPED ON THE NEXT 'tilt up'.// TO MODIFY THIS CONFIGURATION:// 1. Edit the source generator in: .tilt/topologies/// 2. Or update service.json//// Generation Source: Vite.Vite.backend()// Service: reservation-api// Type: Backend (Vitest)///////////////////////////////////////////////////////////////////////////////The header names the generator, the service, and how to change the output: edit service.json, not this file.import path from 'node:path';import { defineConfig } from 'vitest/config';export default defineConfig({ resolve: { alias: { }, }, test: { coverage: { all: true, exclude: [ 'node_modules/**', 'dist/**', 'docs/**', 'src/tests/**', 'src/**/*.test.ts', 'src/**/*.spec.ts', 'src/**/*.d.ts', 'src/test-*.ts', 'prisma/**', '**/*.config.{ts,js}', '**/coverage/**', ], include: ['src/**/*.{ts,js}'], provider: 'v8', reporter: ['text', 'json', 'html', 'lcov'], thresholds: { branches: 70, functions: 70, lines: 70, statements: 70, },Coverage counts all source files and fails under 70 percent on any axis. }, deps: { inline: [], }, environment: 'node', exclude: ['node_modules', 'dist', 'docs/node_modules', '**/tests/e2e/**'], globals: true, include: ['src/**/*.{spec,test}.{ts,js}'],Unit tests run in Node with globals; end to end tests are excluded. },});
on npm
Simple apps run as plain processes
Give a service a command in its service.json and flisk up starts it as a local process on your machine. All you need is the flisk CLI and your app's own runtime, such as Node.js, Python, Go or Bun. It suits the first apps an AI agent builds: an API, a website, a worker.
{"appName": "api","appType": "backend","command": "node server.js","port": 4000,"healthCheckPath": "/health"}
flisk up
on npm
Your agent knows Flisk from the first prompt
flisk project now writes 12 Flisk skills for Claude Code (.claude/skills) and for Codex, Cursor and others (.agents/skills), plus a short AGENTS.md that points at them. Files you already have are never overwritten, and --no-agent-skills skips the step.
flisk project
on npm
See each service come up
While flisk up waits, it reports each service as waiting, building, starting, ready or failed, with an N/M ready count. A failed service is named with a pointer to flisk logs -s <name>. In CI or a pipe it prints one plain line per change instead.
flisk up
on npm
Doctor tells you what to fix first
After its checks, flisk doctor prints a Fix first list: failing checks ordered by how much they block you, with one command per line that works on your platform. Warnings come after hard failures, and --json gains the same list.
flisk doctor
on npm
Find what is broken in a big project
flisk status groups services under their stack with a healthy count for each. Add --unhealthy to status or logs to see only failing or pending services; it says so when everything is healthy.
flisk status --unhealthy
on npm
Watch your AI agents work
Select an agent in flisk ui to see whether it is ready, how many sessions it has, its last activity and its five newest sessions. Agents that keep their state in Postgres now get their database and become ready.
flisk ui
A setup wiki should lead to a running local stack
Flisk is designed so flisk doctor and flisk up replace a setup wiki. The onboarding time has not been measured on a hiring cohort.