Replacement Guide

How to Build Your Own Gel (EdgeDB)

Replace Gel (EdgeDB) with a custom build. Postgres Unchained

Few Days
43 features7 integrations3-5 days

Estimated Timeline

Based on 43 features at Few Days difficulty, expect about 3-5 days with AI-assisted development.

1
Architecture & setup
Half day
2
Core features
2-3 days
3
Testing & polish
1 day

Recommended Tech Stack

Next.js 14

Full-stack React framework with API routes and server components

Supabase

PostgreSQL database, auth, and real-time subscriptions

Tailwind CSS

Utility-first styling for rapid UI development

Key Features to Replicate

Top features across 8 categories. See all 43 features

Developer Tools(8 features)

Admin PanelPremium

Vertically integrated admin panel for data and schema management

CLI Tool

Comprehensive CLI for schema migrations, data dump/restore, GUI access, and REPL with multiple installation options

Client Libraries

Zero-config, auto-recovery from network errors, automatic connection pooling and caching for Python, TypeScript, Go, Dart, Rust, .NET, and Java

Code Generation

Generate type-safe code from .edgeql files in any language with strict typing for bug reduction

Graphical UI

Built-in UI for schema browsing, data editing, query IDE, visual query builder, web-REPL, and query performance visualization

+3 more in this category

Schema Management(6 features)

Annotations

Schema annotation support for metadata and custom properties

Migration System

Interactive migrations with guided user-friendly workflow, flexible changes, and schema history browsing

Polymorphism

Support for polymorphic types and advanced type system features

Schema Migrations

Purpose-built migration system with branching, prototyping, squashing tweaks, and custom steps

Triggers

Database trigger support for automated event handling

+1 more in this category

Authentication(5 features)

Auth SDKs

SDKs for Python and TypeScript for authentication implementation

Built-in Auth UI

Sign-in and sign-up forms included out of the box with option to build custom UI

Email & Password Authentication

Email/password and magic links authentication method

OAuth

Multiple OAuth integrations for third-party authentication

Passkeys

WebAuthn passkeys support for passwordless authentication

Query Language(5 features)

EdgeQL Query Language

Fast, readable, composable, graph-relational language combining SQL and GraphQL with superpowers

Graph Queries

Hierarchical selects, inserts, updates with link traversal without JOINs or NULL values, easily composable queries

GraphQL Support

Native GraphQL support included by default with flexible GraphQL queries

SQL & ORM Support

Use standard SQL or plug into favorite ORM with Drizzle partnership for top-tier JavaScript ORM experience

TypeScript Query Builder

Super-flexible builder with unparalleled composability and type safety

AI(4 features)

Automatic EmbeddingsAIPremium

Schema-driven embeddings creation with automatic storage and indexing

LLM IntegrationAIPremium

Gels with OpenAI, Anthropic, Mistral and custom LLM providers with flexible provider selection

RAG (Retrieval Augmented Generation)AIPremium

Native RAG endpoint for AI-driven insights with admin UI for rapid testing

Vector StoreAIPremium

GenAI-ready vector store with configurable automatic embeddings

Performance(4 features)

Connection Pooling

Built-in server and client connection pooling with zero-config setup

Query Composability

Better performance than SQL with no extra network roundtrips for low latency

Query Performance Visualization

Visual representation of query performance metrics and analysis

Slow Queries AnalysisPremium

Built-in analysis and monitoring of slow queries for performance optimization

Infrastructure(3 features)

AWS DeploymentPremium

Currently runs on AWS with plans to expand to additional cloud providers

Cloud Deployment

Encryption at rest, automated backups, monitoring, and ability to export to vanilla Postgres

Managed HA DatabasePremium

Fully managed, high availability database with automated maintenance and monitoring

Integrations(3 features)

BI Tools Compatibility

Compatible with most business intelligence solutions for data analysis

GitHub Integration

GitHub and Vercel previews integration for managing deployments from PR workflow

Vercel Integration

Seamless integration with Vercel for automatic preview deployments and zero-configuration setup

Cost Calculator

Keep Paying Gel (EdgeDB)

Monthly$19.5/mo
Yearly$234/yr
5-Year Total$1.2k

Build It Yourself

Est. Build Time~5 hrs
Hosting$20/mo
DifficultyEasy

Total Cost Comparison

1 Year
SaaS
$234
DIY
$240
3 Years
SaaS
$702
DIY
$720
5 Years
SaaS
$1.2k
DIY
$1.2k

DIY hosting estimate based on Vercel + Supabase free/pro tiers (~$20/mo). Build time estimated from 43 features at easy complexity.

Ready to Build?