JetPath π - Is a granular, fast and minimalist framework for Node, Deno and Bun. Embrace new standards!!!
Explore JetPath APIs Β»
Join Community
.
Report Bug
.
Request Feature
--
In this version, we added/tested these features on all runtimes.
- auto-generated api documentation UI (JethPath UI).
- streaming via ctx.pipe(stream||filename).
- file uploads check this example
- support for websockets check this example.
- Logger usage - (we tested pino/winston).
In this version (not this latest), multi-runtime support is no-longer based on compartiblity but pure engine api(s).
We Added Examples in the examples folder!
- running Node index.js starts a Node instance for your app.
- running Deno run index.ts starts a Deno instance for your app.
- running Bun index.ts starts a Bun instance for your app.
- looking into serverless
this version we fixed issues with the inbuilt cors hook.
- more speed, same size, more power.
JetPath is a web framework that is Granularity, Fast and Easy to use.
- JetPath now runs on the runtime you are using, bun or node or deno.
- Function names as routing patterns (newest innovation you haven't seen before).
- Pre, Post and Error request hooks.
- Inbuilt Cors handlers.
- Fast and small and easy as peasy.
- A strong backup community moved with passion for making the web better.
- Inbuilt API auto doc functionality.
JetPath is designed as a light, simple and but powerful, using the an intuitive route as function name system. you can be able to design and manage your api(s) with the smallest granularity possible.
This benefits are very lovely and delighting, but trust me you have never written javascript app in this manner before and you should definitely check this out.
--
JetPath works by search through the source forder and join up any defined handlers and hooks that follows it's format in files named [anything].route.js.
JetPath support all web Javascript runtimes:
- Nodejs.
- Denojs.
- Bunjs.
- and deno deploy (testing)
- Edge support for runtimes like cloudflare workers(in view).
Install JetPath Right away on your project using npm or Javascript other package managers.
npm i jetpath --save
// in your src/index.routes.js
import { JetPath } from "jetpath";
const app = new JetPath({
port: 8080,
});
//? listening for requests
app.listen();
// = /
export async function GET_(ctx: Context) {
ctx.send("hello world!");
}
We have exhausted our Roadmap, let's me what your suggestions are!
we are currently working an integrated admin interface, let us know what you think about that!!!
Opensourced And Free.
Uiedbook is an open source, our vision is to make the web better, improving and innovating infrastructures for a better web experience.
You can join on telegram. Ask your questions and contribute XD.
If you contribute code to this project, you are implicitly allowing your code to be distributed under the MIT license. You are also implicitly verifying that all code is your original work.
Your contribution(s) is a good force for change anytime you do it, you can ensure JetPath's growth and improvement by contributing a re-occuring or fixed donations to:
https://www.buymeacoffee.com/fridaycandour
Or Click.