Skip to main content
ff-serv is a lightweight HTTP server utilities package built on Effect.ts. It provides composable handlers, built-in caching with SWR (stale-while-revalidate), logging, and integrations for modern web frameworks.

Features

  • Composable HTTP Handlers: Build request handlers with Effect-based composition
  • oRPC Integration: First-class support for @orpc/server
  • Advanced Caching: In-memory cache with SWR and pluggable Redis adapters
  • Effect.ts Native: Fully integrated with Effect’s type-safe error handling and context management
  • TypeScript-First: Complete type safety with inference
  • CLI Tools: Database utilities for pulling and dumping PostgreSQL databases

Installation

Peer Dependencies

Depending on your use case, you may need:

Package Exports

ff-serv provides multiple entry points:

Quick Start

Here’s a minimal HTTP server with Effect.ts:

What’s Next?

Basic Server

Learn how to create HTTP handlers

Fetch Handler

Compose handlers with createFetchHandler

Cache

Add caching with SWR support

CLI

Database utilities and CLI tools