Replacement Guide

How to Build Your Own KrakenD

Replace KrakenD with a custom build. The fastest API gateway. True linear scalability.

Few Days
89 features18 integrations3-5 days

Estimated Timeline

Based on 89 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 89 features

Request/Response Transformation(16 features)

API Aggregation

Create faster interactions with automatic API Composition and aggregation of multiple data sources into a single response

Automatic Output Encoding

Automatic output encoding and translation (XML, JSON, RSS, noop)

Backend For Frontend

Create an API consumption layer that provides aggregated views of several services and returns only the needed data

Conditional Request and Responses (CEL)

Add validation rules to continue with the request or to return the response

Data and Protocol Manipulation

Modify the data you return to the end-user, or the payload you send to your services. Filter fields, enrich responses, convert from SOAP, JSON or XML automatically

+11 more in this category

Developer Tools(13 features)

Custom Go Plugins

Write your own Go plugins and side-load them with KrakenD to extend the functionality

Documentation

With the OpenAPI exporter, you can automatically generate rich documentation websites. Have an OpenAPI? Then, create your API gateway using the OpenAPI specs

DOT Image GeneratorPremium

Generate Graphviz images displaying your configuration logic

Hot-Reload in Development

Speed up development with a specific container with hot-reload functionality

IDE Integration

Automatic validation as you type, showing documentation while hovering an attribute, explanation of errors, and autocompletion of properties

+8 more in this category

Security(13 features)

Audit Configuration

Check security and best practices recommendations of your configuration before going live

Authentication

End-User validation and gateway to service validation: JWT, Client credentials, Oauth2, OpenID, API-Keys, Basic Auth, mTLS

Clickjacking Protection

OWASP recommendations that add a frame-breaking strategy

CORS

Cross-origin resource sharing

Cross-Site Scripting (XSS) Protection

Enables the Cross-site scripting (XSS) filter in the user's browser

+8 more in this category

Authorization & Authentication(12 features)

API KeysPremium

Authenticate users with API keys in headers or query strings

AWS SigV4 AuthenticationPremium

Service-to-service authentication using AWS SigV4 service accounts

Basic AuthenticationPremium

Authentication of requests based on .htpasswd files

Client Credentials

OAuth 2.0 Client Credentials Grant to automatically request access tokens before reaching the backend's protected resources

Google GCP AuthenticationPremium

Service-to-service authentication using Google Cloud service accounts

+7 more in this category

Routing(9 features)

Catchall (Fallback Upstream)Premium

Receives all the traffic from routes and methods that do not resolve to any of the other existing endpoints in the configuration

Conditional RoutingPremium

Route requests to one or multiple backends based on request headers or custom policy expressions

Configurable Client RedirectsPremium

Allow the end-user to follow redirects set by services instead of the gateway resolving them

Header and Query String Based Dynamic RoutingPremium

Header and query string processing to assemble the final upstream URL

JWT Claim-Based Routing

JSON Web Token processing to assemble the final upstream URL

+4 more in this category

AI Gateway(8 features)

AI Budget ControlAIPremium

Granular token usage monitoring and enforcement to keep your AI expenses transparent and within budget

AI GatewayAI

Ability to connect endpoints to AI providers and models

AI GovernanceAIPremium

Enforce compliance, security, and operational guardrails inline with AI traffic

AI SecurityAI

From isolated authorization flows to data masking and exfiltration prevention

Google Gemini IntegrationAIPremium

Use Google's Gemini AI without writing custom integration code

+3 more in this category

Configuration(3 features)

Extended Flexible ConfigurationPremium

Extends the flexible config adding $ref, nested directories, multiple settings file formats, conflict handling, debugging and more

Flexible Configuration

Declare the configuration using templates and environment-specific values

Multi-Format Configuration

Write the configuration in JSON, YAML, TOML, HCL and more

Caching(2 features)

Cache

Store backend responses in memory to reduce the number of calls a user sends to the origin, reducing the network traffic and alleviating your services' pressure

HTTP Cache Headers (for CDN)

Set automatically cache headers for CDN or intermediate caching

Cost Calculator

Pricing data not available for KrakenD. Check their website for current pricing.

Ready to Build?