Files
sofa/apps/public-api/package.json
T
jake 1798107afc feat: add public-api app and route update checks through it
- Add `apps/public-api` (`@sofa/public-api`) — minimal Hono app
  deployable to Vercel; `GET /v1/version` fetches the latest GitHub
  release and returns `{ version, releaseUrl }` with a 15-minute
  CDN cache (`s-maxage=900, stale-while-revalidate=3600`)
- Update `packages/core/src/update-check.ts` to call
  `PUBLIC_API_URL/v1/version` instead of the GitHub API directly;
  `PUBLIC_API_URL` defaults to `https://public-api.sofa.watch`
2026-03-13 19:53:51 -04:00

21 lines
434 B
JSON

{
"name": "@sofa/public-api",
"version": "0.1.0",
"private": true,
"type": "module",
"scripts": {
"dev": "PORT=3002 bun --watch src/app.ts",
"start": "PORT=3002 bun src/app.ts",
"lint": "biome check",
"format": "biome format --write",
"check-types": "tsc --noEmit"
},
"dependencies": {
"hono": "4.12.7"
},
"devDependencies": {
"@types/bun": "catalog:",
"typescript": "catalog:"
}
}