{"id":35562142,"url":"https://github.com/stack-cli/stack-cli","last_synced_at":"2026-04-03T12:05:07.804Z","repository":{"id":324038627,"uuid":"1095699792","full_name":"stack-cli/stack-cli","owner":"stack-cli","description":"Stack is a K8s operator that simplifies web application deployment as well as providing a Supabase style Backed as a Service (Baas).","archived":false,"fork":false,"pushed_at":"2026-02-03T15:19:02.000Z","size":24153,"stargazers_count":8,"open_issues_count":2,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-02-03T19:50:22.199Z","etag":null,"topics":["kubernetes","operator","postgresql","rust","supabase"],"latest_commit_sha":null,"homepage":"https://stack-cli.com","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/stack-cli.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":"AGENTS.md","dco":null,"cla":null}},"created_at":"2025-11-13T12:00:23.000Z","updated_at":"2026-02-03T15:19:14.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/stack-cli/stack-cli","commit_stats":null,"previous_names":["stack-cli/stack-cli"],"tags_count":46,"template":false,"template_full_name":null,"purl":"pkg:github/stack-cli/stack-cli","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stack-cli%2Fstack-cli","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stack-cli%2Fstack-cli/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stack-cli%2Fstack-cli/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stack-cli%2Fstack-cli/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/stack-cli","download_url":"https://codeload.github.com/stack-cli/stack-cli/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stack-cli%2Fstack-cli/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29361817,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-12T01:03:07.613Z","status":"online","status_checked_at":"2026-02-12T02:00:06.911Z","response_time":55,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["kubernetes","operator","postgresql","rust","supabase"],"created_at":"2026-01-04T13:09:26.984Z","updated_at":"2026-02-12T08:26:06.599Z","avatar_url":"https://github.com/stack-cli.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Stack\n\nStack is a K8s operator that simplifies web application deployment as well as providing a Supabase style Backed as a Service (Baas).\n\n![Stack Architecture](crates/stack-cli.com/content/docs/architecture/architecture.svg \"Stack Architecture\")\n\n## Supabase Compatibility\n\nAll endpoints are compatible with Supabase client libraries.\n\n## Getting Started - Turn on Kubernetes\n\nOr choose any K8s\n\n![Docker Desktop](crates/stack-cli.com/content/docs/local-kubernetes/docker-kubernetes.png \"SDocker Desktop\")\n\n## Install Stack\n\n```sh\ncurl -fsSL https://stack-cli.com/install.sh | bash\n```\n\n## stack init\n\nInstall K8s Operators\n\n```\n🔌 Connecting to the cluster...\n✅ Connected\n🐘 Installing Cloud Native Postgres Operator (CNPG)\n⏳ Waiting for Cloud Native Postgres Controller Manager\n🛡️ Installing Keycloak Operator\n📦 Creating namespace keycloak\n⏳ Waiting for Keycloak Operator to be Available\n📦 Creating namespace stack-system\n📜 Installing StackApp CRD\n⏳ Waiting for StackApp CRD\n🔐 Setting up roles\n🤖 Installing the operator into stack-system\n🗄️ Ensuring Keycloak database in namespace keycloak\n✅ Keycloak database created.\n🛡️ Ensuring Keycloak instance in namespace keycloak\n```\n\n## stack deploy\n\nDeploy takes a `yaml` manifest and install your app into a namespace as well as installing and required services such as Postgres.\n\n```\nstack deploy --manifest demo.stack.yaml --profile dev\n```\n\n```\n🔌 Connecting to the cluster...\n✅ Connected\n📜 Installing StackApp CRD\n⏳ Waiting for StackApp CRD\n📦 Creating namespace stack-demo\n🚀 Applied StackApp `stack-demo` in namespace `stack-demo`\n```\n\n## stack secrets\n\nStack creates all the required secrets so you don't have to manage them.\n\n```\nstack secrets --manifest demo.stack.yaml\n```\n\n```\nANON_JWT=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJyb2xlIjoiYW5vbiIsImlzcyI6InN0YWNrIiwiZXhwIjoyMDgzNDA5MDgwfQ.awDa3WMeqcN0Tg95eZ9bMYXNaxQ0dNJ1vGI8puMw0ao\nAPPLICATION_URL=postgres://application_user:testpassword@stack-demo-db-cluster-rw:5432/stack-demo?sslmode=disable\nAUTHENTICATOR_URL=postgres://authenticator:testpassword@stack-demo-db-cluster-rw:5432/stack-demo?sslmode=disable\nMIGRATIONS_URL=postgres://db-owner:testpassword@stack-demo-db-cluster-rw:5432/stack-demo?sslmode=disable\nREADONLY_URL=postgres://application_readonly:testpassword@stack-demo-db-cluster-rw:5432/stack-demo?sslmode=disable\nSERVICE_ROLE_JWT=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJyb2xlIjoic2VydmljZV9yb2xlIiwiaXNzIjoic3RhY2siLCJleHAiOjIwODM0MDkwODB9.g3wAUnnMzkF--pUggmZhROFQ66Pkq7HRLe5wVs3xMjc\n```\n\n## K3s, K3d or Cloud Kubernetes\n\nStack deploys to a minimal Kubernetes install running on your laptop so development and production align more closely.\n\n![Stack in K8s](crates/stack-cli.com/assets/landing-page/k9s.png \"Stack in k8s\")\n\n# Supabase Endpoints\n\n## /rest/v1\n\nPostgrest compatible API to your database.\n\n```js\nconst supabase = createClient(\"http://localhost:30010\", process.env.ANON_JWT)\nconst { data } = await supabase.from(\"todos\").select(\"*\")\n```\n\n## /storage/v1\n\nS3 compatible storage\n\n```js\nconst supabase = createClient(\"http://localhost:30010\", process.env.SERVICE_ROLE_JWT)\nconst { data, error } = await supabase.storage.from(\"avatars\").upload(\"hello.txt\", file)\n```\n\n## /realtime/v1\n\nSubscribe to database changes over WebSockets.\n\n```js\nconst supabase = createClient(\"http://localhost:30010\", process.env.ANON_JWT)\nsupabase.channel(\"schema-db-changes\")\n  .on(\"postgres_changes\", { event: \"*\", schema: \"public\", table: \"todos\" }, console.log)\n  .subscribe()\n```\n\n# Authentication Endpoints\n\n## /auth\n\nSupabase Auth (GoTrue) handles email/password and token-based auth flows. This endpoint is enabled when `components.auth` is configured.\n\n- `/auth` routes traffic to GoTrue.\n- GoTrue uses the same database cluster as the rest of the stack.\n\n## /oidc\n\n[OAuth2 Proxy](https://oauth2-proxy.github.io/oauth2-proxy/) handles the login flow and sessions, while [Keycloak](https://www.keycloak.org/) provides the OIDC identity provider. This is optional and only enabled when you configure authentication in your manifest.\n\n- OAuth2 Proxy handles the login flow and session cookies.\n- Keycloak provides the OIDC identity provider and user management.\n- `/oidc` routes traffic to Keycloak and keeps your app behind authenticated headers.\n- Your app receives a JWT on each request so it can trust identity claims.\n\n# Gen AI Endpoints\n\n## /document-engine/extract\n\nUse [Kreuzberg](https://github.com/kreuzberg-dev/kreuzberg) To give you document processing and capabilities\n\n```sh\ncurl -F \"files=@your.pdf\" HOST:PORT/document-engine/extract\n```\n\nResponse Schema\n\n```json\n[\n  {\n    \"content\": \"Extracted text content...\",\n    \"mime_type\": \"application/pdf\",\n    \"metadata\": {\n      \"page_count\": 10,\n      \"author\": \"John Doe\"\n    },\n    \"tables\": [],\n    \"detected_languages\": [\"eng\"],\n    \"chunks\": null,\n    \"images\": null\n  }\n]\n```\n\n## /document-engine/embed\n\n```sh\ncurl -X POST http://host.docker.internal:30010/document-engine/embed \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\"texts\":[\"Hello world\",\"Second text\"]}'\n```\n\nResponse Schema\n\n```json\n{\n  \"embeddings\": [\n    [0.123, -0.456, 0.789, ...],  // 384 or 768 or 1024 dimensions\n    [-0.234, 0.567, -0.891, ...]\n  ],\n  \"model\": \"balanced\",\n  \"dimensions\": 768,\n  \"count\": 2\n}\n```\n\n# Your Application\n\n## /\n\nStack deploys your app container into the same namespace and keeps it secured by the platform defaults.\n\n```yaml\nservices:\n  web:\n    image: ghcr.io/stack/demo-app:latest\n    port: 7903\n    env:\n      - name: FEATURE_FLAG\n        value: \"true\"\n      - name: API_URL\n        value: \"https://api.example.com\"\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstack-cli%2Fstack-cli","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstack-cli%2Fstack-cli","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstack-cli%2Fstack-cli/lists"}