{
  "id": "tneemo/hono-api",
  "kind": "foundation",
  "description": "TypeScript REST API starter for Node with Hono: validated env, JSON errors, security headers, health check and vitest.",
  "version": "1.0.0",
  "keywords": [
    "api",
    "rest",
    "http",
    "server",
    "backend",
    "starter",
    "node",
    "typescript"
  ],
  "requires": {},
  "provides": [
    "node",
    "typescript",
    "hono",
    "zod",
    "vitest",
    "api",
    "rest-api"
  ],
  "license": "MIT",
  "repository": "https://github.com/tneemo/pkg",
  "risk": "ok",
  "quality": 100,
  "downloads": 1,
  "agent_reports": {
    "success": 0,
    "failure": 0,
    "success_rate": 0.5
  },
  "flags": 0,
  "reputation": 0.51,
  "updated_at": "2026-10-19T14:10:31.243Z",
  "latest": "1.0.0",
  "manifest": {
    "$schema": "https://pkg.tneemo.com/schema/pkg.json",
    "name": "hono-api",
    "version": "1.0.0",
    "kind": "foundation",
    "description": "TypeScript REST API starter for Node with Hono: validated env, JSON errors, security headers, health check and vitest.",
    "license": "MIT",
    "keywords": [
      "api",
      "rest",
      "http",
      "server",
      "backend",
      "starter",
      "node",
      "typescript"
    ],
    "stack": {
      "provides": [
        "node",
        "typescript",
        "hono",
        "zod",
        "vitest",
        "api",
        "rest-api"
      ]
    },
    "repository": "https://github.com/tneemo/pkg"
  },
  "readme": "# hono-api\n\nA small, production-minded starting point for a JSON REST API in TypeScript on Node.js, built on [Hono](https://hono.dev).\n\nWhat you get:\n\n- `src/app.ts`: the Hono app with request logging, security headers, a `/health` route, JSON 404s and one error handler that turns `HTTPException`, zod validation errors and bad JSON into proper JSON responses.\n- `src/env.ts`: environment variables validated with zod, `.env` loaded automatically.\n- `src/index.ts`: the Node server (`npm run dev` with reload, `npm start`).\n- `test/`: vitest tests that call the app in-process with `app.request()`.\n- `AGENTS.md`: the project conventions, so coding agents extend it consistently.\n\nPairs well with `tneemo/sqlite-db` (database), `tneemo/hono-auth` (accounts and JWT) and `tneemo/hono-rate-limit`.\n\nRequires Node.js 22.12 or newer.\n",
  "integration": "This is a foundation: it creates the project. After installing:\n\n1. `npm test` should pass and `npm run dev` serves on http://localhost:3000 (`GET /health`).\n2. Add features as routers in `src/<feature>/routes.ts` and mount them in `createApp()` in `src/app.ts` with `app.route(\"/<feature>\", routes)`.\n3. Follow `AGENTS.md` for validation, errors, env vars and tests.\n",
  "files": [
    {
      "path": ".env.example",
      "size": 44
    },
    {
      "path": ".gitignore",
      "size": 31
    },
    {
      "path": "AGENTS.md",
      "size": 849
    },
    {
      "path": "package.json",
      "size": 510
    },
    {
      "path": "src/app.ts",
      "size": 1018
    },
    {
      "path": "src/env.ts",
      "size": 456
    },
    {
      "path": "src/index.ts",
      "size": 223
    },
    {
      "path": "test/app.test.ts",
      "size": 658
    },
    {
      "path": "tsconfig.json",
      "size": 257
    }
  ],
  "checks": {
    "risk": "ok",
    "quality": 100,
    "findings": [
      {
        "level": "info",
        "code": "agent-instructions",
        "file": "AGENTS.md",
        "message": "writes instructions that coding agents will follow"
      }
    ]
  },
  "integrity": "sha256-k5tNzuWwWWXnh58Jc46Urt82LA0CW9FZHwZt5XTRajA=",
  "publisher": "admin:tneemo",
  "published_at": "2026-10-19T14:10:31.243Z",
  "versions": [
    {
      "version": "1.0.0",
      "published_at": "2026-10-19T14:10:31.243Z",
      "risk": "ok",
      "yanked": false
    }
  ]
}