How to Build Your Own KrakenD
Replace KrakenD with a custom build. The fastest API gateway. True linear scalability.
Build Difficulty: 4/5
A few focused days to build a solid replacement
Estimated Timeline
Based on 89 features at Few Days difficulty, expect about 3-5 days with AI-assisted development.
Recommended Tech Stack
Full-stack React framework with API routes and server components
PostgreSQL database, auth, and real-time subscriptions
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)
Create faster interactions with automatic API Composition and aggregation of multiple data sources into a single response
Automatic output encoding and translation (XML, JSON, RSS, noop)
Create an API consumption layer that provides aggregated views of several services and returns only the needed data
Add validation rules to continue with the request or to return the response
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)
Write your own Go plugins and side-load them with KrakenD to extend the functionality
With the OpenAPI exporter, you can automatically generate rich documentation websites. Have an OpenAPI? Then, create your API gateway using the OpenAPI specs
Generate Graphviz images displaying your configuration logic
Speed up development with a specific container with hot-reload functionality
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)
Check security and best practices recommendations of your configuration before going live
End-User validation and gateway to service validation: JWT, Client credentials, Oauth2, OpenID, API-Keys, Basic Auth, mTLS
OWASP recommendations that add a frame-breaking strategy
Cross-origin resource sharing
Enables the Cross-site scripting (XSS) filter in the user's browser
+8 more in this category
Authorization & Authentication(12 features)
Authenticate users with API keys in headers or query strings
Service-to-service authentication using AWS SigV4 service accounts
Authentication of requests based on .htpasswd files
OAuth 2.0 Client Credentials Grant to automatically request access tokens before reaching the backend's protected resources
Service-to-service authentication using Google Cloud service accounts
+7 more in this category
Routing(9 features)
Receives all the traffic from routes and methods that do not resolve to any of the other existing endpoints in the configuration
Route requests to one or multiple backends based on request headers or custom policy expressions
Allow the end-user to follow redirects set by services instead of the gateway resolving them
Header and query string processing to assemble the final upstream URL
JSON Web Token processing to assemble the final upstream URL
+4 more in this category
AI Gateway(8 features)
Granular token usage monitoring and enforcement to keep your AI expenses transparent and within budget
Ability to connect endpoints to AI providers and models
Enforce compliance, security, and operational guardrails inline with AI traffic
From isolated authorization flows to data masking and exfiltration prevention
Use Google's Gemini AI without writing custom integration code
+3 more in this category
Configuration(3 features)
Extends the flexible config adding $ref, nested directories, multiple settings file formats, conflict handling, debugging and more
Declare the configuration using templates and environment-specific values
Write the configuration in JSON, YAML, TOML, HCL and more
Caching(2 features)
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
Set automatically cache headers for CDN or intermediate caching
Cost Calculator
Pricing data not available for KrakenD. Check their website for current pricing.