Responsio is a lightweight TypeScript library for standardizing REST API responses. Current stable version is 0.3.0, released as an early public alpha with ongoing development. It provides a simple wrapper to structure success and error responses consistently, reducing boilerplate in Express/Koa-based APIs. Unlike more opinionated formatters, it focuses on minimal configuration and direct JSON formatting, targeting developers who want a thin utility rather than a full framework add-on.
npm install responsioNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows basic usage of responsio.formatSuccess() and responsio.formatError() in an Express app.
Use responsio.formatSuccess() and responsio.formatError() instead.
Use ESM imports or upgrade your project to ESM.
Use responsio.formatSuccess() or responsio.formatError() methods.
Chain res.status(code) before res.json() or use the second argument of responsio.error().
Manually define missing types or cast to any.
Add "type": "module" to package.json or use dynamic import().
Use responsio.formatSuccess() instead.
Upgrade Node to >=14 and use "type": "module" in package.json.
No dependency data recorded yet.