Linea Docs

Introduction

Linea: a workflow automation PaaS for running AI agent pipelines with memory, scheduling, and integrations.

Welcome to Linea

Linea is a workflow automation platform designed to run AI agent pipelines at scale. It provides everything needed to build, schedule, monitor, and remember across automated workflows.

This documentation covers the internal architecture of Linea: intended for contributors and developers building on top of the platform.

What Linea Provides

  • Workflow Engine: define, deploy, and trigger multi-step automation workflows
  • Execution Runtime: BullMQ-powered job processing with real-time status tracking
  • Memory System: SuperMemory-inspired atomic fact storage with pgvector hybrid search
  • Knowledge Bases: workspace-scoped document stores with vector search
  • MCP Integration: attach Model Context Protocol servers as tools to any workflow
  • Schedules & Webhooks: cron triggers and HTTP event hooks
  • Notifications: user-scoped event feed
  • API Keys: workspace-level credentials for programmatic access

Quick Navigation

Tech Stack

LayerTechnology
APINestJS 11, TypeScript
DatabasePostgreSQL + pgvector (via Drizzle ORM)
Job QueueBullMQ + Redis
AuthClerk
FrontendNext.js 15, React 19, Tailwind CSS v4
MonorepoTurborepo + pnpm workspaces
AIAnthropic Claude Haiku (extraction), OpenAI (embeddings)

Repository Layout

linea/
├── apps/
│   ├── api/        # NestJS backend
│   ├── web/        # Next.js 15 frontend
│   └── docs/       # This documentation (Fumadocs)
├── packages/
│   ├── db/         # Drizzle schema + client
│   ├── types/      # Shared TypeScript types
│   └── ui/         # shadcn/ui component library

On this page