AbsoluteJS

Installation

Get started with AbsoluteJS in minutes using the CLI or manual setup.

#Prerequisites

AbsoluteJS requires Bun version 1.2 or higher. If you don't have Bun installed, run:

BASH
curl -fsSL https://bun.sh/install | bash

#Using create-absolutejs

The fastest way to start a new AbsoluteJS project is with the create-absolutejs CLI:

BASH
bun create absolutejs my-app

You can also specify options directly:

BASH
bun create absolutejs my-app --frontend react --database drizzle

Available options include:

--frontendreact, svelte, vue, html, htmx
--databasedrizzle, prisma, none
--authInclude @absolutejs/auth setup

#Project Structure

A new AbsoluteJS project has this structure:

my-app/
build/Build output and compiled assets
db/DB and ORM related stuff
src/
backend/
handlers/Request handlers
plugins/Elysia plugins
assets/Static assets
server.tsElysia server entry point
frontend/
pages/Page components
components/Shared components
styles/CSS and styling files
types/TypeScript type definitions
absolute.config.tsAbsoluteJS build configuration
package.json
tsconfig.json
.env

#Manual Installation

To add AbsoluteJS to an existing project:

BASH
bun add @absolutejs/absolute elysia