Skip to content

Environments

HellaJS supports a variety of modern workflows out of the box. Use as a comprehensive standalone client-side framework with router, or with server-side rendering (SSR) frameworks like Astro to add reactive islands with no plugin or extra configuration steps required.

For best performance, serve hella.esm.min.js.gz from your server or CDN.

CommonJS

const { html } = require("@hellajs/core");

ES Modules / TypeScript

import { html } from "@hellajs/core";

Single File

<!-- Unminified -->
<script type="module" src="https://.../hella.esm.js"></script>
<!-- Minified -->
<script type="module" src="https://.../hella.esm.min.js"></script>

Per-Module
Import individual modules directly from a server or CDN:

// Unminified
import { html } from "https://.../esm/html.js";
// Minified
import { html } from "https://.../esm-min/html.js";