Triva is a production-ready Node.js HTTP framework with built-in middleware, caching, and database support.
npm install trivaimport { build, get, listen } from 'triva';
await build({
env: 'development'
});
get('/', (req, res) => {
res.json({ message: 'Hello World' });
});
listen(3000);- HTTP/HTTPS server
- Built-in routing:
get,post,put,del,patch - Middleware support (throttling, logging, error tracking)
- Database adapters (MongoDB, PostgreSQL, Redis, MySQL, SQLite, and more)
- Cache layer
- Production defaults
- GitHub: github.com/trivajs/triva
- Email: contact@trivajs.com