jetpath
TypeScript icon, indicating that this package has built-in type declarations

1.4.19 • Public • Published

JetPath

JetPath

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

Contributors npm Version Forks Stargazers

--

Latest version info

In this version, we added/tested these features on all runtimes.

  1. auto-generated api documentation UI (JethPath UI).
  2. streaming via ctx.pipe(stream||filename).
  3. file uploads check this example
  4. support for websockets check this example.
  5. 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.

Rationale

JetPath is a web framework that is Granularity, Fast and Easy to use.

benchmark repo

  • 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.

--

How JetPath works

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.

Requirements to use JetPath.

JetPath support all web Javascript runtimes:

  • Nodejs.
  • Denojs.
  • Bunjs.
  • and deno deploy (testing)
  • Edge support for runtimes like cloudflare workers(in view).

Installation

Install JetPath Right away on your project using npm or Javascript other package managers.

npm i jetpath --save

An hello App setup

// 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!");
}

Where's JetPath future gonna be like?

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!!!

Apache 2.0 Lincenced

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.

Contribution and License Agreement

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.

Support

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.

Package Sidebar

Install

npm i jetpath

Weekly Downloads

24

Version

1.4.19

License

Apache

Unpacked Size

75.6 kB

Total Files

11

Last publish

Collaborators

  • fridaycandour