{"templates":[{"name":"mcp-server","title":"Remote MCP server","description":"A Streamable HTTP MCP server at /mcp with three example tools, ready to connect from Claude, ChatGPT or any MCP client.","runtime":"Bun 1.3 + TypeScript, official MCP SDK 1.30.1","size":"small","env":[{"name":"MCP_TOKEN","required":false,"description":"When set, /mcp answers 401 unless the client sends Authorization: Bearer <MCP_TOKEN>. Leave unset for clients that cannot send a header."}],"tags":["mcp","ai","tools","typescript","bun"],"next":"Connect a client to {url}/mcp, e.g. claude mcp add --transport http my-tools {url}/mcp. To require a token, set MCP_TOKEN (oa env set {slug} MCP_TOKEN=..., or PUT /v1/artifacts/{slug}/env).","file_count":5,"bytes":29830,"files":["README.md","bun.lock","oa.json","package.json","server.ts"],"page":"https://openartifacts.sh/templates/mcp-server","detail_url":"https://openartifacts.sh/v1/templates/mcp-server","publish":{"curl":"curl -sX POST https://openartifacts.sh/v1/publish -H \"Authorization: Bearer $OA_TOKEN\" -F type=service -F template=mcp-server -F slug=my-tools","mcp":{"tool":"publish_artifact","arguments":{"type":"service","template":"mcp-server","slug":"my-tools"}},"cli":"oa deploy --template mcp-server --slug my-tools"}},{"name":"api-sqlite","title":"JSON API on SQLite","description":"A small JSON CRUD API whose SQLite database survives sleeps, restarts and redeploys through snapshots in /data.","runtime":"Python 3.11, standard library","size":"small","env":[{"name":"API_KEY","required":false,"description":"When set, POST, PATCH and DELETE need Authorization: Bearer <API_KEY>; reads stay public."}],"tags":["api","crud","sqlite","database","python"],"next":"Create an item: curl -X POST {url}/items -H 'content-type: application/json' -d '{\"name\":\"first\"}', then curl {url}/items. Set API_KEY (oa env set {slug} API_KEY=...) to protect writes.","file_count":3,"bytes":17845,"files":["README.md","app.py","oa.json"],"page":"https://openartifacts.sh/templates/api-sqlite","detail_url":"https://openartifacts.sh/v1/templates/api-sqlite","publish":{"curl":"curl -sX POST https://openartifacts.sh/v1/publish -H \"Authorization: Bearer $OA_TOKEN\" -F type=service -F template=api-sqlite -F slug=my-api","mcp":{"tool":"publish_artifact","arguments":{"type":"service","template":"api-sqlite","slug":"my-api"}},"cli":"oa deploy --template api-sqlite --slug my-api"}},{"name":"webhook-receiver","title":"Webhook receiver","description":"Receives webhooks, verifies their HMAC signature (Stripe, GitHub or generic), stores each delivery in /data and lists recent ones.","runtime":"Python 3.11, standard library","size":"small","env":[{"name":"WEBHOOK_SECRET","required":true,"description":"The signing secret shared with the sender (Stripe's whsec_..., GitHub's webhook secret, or your own). Deliveries are refused until it is set; the service boots without it."},{"name":"READ_TOKEN","required":false,"description":"Bearer token for GET /events. Defaults to WEBHOOK_SECRET."}],"tags":["webhooks","stripe","github","hmac","python"],"next":"Set WEBHOOK_SECRET (oa env set {slug} WEBHOOK_SECRET=..., or PUT /v1/artifacts/{slug}/env), then point the sender at {url}/webhook. Read deliveries with curl {url}/events -H 'Authorization: Bearer <WEBHOOK_SECRET>'.","file_count":3,"bytes":14667,"files":["README.md","app.py","oa.json"],"page":"https://openartifacts.sh/templates/webhook-receiver","detail_url":"https://openartifacts.sh/v1/templates/webhook-receiver","publish":{"curl":"curl -sX POST https://openartifacts.sh/v1/publish -H \"Authorization: Bearer $OA_TOKEN\" -F type=service -F template=webhook-receiver -F slug=my-hooks","mcp":{"tool":"publish_artifact","arguments":{"type":"service","template":"webhook-receiver","slug":"my-hooks"}},"cli":"oa deploy --template webhook-receiver --slug my-hooks"}},{"name":"telegram-bot","title":"Telegram bot","description":"A Telegram bot in webhook mode: it sleeps until someone messages it, wakes, and answers in the webhook response.","runtime":"Python 3.11, standard library","size":"small","env":[{"name":"TELEGRAM_BOT_TOKEN","required":true,"description":"The token @BotFather gives you. Without it the bot boots and GET / explains how to set it."},{"name":"TELEGRAM_WEBHOOK_SECRET","required":false,"description":"The secret Telegram sends with every update. Defaults to one derived from the bot token."}],"tags":["telegram","bot","chat","webhooks","python"],"next":"Set TELEGRAM_BOT_TOKEN (oa env set {slug} TELEGRAM_BOT_TOKEN=..., or PUT /v1/artifacts/{slug}/env), then open {url}/setup once to register the webhook.","file_count":3,"bytes":11201,"files":["README.md","bot.py","oa.json"],"page":"https://openartifacts.sh/templates/telegram-bot","detail_url":"https://openartifacts.sh/v1/templates/telegram-bot","publish":{"curl":"curl -sX POST https://openartifacts.sh/v1/publish -H \"Authorization: Bearer $OA_TOKEN\" -F type=service -F template=telegram-bot -F slug=my-bot","mcp":{"tool":"publish_artifact","arguments":{"type":"service","template":"telegram-bot","slug":"my-bot"}},"cli":"oa deploy --template telegram-bot --slug my-bot"}},{"name":"scheduled-job","title":"Scheduled job","description":"Runs every 15 minutes on the platform's schedule: fetches a URL, records the result in /data and shows recent runs.","runtime":"Python 3.11, standard library","size":"small","env":[{"name":"TARGET_URL","required":false,"description":"The URL each run fetches. Default https://example.com/."},{"name":"JOB_TOKEN","required":false,"description":"When set, a run started by hand (not by the schedule) needs Authorization: Bearer <JOB_TOKEN>."}],"tags":["cron","schedule","monitoring","jobs","python"],"next":"It runs POST /tick every 15 minutes (UTC). Run it now with curl -X POST {url}/tick, then open {url}/ to see the run. Set TARGET_URL (oa env set {slug} TARGET_URL=...) to check your own URL.","file_count":3,"bytes":11125,"files":["README.md","job.py","oa.json"],"page":"https://openartifacts.sh/templates/scheduled-job","detail_url":"https://openartifacts.sh/v1/templates/scheduled-job","publish":{"curl":"curl -sX POST https://openartifacts.sh/v1/publish -H \"Authorization: Bearer $OA_TOKEN\" -F type=service -F template=scheduled-job -F slug=my-job","mcp":{"tool":"publish_artifact","arguments":{"type":"service","template":"scheduled-job","slug":"my-job"}},"cli":"oa deploy --template scheduled-job --slug my-job"}},{"name":"node-api","title":"Node HTTP API","description":"A minimal JSON API on Node's built-in http module: no dependencies and no install step, so it boots in well under a second.","runtime":"Node.js 22, no dependencies","size":"small","env":[],"tags":["api","node","javascript","starter"],"next":"Try curl {url}/api/hello?name=agent and curl -X POST {url}/api/echo -d '{\"hello\":\"world\"}'. Add routes in server.mjs.","file_count":3,"bytes":5753,"files":["README.md","oa.json","server.mjs"],"page":"https://openartifacts.sh/templates/node-api","detail_url":"https://openartifacts.sh/v1/templates/node-api","publish":{"curl":"curl -sX POST https://openartifacts.sh/v1/publish -H \"Authorization: Bearer $OA_TOKEN\" -F type=service -F template=node-api -F slug=my-node-api","mcp":{"tool":"publish_artifact","arguments":{"type":"service","template":"node-api","slug":"my-node-api"}},"cli":"oa deploy --template node-api --slug my-node-api"}},{"name":"api-postgres","title":"JSON API on Postgres","description":"A small JSON CRUD API on the service's own Postgres 18 (\"database\": \"postgres\"): DATABASE_URL is set at start, the database is archived continuously and restored on every wake.","runtime":"Node.js 22, one driver (pg 8.13.1)","size":"small","env":[{"name":"API_KEY","required":false,"description":"When set, POST, PATCH and DELETE need Authorization: Bearer <API_KEY>; reads stay public."}],"tags":["api","crud","postgres","database","node"],"next":"Create an item: curl -X POST {url}/items -H 'content-type: application/json' -d '{\"name\":\"first\"}', then curl {url}/items. Look inside with oa db sql {slug} \"select count(*) from items\".","file_count":4,"bytes":13356,"files":["README.md","oa.json","package.json","server.mjs"],"page":"https://openartifacts.sh/templates/api-postgres","detail_url":"https://openartifacts.sh/v1/templates/api-postgres","publish":{"curl":"curl -sX POST https://openartifacts.sh/v1/publish -H \"Authorization: Bearer $OA_TOKEN\" -F type=service -F template=api-postgres -F slug=my-pg-api","mcp":{"tool":"publish_artifact","arguments":{"type":"service","template":"api-postgres","slug":"my-pg-api"}},"cli":"oa deploy --template api-postgres --slug my-pg-api"}}],"count":7,"hint":"Publish one as-is with POST /v1/publish -F type=service -F template=<name> -F slug=<slug> (or publish_artifact {\"type\":\"service\",\"template\":\"<name>\",\"slug\":\"<slug>\"}, or oa deploy --template <name>). Files sent with it replace the template files of the same path; form fields override its oa.json. GET /v1/templates/<name> returns every file, to edit first."}