AbsoluteJS
Full-stack, type-safe, batteries-included platform that lets you server-side render any modern front-end.
bun create absolutejs my-appWhat is AbsoluteJS?
AbsoluteJS is a full-stack meta framework that unifies server-side rendering across multiple frontend technologies. Built on Bun and Elysia, it provides a single build process that handles bundling, hydration, and HTML streaming regardless of which UI framework you choose.
Your AbsoluteJS server is an Elysia server with superpowers. You get all the benefits of Elysia's type-safe routing, plugins, and middleware system while AbsoluteJS handles the complexity of multi-framework SSR.
Key Features
Universal SSR
Render React, Svelte, Vue, HTML, and HTMX from a single server with consistent patterns.
Single Build
One build() function generates a manifest mapping all client and server assets per route.
End-to-End Type Safety
Consistent typing from database through server logic to client code with TypeScript.
Zero-Config Design
Explicit function arguments with sensible defaults instead of fragmented configuration files.
Framework Support
One Framework, Any Frontend
Single Build
One build() for all frameworks
Unified Handlers
Same pattern everywhere
Type-Safe Props
End-to-end TypeScript
React
Full SSR with streaming and hydration
Svelte
Component SSR with client-side hydration
Vue
SSR with props injection and hydration
HTML
HTML pages with optional JavaScript
HTMX
HTMX-powered interactive templates
Angular
Coming soon
Quick Example
Here's a minimal AbsoluteJS server with React:
1import { build, handleReactPageRequest, asset } from '@absolutejs/absolute';
2import { Elysia } from 'elysia';
3import { Home } from '../frontend/pages/Home';
4
5const manifest = await build({
6 reactDirectory: './src/frontend'
7});
8
9new Elysia()
10 .get('/', () =>
11 handleReactPageRequest(Home, asset(manifest, 'HomeIndex'))
12 )
13 .listen(3000);Next Steps
- Installation — Set up AbsoluteJS in your project
- Quickstart — Build your first AbsoluteJS application
- Core Concepts — Learn about SSR, the build system, and routing