Skip to main content

Overview

FF is distributed as three separate npm packages that you can install independently based on your needs:
  • ff-effect: Effect.ts wrappers for AI SDK, Drizzle ORM, Inngest, and oRPC
  • ff-ai: AI conversation management and message persistence
  • ff-serv: HTTP server utilities, logging, and caching
All packages require Effect.ts as a peer dependency.

Prerequisites

Before installing FF, ensure you have:
  • Node.js 18+ or Bun 1.0+ (FF is built with Bun but works with Node.js)
  • TypeScript 5.0+ for full type safety
  • Effect.ts 3.19+ as the foundational library

Installing ff-effect

The ff-effect package provides Effect.ts wrappers for popular libraries.

Peer Dependencies

Depending on which features you use, install the corresponding peer dependencies:
For ff-effect/for/ai wrappers:

Installing ff-ai

The ff-ai package provides AI conversation management and message persistence.

Drizzle Provider

To use the Drizzle message storage provider:
The Drizzle provider for ff-ai is exported from ff-ai/providers/drizzle and requires Drizzle ORM and a PostgreSQL client.

Installing ff-serv

The ff-serv package provides HTTP server utilities, logging, and caching.

Optional Dependencies

For oRPC HTTP handlers:

Complete Installation

To install all three packages with their core dependencies:

TypeScript Configuration

Ensure your tsconfig.json has strict mode enabled for the best type safety:
tsconfig.json

Verify Installation

Create a simple test file to verify your installation:
test.ts
Run with:
You should see the log message and no errors.

Next Steps

Now that you have FF installed, check out the quickstart guide to build your first application, or explore the individual package documentation:

ff-effect

Explore AI SDK, Drizzle, and Inngest wrappers

ff-ai

Build conversation-based AI applications

ff-serv

Create HTTP services with Effect.ts