Plumier is a delightful Node.js REST framework built with TypeScript, currently at version 1.1.3 (latest stable). It follows an MVC pattern with decorators for routing, dependency injection, and OpenAPI integration. Unlike Express or Koa, Plumier provides a full-featured framework with automatic validation, reflection, and Swagger documentation generation. It uses Koa internally for HTTP handling and supports TDD. Release cadence is moderate with a focus on stability.
npm install plumierNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Creates a simple REST API with a single GET endpoint returning JSON
Use import instead of require; ensure package.json has \"type\": \"module\" or use .mjs extension.
Import KoaAdapter from 'plumier/adapters/koa' and pass it to Plumier.set().
Remove @bind() decorators; TypeScript reflection will infer binding.
Set \"experimentalDecorators\": true and \"emitDecoratorMetadata\": true in tsconfig.json.
Use @route.get('hello') not @route.get('/hello').Add \"type\": \"module\" to your package.json or rename file to .mjs.
Install reflect-metadata: npm install reflect-metadata and import it at the top of your entry file: import 'reflect-metadata'.
Set \"experimentalDecorators\": true in tsconfig.json.