tritonjs
v0.3.4
Published
[](https://www.npmjs.com/package/tritonjs) [](https://github.com/fleetfn/triton/blob/master/LICENSE)
Downloads
30
Readme
Triton is a framework for Node.js built with Serverless Functions in mind as opposed to frameworks like Fastify, Express.js, Hapi which are built with a monolithic mindset.
Triton's Design is to be simple and Zero Config that allows you to create a fast API just by building a file and oriented to microservice architecture and can be easily deployed in a Serverless Function.
Development Experience
Triton is focused on API development experience and building a framework with Serverless Function in mind and incremental adoption.
import {FleetRequest, FleetResponse} from "@fleetfn/types";
import Database from "tritonjs/database";
import Auth from "tritonjs/auth";
const handler = (
req: FleetRequest,
res: FleetResponse
) => {
res.send("Hello World!");
};
export const config = {
middleware: [
new Database(...),
new Auth(...)
]
};
export default handler;
Easy to deploy
Triton is focused on API development experience and building a framework with Serverless Function in mind and incremental adoption.
> triton build
✔ Compiled Functions (1s)
APIs (6)
- GET oauth /oauth/:proxy+
- GET | DELETE user /user
- GET | DELETE projectById /project/:id
- GET auditLog /project/:id/audit-log
- POST joinProject /project/:id/members/join
- GET membersByProject /project/:id/members
Ready for deployment! Read the Fleet instructions to deploy your serverless functions.
> Run fleet deploy https://fleetfn.com/docs/quick-start.html
Getting Started
Visit https://tritonjs.io/docs/get-started to get started with Triton.js.
Documentation
Visit https://tritonjs.io/docs to view the full documentation.
Contributing
Feel free to create issues or submit pull requests. If you're interested in contributing code and/or documentation, please see our guide to contributing.
Authors
- Matuzalém Teles (@MatuzalemTeles) - Fleet