1.2.11 • Published 1 month ago

naxtjs v1.2.11

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
1 month ago

Contributors Issues License npm VersionPRs WelcomeForks Stargazers

Contents

What is Naxtjs?

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.

Installation

npm

npm i naxtjs

Examples

Many aspects of Naxt are not reflected in the following example. More functionality will be entailed in future docs.

A basic component in Naxtjs:

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);
});

Getting Help and Contributing

To get further insights and help on Naxtjs, join Telegram Community.

1.2.11

1 month ago

1.2.8

1 month ago

1.2.7

1 month ago

1.2.6

1 month ago

1.2.9

1 month ago

1.2.10

1 month ago

1.2.5

1 month ago

1.2.4

1 month ago

1.2.3

1 month ago

1.2.2

1 month ago

1.2.1

4 months ago

1.2.0

4 months ago

1.1.1

4 months ago

1.1.0

4 months ago

1.0.1

12 months ago

1.0.0

12 months ago