Veryfront is a full-stack framework designed for building AI-powered applications and agents using TypeScript and React. Currently in version 0.1.217, it exhibits a rapid release cadence with frequent patch updates, suggesting active and agile development, but also a rapidly evolving API. Key differentiators include its purpose-built architecture for autonomous agents with model routing, tool calling, and multi-agent composition. It integrates a complete React rendering stack (SSR, RSC) with file-based routing, server-side data fetching, API routes, middleware, and OAuth. The framework supports multiple JavaScript runtimes including Node.js, Deno, and Bun, and offers a dedicated platform for deployment, streamlining the development-to-production workflow for agentic applications.
npm install veryfrontVerified import paths — ran on the pinned version, not inferred.
This code defines a simple AI Agent and a web search Tool using Veryfront's core APIs, demonstrating how agents can use tools to fulfill prompts.
Regularly review the official Veryfront documentation and GitHub release notes for specific migration guides. Pin exact package versions in `package.json` to prevent unexpected updates.
Ensure your development and deployment environments have the necessary build tools (e.g., `build-essential` on Linux, Xcode command-line tools on macOS, Visual C++ Build Tools on Windows). Consider using Docker for consistent environments or verify pre-built binaries are available for your target platform.
Adhere strictly to Veryfront's specified file system conventions (e.g., `pages/`, `api/`, `agents/`, `tools/`). Consult the 'Project Structure' and 'Pages & Routing' documentation for exact naming patterns and directory structures.
Ensure all required environment variables for your chosen LLM providers (e.g., `OPENAI_API_KEY`, `ANTHROPIC_API_KEY`) are set correctly in your development environment (`.env` file) and deployment environment. Verify their accessibility in server-side contexts.
Delete `node_modules` and `package-lock.json` (or `yarn.lock`, `pnpm-lock.yaml`). Ensure correct Node.js version is active (`nvm use <version>`), then reinstall: `npm install` (or `yarn`, `pnpm install`).
Verify the `Tool` instance is correctly constructed with a `handler` function and is included in the `tools` array when instantiating the `Agent`. Check for typos in tool names when calling `runTool`.
Review your project structure and the `pages/` or `api/` directories. Ensure the file name (e.g., `my-agent-endpoint.ts` for `/api/my-agent-endpoint`) and its exported components/handlers (`export default function handler...`) match the expected routing conventions.