Prerequisites
Runtime, package, and TypeScript requirements for the AponiaJS alpha releases.
Bun
AponiaJS is Bun-first. The 0.6.0-alpha.18 source baseline and generated
applications pin Bun 1.3.14:
bun --versionUse Bun for package installation, scripts, application execution, and tests. Node.js is not the primary runtime target.
Application packages
A decorated HTTP application uses:
bun add @aponiajs/common@alpha @aponiajs/platform-elysia@alpha elysia@^1.4.29@aponiajs/commonprovides decorators, request parameter decorators, route schema contracts, tokens, provider helpers, errors, and logging.@aponiajs/platform-elysiaprovidesAponiaFactory, the Elysia application adapter, plugin modules, and the typed Elysia route context.elysiais a peer dependency of the platform package (^1.4.29).
Do not bootstrap from core
AponiaFactory is exported by @aponiajs/platform-elysia, not
@aponiajs/core. Most HTTP applications receive core transitively and should
not install it directly.
Every public package is published to the npm alpha distribution tag; latest
is reserved for the first stable release. Keep all AponiaJS packages on the same
version — the public packages are released with synchronized versions.
ESM and TypeScript
Set the project package type to ESM:
{
"type": "module"
}Constructor injection through decorated classes requires decorator metadata. The generated configuration includes:
{
"compilerOptions": {
"module": "Preserve",
"moduleResolution": "Bundler",
"strict": true,
"experimentalDecorators": true,
"emitDecoratorMetadata": true,
"allowImportingTsExtensions": true,
"isolatedModules": true,
"verbatimModuleSyntax": true,
"noEmit": true
}
}Use explicit .ts extensions for local imports, matching the generated
application and framework examples.
Optional validators
Route validation accepts any Standard Schema
implementation. Elysia's own t builder ships with the Elysia peer dependency,
so no extra install is needed for TypeBox-style schemas. Install a validator
only when you want one:
bun add zodCurrent runtime boundary
The implemented release supports decorated modules and HTTP routes, request parameter decorators, route validation, singleton providers, explicit tokens, module imports and exports, native Elysia plugins with typed context, managed application lifecycle methods, direct native Elysia bootstrap, static Eden Treaty types for descriptor-authored routes, configurable Elysia route composition, WebSocket gateways, Problem Details errors, and logging.
Runtime guards and interceptors, middleware, exception filters, request or transient provider scopes, async provider factories, lifecycle hooks, testing modules, OpenAPI, decorator-wide Eden inference, authentication, GraphQL, and microservice transports are not implemented.
See project status for the complete supported and planned boundary.