# Templates & Starters

> Runnable open-source application starters, scale-to-zero remote MCP servers, IDE plugins, and GitHub Actions integrations hosted on github.com/gregale-dev.

## Application Starters

- [Postgres Migration & Rollback Demo](https://github.com/gregale-dev/postgres-migration-rollback-demo) (Python 3.13 · FastAPI · Postgres 17): FastAPI + managed PostgreSQL 17 starter demonstrating release.command migrations (MIGRATION_DATABASE_URL) and coordinated code + database rollback via gregale rollback --restore-databases. (`gh repo create my-rollback-demo --template gregale-dev/postgres-migration-rollback-demo --clone && gregale deploy --name my-rollback-demo`)
- [Next.js 16 + Postgres Starter](https://github.com/gregale-dev/nextjs-postgres-starter) (Node 24 · Next.js 16 · Postgres 17): Next.js App Router with output: "standalone", pre-traffic SQL migrations, separate /healthz readiness check, and scale-to-zero MicroVMs. (`gh repo create my-nextjs-app --template gregale-dev/nextjs-postgres-starter --clone && gregale deploy --name my-nextjs-app`)
- [Bun + Hono + Postgres Starter](https://github.com/gregale-dev/bun-hono-postgres-starter) (Bun 1 · Hono · TypeScript · Postgres 17): TypeScript REST API using Bun, Hono, and postgres.js with release-command SQL migrations and managed PostgreSQL 17 suspension when idle. (`gh repo create my-hono-api --template gregale-dev/bun-hono-postgres-starter --clone && gregale deploy --name my-hono-api`)
- [Scale-to-Zero WebSockets & SSE](https://github.com/gregale-dev/scale-to-zero-websockets) (Node 22 · Managed Realtime): Hold thousands of idle WebSocket or SSE connections on Gregale Managed Realtime with heartbeat offload and HTTP callbacks so your app parks at $0 compute. (`gh repo create my-realtime-app --template gregale-dev/scale-to-zero-websockets --clone && gregale deploy --name my-realtime-app`)
- [Durable Stripe & HMAC Webhooks](https://github.com/gregale-dev/durable-stripe-webhooks) (Node 22 · Inbound Webhooks): Stripe and generic HMAC-SHA256 inbound webhook receiver validating X-Faas-Invocation-Source, event deduplication, retries, and DLQ replay while parked. (`gh repo create my-webhooks-app --template gregale-dev/durable-stripe-webhooks --clone && gregale deploy --name my-webhooks-app`)
- [Edge WAF, Bot Challenge & Spend Caps](https://github.com/gregale-dev/edge-waf-rate-limit-starter) (Node 22 · Edge Rules & Trace Fixtures): Pre-wake OWASP CRS WAF, proof-of-work scraper challenge, failure-only composite login throttle, edge response cache, and versioned trace fixtures for gregale edge rule trace. (`gh repo create my-edge-app --template gregale-dev/edge-waf-rate-limit-starter --clone && gregale deploy --name my-edge-app`)
- [Node.js API + Private Worker Queue](https://github.com/gregale-dev/node-api-worker) (Node 22 · Docker Compose · Postgres 17): Multi-service Compose starter pairing a public Express API with a private worker and Postgres FOR UPDATE SKIP LOCKED job queue without Redis. (`gh repo create my-node-worker --template gregale-dev/node-api-worker --clone && gregale deploy --project`)
- [FastAPI + Postgres Background Jobs](https://github.com/gregale-dev/fastapi-postgres-jobs) (Python 3.13 · FastAPI · Postgres 17): FastAPI HTTP API with a durable PostgreSQL job queue, leases, and exponential retries that scales both compute and database to zero when idle. (`gh repo create my-fastapi-jobs --template gregale-dev/fastapi-postgres-jobs --clone && gregale deploy --name my-fastapi-jobs`)

## Remote MCP Servers

- [Remote MCP Server in Node.js](https://github.com/gregale-dev/mcp-server-node) (Node 22 · Streamable HTTP MCP): Stateless Streamable HTTP MCP server built on the official TypeScript SDK with external OAuth, per-tool scopes, SSE progress, and AGENTS.md. (`gregale mcp server init --path ./my-mcp --runtime node && gregale mcp server deploy --path ./my-mcp --name my-mcp`)
- [Remote MCP Server in Python](https://github.com/gregale-dev/mcp-server-python) (Python 3.13 · Streamable HTTP MCP): Stateless Streamable HTTP MCP server in Python with PyJWT external OAuth, JSON Schema tool validation, resource subscriptions, and AGENTS.md. (`gregale mcp server init --path ./my-mcp --runtime python && gregale mcp server deploy --path ./my-mcp --name my-mcp`)
- [Remote MCP Server in Go](https://github.com/gregale-dev/mcp-server-go) (Go 1.26 · Streamable HTTP MCP): Stateless Streamable HTTP MCP server using modelcontextprotocol/go-sdk with JWKS external OAuth, per-tool allowlists, and AGENTS.md. (`gregale mcp server init --path ./my-mcp --runtime go && gregale mcp server deploy --path ./my-mcp --name my-mcp`)

## IDE & Coding Agent Plugins

- [Gregale Plugin for Antigravity](https://github.com/gregale-dev/gregale-antigravity-plugin) (Antigravity Plugin · Hosted MCP): Connects Antigravity to https://api.gregale.dev/mcp with deploy and diagnose skills plus plain-Markdown operational rules. (`agy plugin install https://github.com/gregale-dev/gregale-antigravity-plugin`)
- [Gregale Plugin for Claude Code](https://github.com/gregale-dev/gregale-claude-code-plugin) (Claude Code Plugin & Marketplace): Claude Code plugin marketplace configuring https://api.gregale.dev/mcp, deploy/diagnose skills, and CLAUDE.md guardrails. (`/plugin marketplace add gregale-dev/gregale-claude-code-plugin`)
- [Gregale Plugin for Cursor](https://github.com/gregale-dev/gregale-cursor-plugin) (Cursor Plugin · Hosted MCP): Deploy, inspect logs, diagnose regressions, and roll back releases directly from Cursor over OAuth-scoped hosted MCP. (`https://github.com/gregale-dev/gregale-cursor-plugin`)

## CI/CD Integrations

- [setup-gregale GitHub Action](https://github.com/gregale-dev/setup-gregale) (GitHub Action · @v1): Composite GitHub Action that installs the Gregale CLI, masks optional bearer credentials, and pairs with edge-rule-trace and deploy verification workflows. (`uses: gregale-dev/setup-gregale@v1`)

Canonical URL: https://gregale.dev/templates
