Registry / web-framework / relysjs

relysjs

JSON →
library1.21.76jsnpmunverified

relysjs is a reactive web app server focused on multi-page applications (MPAs). Current stable version is 1.21.76. It integrates Bun, Elysia, ESBuild, rmemo, and ctx-core to provide a simple server route and browser build API. Release cadence is frequent with regular updates. Differentiators include native Bun support, reactive server-side rendering, and a unified server + build pipeline with ESBuild. It simplifies MPA development by combining routing, bundling, and reactivity in a single coherent framework.

npm install relysjs
INSTALL
IMPORT
SIG · RELYSJS
R
relysjs
web-frameworkjavascriptv1.21.76
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

relysjs
import relysjs from 'relysjs'
const relysjs = require('relysjs')
ESM-only package; require will fail.
Route
import { Route } from 'relysjs'
import Route from 'relysjs'
Named export; do not use default import.
buildLib
import { buildLib } from 'relysjs/server'
import { buildLib } from 'relysjs'
Server-specific utilities are exported from subpath 'relysjs/server'.

Creates a minimal MPA server with a single route and ESBuild client bundling config.

import relysjs from 'relysjs'; export default relysjs({ routes: [ { path: '/', handler: async () => { return `<html><body><h1>Hello, relysjs!</h1></body></html>`; } } ], build: { entryPoints: ['./client.js'], outdir: './public' } }); // Run with: bun run relysjs.config.ts
Debug
Known issues
breakingDrop support for Node.js < 20; requires Bun runtime.
fix
Use Bun v1.0+ as your JavaScript runtime.
affects: >=1.0.0
deprecatedThe `serve` property is deprecated; use `routes` instead.
fix
Replace `serve` with `routes` in config.
affects: >=1.10.0
gotchaAll imports must be ESM; require() will throw.
fix
Use import syntax or set type: module in package.json.
affects: >=1.0.0
Errors
Common errors & fixes
Error: Cannot find module 'esbuild'
esbuild is not installed as a peer dependency.
fix
Install esbuild: bun add esbuild
TypeError: relysjs is not a function
Using incorrect import form (commonjs require).
fix
Use ESM import: import relysjs from 'relysjs'
Error: 'buildLib' is not exported from 'relysjs'
Importing from the wrong path.
fix
Import from 'relysjs/server' instead.
Upgrade
Version history
1.21.76latest on npm
Audit
Dependencies
esbuildrequiredused for bundling server and browser code
Agent activity
4 hits · last 30 days
node
4
Resources
relysjs — npm install relysjs · libregistry