Skip to content

Latest commit

 

History

History
46 lines (32 loc) · 1.01 KB

File metadata and controls

46 lines (32 loc) · 1.01 KB

Getting Started

Triva is a production-ready Node.js HTTP framework with built-in middleware, caching, and database support.

Quick Install

npm install triva

Your First Server

import { build, get, listen } from 'triva';

await build({
  env: 'development'
});

get('/', (req, res) => {
  res.json({ message: 'Hello World' });
});

listen(3000);

What's Included

  • 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

Next Steps

Getting Help