Fulgur
Fulgur started as a framework to ship WorldSkills test projects quickly. While training I realized Laravel was simply a better fit, but the part that worked, the typed link between a web app and its API, is what I want for small TypeScript projects.
I love Eden Treaty: you write your API with Elysia and the client knows every route and type, with no codegen. But getting that meant setting up a monorepo first. Fulgur removes that friction: one project, one config, one command.
How it works
It’s a glue layer, not a framework: a Vite plugin that connects Vite, Elysia and Eden.
// vite.config.ts
export default defineConfig({
plugins: [fulgur(), react()],
});
The server entry exports the Elysia app and its type, and the client only imports the type, so no server code reaches the browser.
- In development, the plugin starts the backend, proxies
/apito it (WebSockets included, no CORS) and restarts it when a*.server.tsfile changes. - Server code stays out of the browser: the plugin fails the build if client code imports a
*.server.tsfile, and separate TypeScript configs keepwindowandBunapart. - In production, it generates a
start.tsfor a classic Bun server and avercel.tsfor serverless functions.
Dark corners
Bun’s child processes kept the port busy, so the backend runs in its own process group, killed all at once. The first requests failed because the backend wasn’t ready, so the plugin polls a health endpoint before letting Vite continue.
Fulgur is MIT licensed and published on npm, with the full guide on its documentation site.