Fahhh is a lightweight full-stack framework built around Vite, React, file-based API routes, and standard Web APIs.
It is designed for developers who want fast local development, typed client calls, simple server handlers, and deployment adapters without taking on a heavy application runtime.
- Vite-powered React frontend development.
- File-based API routes under
src/api. - Typed
virtual:apiclient generated from your API handlers. - Standard
Request,Response,Headers, andfetchprimitives. - Dynamic and catch-all API routes.
- Middleware support.
- Query helpers through
req.query. - HTTP exception helpers through
fahhh/errors. - Request utilities through
fahhh/utils. - Production Node server output.
- Cloudflare Pages deployment support.
- Compatibility with Fetch-style libraries like Better Auth and GraphQL Yoga.
pnpm dlx create-fahhh my-app
cd my-app
pnpm install
pnpm devimport type { ApiRequest } from "fahhh";
export async function GET(req: ApiRequest) {
const language = req.query.get("language");
return {
message: "Hello from Fahhh",
language,
};
}import api from "virtual:api";
const posts = await api["/api/posts"].GET({
query: {
language: "ts",
tag: ["react", "vite"],
},
});Full documentation is available at:
Fahhh is created by Abhisingh.
- YouTube: 6 Pack Programmer
- Instagram: @meabhisingh
Fahhh is early and evolving quickly. The current focus is a clean HTTP-first framework foundation: file-based API routes, typed client calls, production builds, and deployment adapters.
Streaming and SSE are supported through raw Response objects. WebSockets are not first-class yet.
MIT