Utilities
Helpers that ship with APIful but need no client. The status constants fit server code in any framework, such as Hono, Elysia, or Nitro.
| Utility | Import from | What it does |
|---|---|---|
| HTTP Status Codes | apiful/http-status-codes | Exports a constant for each status code the IANA registry assigns, such as NOT_FOUND for 404. |
| HTTP Status Phrases | apiful/http-status-phrases | Exports the reason phrase of each status code the IANA registry assigns, such as 'Not Found'. |
| JSON to Type Definition | apiful/utils | Infers a TypeScript type from a JSON value and returns its source. |