Skip to main content

evjs

React framework for file-based pages and server code

Use page.* anchors under src/pages for page routes, api.* anchors under src/apis for server routes, and "use server" modules for server functions. Start with conventions and add configuration only when the defaults are not enough.

Build Flow

From files to deployable output

evjs keeps the common path small: discover conventions, build the app, then emit browser and server artifacts for deployment.

01

Author files

Write pages, routes, middleware, server functions, and ev.config.ts.

02

Discover conventions

Resolve page routes, server routes, middleware, and rendering metadata.

03

Build entries

Use the selected bundler adapter to build browser and server entries.

04

Deploy

Write browser files, server output, and deployment metadata.

What evjs handles

File routes, server code, and build output

Page Routes

Build SPA or MPA pages from src/pages without writing router bootstrap code.

Server Routes

Expose Request and Response handlers with positive src/apis/**/api.* anchors and uppercase HTTP method exports.

Server Functions

Call reachable "use server" functions from browser code through the built-in transport.

Rendering Modes

Configure CSR, SSR, SSG, PPR, and RSC through adjacent page.config.ts files.

Plugins

Extend config, bundler setup, HTML transforms, build output, and generated framework code.

Deployment Output

Emit browser assets, optional server bundles, and canonical deployment metadata.