Skip to content

Framework using Hono 🔥 Ultrafast

License

Notifications You must be signed in to change notification settings

Liberluna/Naxt.js-legacy

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🔥 Naxt.js

Naxt.js is a framework based on Hono🔥 and HTMX </>.
We are aiming for a Japanese-made framework.

Useful for building APIs, etc. It is also possible to build an entire site.

Server startup takes only 0.01 seconds.

naxt-js-logo

Ultra-fast framework 🔥

on 🦕 Deno and ... coming soon.

(as RSC)

Installation

deno run -A https://raw.githubusercontent.com/EdamAme-x/Naxt.js/main/assets/install.ts my-app

Features

Routing is done in File-Dir Base. & NoBuild & EasyMinifier & LiveReload & Many Middlewares

Example

|-routes
|-- index.js
|-- about.ts
|-api
|-- firebase.ts

In the above file structure...

Req: /index => index.js Req: /about => about.ts Req: /api/firebase => firebase.ts

File extensions are prioritized and routed in the following order: tsx => jsx => ts => js

The file must contain the following code.

export default function Index({ context, connInfo }) {
  return context.html(`
    <h1>Hello Naxt.js!</h1>
  `);
}

The arguments are the same as for Hono. However, some of them are unique. Please refer to the documentation.

URLpattern(as /user/@id as /user/:id) can also be used for routing.

Examples

/user/:id => /user/@id(.js) /user/* => /user/_all(.ts)

/*/profile => /_all/profile(.jsx) /:id/profile => /_all/profile(.tsx)

Normal files (photos, etc.) will be routed as usual.

Please keep contributing!

About

Framework using Hono 🔥 Ultrafast

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 55.7%
  • TypeScript 38.3%
  • CSS 6.0%