Requirements
- macOS 12 or later, Linux x86_64 or arm64 (glibc), or Windows 10 or later.
- For package-manager installations, Node.js 22.3 or later, Deno 2.2 or later, or Bun 1.1 or later. The standalone binary includes its runtime.
- 2 GB of RAM for local development.
- Disk space for the selected CLI installation and project dependencies. See Install the CLI for current artifact sizes.
Blank or existing project
Add Veryfront Code to an existing or blank Node.js, Deno, or Bun project.
npm install veryfront [email protected] [email protected]pnpm add veryfront [email protected] [email protected]yarn add veryfront [email protected] [email protected]bun add veryfront [email protected] [email protected]deno add npm:veryfront npm:[email protected] npm:[email protected]veryfront provides the framework and CLI. React and React DOM are required
peer dependencies; the commands above install a matching supported pair
explicitly. Node.js and Bun SSR use this installed pair. Keep both packages at
the same version when upgrading; the supported peer range starts at 19.2.4
within React 19. Package managers such as Yarn may require you to install peers
yourself. Install the official registry packages as react and react-dom.
Registry versions, ranges and tags are supported. Package aliases, workspace
or file/link sources, git references and tarball URLs are unsupported for this
runtime pair because server and browser rendering must use the same package.
React component SSR captures the installed peer graph for each render. Local TS/JS script pages use the runtime's native module loader and its process-lifetime dependency cache. Restart the server after replacing installed React packages; changing packages in a running process is unsupported for native script pages. Script execution does not use per-render peer snapshots. Adapters that provide a prepared module graph retain control of their loader.
These commands add the dependency entries without scaffolding files. Add the
four pieces below yourself. veryfront init writes all of them for you, see
Create project.
Set the module type
Veryfront emits ES modules. Set "type": "module" in package.json:
{ "type": "module"}npm init -y writes "type": "commonjs", and an existing project may have no
type field at all. Without "type": "module", veryfront build fails with
SyntaxError: Cannot use import statement outside a module.
Add the CLI scripts
{ "scripts": { "dev": "veryfront dev", "build": "veryfront build", "start": "veryfront serve" }}Extend the base TypeScript config
The veryfront package ships a base tsconfig.json with the compiler options
Veryfront expects, including "jsx": "react-jsx" and
"moduleResolution": "Bundler". Extend it:
{ "extends": "veryfront/tsconfig.json", "include": ["**/*.ts", "**/*.tsx"], "exclude": ["node_modules"]}The base config sets "noEmit": true because Veryfront bundles your routes. If
your existing build uses tsc to emit JavaScript, do not use this extends form:
the build exits 0 but stops emitting. Keep your existing config and add the
required compiler options, or set "noEmit": false in the config your build
uses. See Add to an existing project.
Add a page and run it
Veryfront discovers routes under app/. Create a home page:
export default function Home() { return <h1>Hello from Veryfront</h1>;}Then start the dev server:
npm run devOpen the URL the CLI prints, http://localhost:3000 by default, to see the
page.
For where the remaining files go, see
Project structure. To add an API route under
app/api/, see Create API.
New scaffolded project
Create a new Veryfront Code project when you want scaffolding and starter files.
npm create veryfrontpnpm create veryfrontyarn create veryfrontbun create veryfrontdeno init --npm veryfrontInstall the CLI
Install the CLI globally when you use Veryfront commands often.
These measurements describe recent releases and vary by platform and package manager. A clean global npm installation used approximately 145 MB in one measurement. Model weights are not included. The optional embedded ONNX runtime adds approximately 500 MB, and supported model weights add 0.9 to 6 GB.
npm (recommended)
npm install -g veryfront@latest [email protected] [email protected]This installs the latest published Veryfront CLI and adds veryfront to your
shell path. When run inside a project with veryfront installed, the npm
launcher uses that project's CLI and React peer graph. Install the framework
and matching peers locally as shown above for project rendering.
For Yarn Plug'n'Play, enable its ESM loader in .yarnrc.yml and regenerate the
installation:
pnpEnableEsmLoader: trueyarn installThe launcher starts Node with the project's PnP loaders so zipped dependencies and virtual peer bindings use the project graph.
pnpm
pnpm add -g veryfront [email protected] [email protected]yarn
yarn global add veryfront [email protected] [email protected]bun
bun add -g veryfront [email protected] [email protected]deno
deno install -gArf npm:veryfrontThe CLI is published to npm only, so install it through Deno's npm:
specifier. Deno resolves that specifier from the current working directory, so
inside a project that depends on veryfront the global binary runs that
project's version instead. Run veryfront --version outside any project
directory to see the globally installed version.
Standalone binary
Use the standalone binary when you need an executable that includes its own runtime. On macOS or Linux, run:
curl -fsSL https://veryfront.com/install.sh | shOn Windows PowerShell, run:
irm https://veryfront.com/install.ps1 | iexBoth installers verify what they download. Each release publishes a SHA256SUMS
manifest; the binary is staged, checked against it, and only then moved into
place, so a mismatch installs nothing. Releases published before that manifest
existed have none, so pinning to one of those fails unless you set
VERYFRONT_INSTALL_SKIP_CHECKSUM=1 deliberately.
The commands still execute a script fetched at run time. To read it first, and to pin a version instead of tracking latest:
curl -fsSL https://veryfront.com/install.sh -o install.shless install.shsh install.sh --version <VERSION>To skip the installer entirely, download the binary for your platform from the
release assets and put it on
your path. Check it against the SHA256SUMS published with the same release:
sha256sum --check --ignore-missing SHA256SUMSThe installer downloads the binary for the current platform and adds it to your shell path. Embedded ONNX inference is not available from compiled standalone binaries. Use a package-manager installation when the app runs an embedded ONNX model.
One-shot CLI usage
Use npx when you do not want a global install:
npx veryfront@latestRuns the latest published veryfront CLI without installing it globally.
Use npm create veryfront when you want to scaffold a new project.
Coding-agent setup
Starter templates include AGENTS.md. For older projects, install the shared
project guide with --target agents:
veryfront install --target agentsThen run veryfront dev. It starts an HTTP MCP server two ports above the port
the dev server actually bound, always at the path /mcp. With the default port
3000 that is http://localhost:3002/mcp, so point your MCP-aware coding
agent there.
Read the port off the URL the dev server printed rather than off the --port
you asked for. When the requested port is taken, veryfront dev moves to the
next free one, and MCP follows it: a dev server that falls forward to 3001
serves MCP on 3003. The dev server lists the MCP address itself only under
--verbose. See Coding agents.
Verify the CLI
veryfront --versionYou should see the installed version printed. If the command is not found,
restart your shell so the new PATH entry takes effect.
Prepared adapters retain authority over their admitted module graph. When calling
renderSnippet with an adapter that provides moduleLoader, supply filePath
with the original source identifier admitted to that graph. Inline content without
an admitted identifier is rejected before compilation; prepared adapters do not
fall back to host evaluation or fetch unknown source. Ordinary local adapters
continue to support inline snippets without filePath.