{"library":"rebuildjs","title":"rebuildjs","description":"rebuildjs is a reactive esbuild-based build tool and development server for multi-page apps (MPAs), offering a simple, hackable alternative to Vite. It provides functions for both dev (with file watching, incremental builds, and a built-in HTTP server) and production builds. Currently at v0.71.1, it is actively developed with frequent releases. Key differentiators: full MPA focus, minimal configuration, and integration with `rmemo` for reactive state. Types are included. Requires `esbuild` as a peer dependency. The companion server framework `relysjs` (ElysiaJS-based) ties it together for app server usage.","language":"javascript","status":"active","last_verified":"Fri May 01","install":{"commands":["npm install rebuildjs"],"cli":{"name":"rebuildjs","version":null}},"imports":["import { rebuildDev } from 'rebuildjs'","import { rebuild } from 'rebuildjs'","import { bundles } from 'rebuildjs'","import rebuildjs from 'rebuildjs'"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"import { rebuildDev } from 'rebuildjs'\n\nconst PORT = process.env.PORT ?? 3000\nconst HOST = process.env.HOST ?? 'localhost'\nconst entry = ['src/index.ts']\n\nasync function start() {\n  const { server, close } = await rebuildDev({\n    entryPoints: entry,\n    outdir: 'dist',\n    port: PORT,\n    host: HOST,\n    onRequest: (req) => console.log(`${req.method} ${req.url}`)\n  })\n  console.log(`Dev server running at http://${HOST}:${PORT}`)\n}\n\nstart()","lang":"typescript","description":"Sets up a dev server with file watching, incremental builds, and logging for a multi-page app.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}