This document provides a comprehensive overview of the technologies, frameworks, and libraries that power the Sim platform. It covers the core runtime environment, database systems, UI frameworks, AI integrations, deployment infrastructure, and development tooling.
For information about database schema and ORM usage, see 2.2 Database Schema For deployment configurations, see 1.2 Deployment Options For environment configuration details, see 9.1 Environment Variables
Sim is built on Next.js 16 with React 19, using Bun as both the primary package manager and runtime environment. TypeScript provides type safety across the entire codebase.
| Component | Version | Purpose |
|---|---|---|
| Next.js | 16.2.4 | Full-stack framework with App Router |
| React | 19.2.4 | UI library |
| React DOM | 19.2.4 | DOM rendering |
| Bun | 1.3.13 | Package manager and runtime |
| TypeScript | ^5.8.2 | Type system |
| Node.js | >=20.0.0 | Runtime compatibility in Docker containers |
Diagram: Core Framework Architecture
Sources: package.json3-4 apps/sim/package.json156 apps/sim/package.json171-172 apps/sim/next.config.ts1-11 apps/sim/package.json6-9 docker/app.Dockerfile11-12
The application uses advanced Next.js features configured in next.config.ts:
standalone for optimized Docker builds when DOCKER_BUILD is truthy apps/sim/next.config.ts78isolated-vm, ffmpeg-static, fluent-ffmpeg, and @1password/sdk apps/sim/next.config.ts79-86optimizeCss and optimizePackageImports for heavy libraries like reactflow, framer-motion, and zod apps/sim/next.config.ts95-115Sources: apps/sim/next.config.ts1-235
Sim utilizes PostgreSQL with the pgvector extension to handle both relational data and high-dimensional vector embeddings for AI knowledge bases.
Diagram: Database Stack
Sources: apps/sim/package.json124 apps/sim/package.json166 docker-compose.prod.yml88 .github/workflows/test-build.yml133
Sim implements better-auth for secure, multi-tenant authentication, managing users, sessions, and accounts.
Diagram: Natural Language to Code (Auth Space)
| System Concept | Code Entity | File Path |
|---|---|---|
| Core Auth | better-auth | apps/sim/package.json109 |
| SSO Plugin | @better-auth/sso | apps/sim/package.json56 |
| Stripe Plugin | @better-auth/stripe | apps/sim/package.json57 |
| Auth Provider | better-auth-harmony | apps/sim/package.json110 |
| Auth Config | lib/core/auth/auth.ts | (Implicit reference in code structure) |
Sources: apps/sim/package.json56-57 apps/sim/package.json109-110
The platform provides real-time multi-user collaboration using Socket.io, with a dedicated server and Redis-backed scaling.
@socket.io/redis-adapter for multi-node synchronization apps/realtime/package.json68apps/realtime apps/realtime/package.json55redis (v5.10.0) for the adapter and ioredis for general application state apps/realtime/package.json71 apps/sim/package.json139Sources: apps/realtime/package.json55-74 package.json14-15 apps/sim/package.json139
The UI is built on Tailwind CSS 4.0 and Radix UI primitives, ensuring high accessibility and rapid styling.
| Component | Package | Version |
|---|---|---|
| Canvas | reactflow | 11.11.4 |
| Animations | framer-motion | ^12.5.0 |
| Icons | lucide-react | ^0.479.0 |
| Editor | @monaco-editor/react | 4.7.0 |
Sources: apps/sim/package.json178 apps/sim/package.json129 apps/sim/package.json148 apps/sim/package.json66
Sim integrates with a vast array of AI providers using native SDKs to support advanced features like tool calling and streaming.
Diagram: AI Provider Mapping
| Provider | SDK Package | Version |
|---|---|---|
| OpenAI | openai | ^4.91.1 |
| Anthropic | @anthropic-ai/sdk | 0.71.2 |
| Google Gemini | @google/genai | 1.34.0 |
| Groq | groq-sdk | ^0.15.0 |
| Cerebras | @cerebras/cerebras_cloud_sdk | ^1.23.0 |
| Bedrock | @aws-sdk/client-bedrock-runtime | 3.1032.0 |
Sources: apps/sim/package.json35 apps/sim/package.json37 apps/sim/package.json59 apps/sim/package.json61 apps/sim/package.json133 apps/sim/package.json162
The project is a monorepo managed by Turborepo and Bun Workspaces.
Diagram: Natural Language to Code (Monorepo Space)
Sources: package.json7-10 apps/realtime/package.json58-67 apps/sim/package.json96-103 apps/docs/package.json18
@trigger.dev/sdk apps/sim/package.json107sdk-node and exporter-trace-otlp-http apps/sim/package.json67-73posthog-js and posthog-node apps/sim/package.json167-168ffmpeg-static and fluent-ffmpeg apps/sim/package.json127-128@modelcontextprotocol/sdk for tool discovery and execution apps/sim/package.json65Sources: apps/sim/package.json1-180 apps/sim/next.config.ts79-86
Refresh this wiki