Naxt - SSR library for server-side javascript
Explore the 🎙️ docs »
Join Community
.
Report Bug
.
Request Feature
Naxt is a library framework for server side rendering.
Naxt is fast, and performant and is just 5KB.
Unlike htmx and qwirk, naxt only add 900 bytes of javascript to hydrate the dom and handle reactivity.
This makes naxt very efficient.
Naxt follows the VJS specification
Please naxt work exactly like htmx but this docs is not complete to demostrate it yet.
If you want quick info check out our telegram group.
npm i naxtjs
Many aspects of Naxt are not reflected in the following example. More functionality will be entailed in future docs.
import { div, h1, compile } from "naxtjs";
function Hello(name) {
return h1("Hello " + name, {
className: "title",
style: {
color: "grey",
},
});
}
const html = await compile("index.html", div(Hello("peter"), Hello("joe"))); // html string
app.get("/", (req, res) => {
res.send(html);
});
To get further insights and help on Naxtjs, join Telegram Community.