AbsoluteJS

absolute-ai-example

absolute-ai-examplev0.0.1betaDev Tools

A complete multi-framework chat application built with @absolutejs/ai. The same backend powers React, Vue, Svelte, Angular, HTML, and HTMX clients while demonstrating streaming responses, provider selection, tools, attachments, reasoning output, and conversation persistence.

#Installation

BASH
# Private workspace project: ~/abs/examples/ai

#Capabilities

Overview

A complete multi-framework chat application built with @absolutejs/ai. The same backend powers React, Vue, Svelte, Angular, HTML, and HTMX clients while demonstrating streaming responses, provider selection, tools, attachments, reasoning output, and conversation persistence.

Run it

Open / for React, /vue, /svelte, /angular, /html, or /htmx to compare the framework integrations against the same server contract.

Provider credentials are read by the backend adapters. Configure only the providers you intend to exercise; the mock provider can be used for local UI and end-to-end development without an external model account.

Architecture

src/backend/server.ts boots the AbsoluteJS and Elysia application.

src/backend/handlers/providers.ts exposes the available model providers.

src/backend/handlers/tools.ts defines callable tools.

Show 3 more

src/backend/handlers/database.ts owns conversation persistence.

src/frontend/ contains equivalent clients for each supported framework.

tests/e2e/live-conversation.spec.ts verifies a conversation through the UI.

Framework routes

The example is a private demonstration application, not an npm package. Copy the relevant frontend and handler patterns into an AbsoluteJS application, then use the public @absolutejs/ai entry points documented at https://absolutejs.com/documentation/ai-overview.

Outcomes

What you can build

Build on the supported package contract

Use absolute-ai-example through its supported public entry points.

Hardening checklist

Production guidance

Make every external boundary explicitPin the deployed absolute-ai-example version, replace example or memory-backed dependencies with durable implementations, bound external calls, protect credentials, and emit enough evidence to retry or recover safely.

Follow in order

Troubleshooting path

1
Trace from the first failed boundary
Reproduce the smallest canonical absolute-ai-example example, confirm the supported entry point and version in the API explorer, then inspect the first boundary that did not produce its documented result.

#Run it

Partial snippet

Working example for Run it.

BASH
bun install
bun run dev

#Framework routes

Partial snippet

Working example for Framework routes.

TXT
/          React
/vue       Vue
/svelte    Svelte
/angular   Angular
/html      HTML client
/htmx      HTMX client

#Package commands

Scripts declared by this package manifest.

bun run devabsolute dev
bun run formatabsolute prettier --write
bun run lintabsolute eslint
bun run startabsolute start
bun run test:e2eplaywright test
bun run typecheckabsolute typecheck
Private workspace project
This project is maintained inside the workspace and is not published as a standalone npm package.