{"id":26190,"library":"relysjs","title":"relysjs","description":"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.","status":"active","version":"1.21.76","language":"javascript","source_language":"en","source_url":"https://github.com/relysjs/relysjs","tags":["javascript","reactive","web app","web server","bunjs","elysia","elysiajs","esbuild","rmemo"],"install":[{"cmd":"npm install relysjs","lang":"bash","label":"npm"},{"cmd":"yarn add relysjs","lang":"bash","label":"yarn"},{"cmd":"pnpm add relysjs","lang":"bash","label":"pnpm"}],"dependencies":[{"reason":"used for bundling server and browser code","package":"esbuild","optional":false}],"imports":[{"note":"ESM-only package; require will fail.","wrong":"const relysjs = require('relysjs')","symbol":"relysjs","correct":"import relysjs from 'relysjs'"},{"note":"Named export; do not use default import.","wrong":"import Route from 'relysjs'","symbol":"Route","correct":"import { Route } from 'relysjs'"},{"note":"Server-specific utilities are exported from subpath 'relysjs/server'.","wrong":"import { buildLib } from 'relysjs'","symbol":"buildLib","correct":"import { buildLib } from 'relysjs/server'"}],"quickstart":{"code":"import relysjs from 'relysjs';\n\nexport default relysjs({\n  routes: [\n    {\n      path: '/',\n      handler: async () => {\n        return `<html><body><h1>Hello, relysjs!</h1></body></html>`;\n      }\n    }\n  ],\n  build: {\n    entryPoints: ['./client.js'],\n    outdir: './public'\n  }\n});\n\n// Run with: bun run relysjs.config.ts","lang":"typescript","description":"Creates a minimal MPA server with a single route and ESBuild client bundling config."},"warnings":[{"fix":"Use Bun v1.0+ as your JavaScript runtime.","message":"Drop support for Node.js < 20; requires Bun runtime.","severity":"breaking","affected_versions":">=1.0.0"},{"fix":"Replace `serve` with `routes` in config.","message":"The `serve` property is deprecated; use `routes` instead.","severity":"deprecated","affected_versions":">=1.10.0"},{"fix":"Use import syntax or set type: module in package.json.","message":"All imports must be ESM; require() will throw.","severity":"gotcha","affected_versions":">=1.0.0"}],"env_vars":null,"last_verified":"2026-05-01T00:00:00.000Z","next_check":"2026-07-30T00:00:00.000Z","problems":[{"fix":"Install esbuild: bun add esbuild","cause":"esbuild is not installed as a peer dependency.","error":"Error: Cannot find module 'esbuild'"},{"fix":"Use ESM import: import relysjs from 'relysjs'","cause":"Using incorrect import form (commonjs require).","error":"TypeError: relysjs is not a function"},{"fix":"Import from 'relysjs/server' instead.","cause":"Importing from the wrong path.","error":"Error: 'buildLib' is not exported from 'relysjs'"}],"ecosystem":"npm","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}