Skip to content

Repository files navigation

Fahhh

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.

What Fahhh Gives You

  • Vite-powered React frontend development.
  • File-based API routes under src/api.
  • Typed virtual:api client generated from your API handlers.
  • Standard Request, Response, Headers, and fetch primitives.
  • 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.

Quick Start

pnpm dlx create-fahhh my-app
cd my-app
pnpm install
pnpm dev

Example API Route

import type { ApiRequest } from "fahhh";

export async function GET(req: ApiRequest) {
  const language = req.query.get("language");

  return {
    message: "Hello from Fahhh",
    language,
  };
}

Typed Client Calls

import api from "virtual:api";

const posts = await api["/api/posts"].GET({
  query: {
    language: "ts",
    tag: ["react", "vite"],
  },
});

Documentation

Full documentation is available at:

https://fahhh.pages.dev/

Creator

Fahhh is created by Abhisingh.

Status

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.

License

MIT

About

Code-first full-stack TypeScript framework with zero-codegen invisible RPC and file-system routing.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages