C
CanxJS
v1.6.2
  • Learn
  • Blog
  • Showcase
C
CanxJS

Ultra-fast async MVC backend framework for Bun. Build production-ready APIs with elegance and speed.

Resources

  • Documentation
  • Learn
  • Blog
  • Showcase

Documentation

  • Introduction
  • Installation
  • Core Concepts
  • CLI Commands
  • API Reference

Legal

  • Privacy Policy
  • Terms of Service

© 2026 CanxJS. All rights reserved.

Built with ❤️ for Candra Kirana

Version 1.6.2—WebSocket Support

Backend Framework
for the Web

Ultra-fast async MVC for Bun. 250,000+ req/sec performance.

Terminal
$

What is CanxJS?

Everything you need to build

Production-ready features out of the box. Built for performance, designed for developer happiness.

Ultra-Fast Routing

Radix Tree algorithm with O(k) route matching. Handle 250,000+ requests per second with JIT caching.

Async-First Design

Everything async by default. Clean, modern code without callback hell.

HotWire Protocol

Real-time streaming without WebSocket setup. Broadcast updates instantly to all clients.

Auto-Cache Layer

Intelligent automatic caching with pattern analysis for optimal performance.

Zero-Config ORM

MySQL and PostgreSQL support with elegant query builder syntax.

Native JSX Views

Server-rendered views with JSX. No external templating needed.

WebSocket Support

Native WebSocket integration for real-time bidirectional communication.

Built-in Security

CSRF protection, rate limiting, input validation out of the box.

Edge Runtime

Deploy to edge locations worldwide for ultra-low latency.

Built on Foundation of

Fast, Production-Grade Tooling

🥟
Bun
TypeScript
MySQL
PostgreSQL
Redis
250,000+
Requests per second
15x faster than Express
<30MB
Memory usage
75% less than Laravel
<50ms
Startup time
40x faster than Laravel

Why CanxJS?

Benchmarks that speak for themselves

We did the math. CanxJS outperforms the competition in speed, efficiency, and developer experience.

FeatureCanxJSExpress.jsLaravelNestJS
Requests / Second250,000+~15,000~2,000~12,000
Startup Time< 50ms~200ms~500ms~1000ms
Type Safety
Included
Native WebSocket
Included
HotWire Protocol
Included
Bundle Size< 30MBVariable> 100MB> 50MB

Get Started in Seconds

Ship faster with less code

CanxJS lets you build production-ready APIs in minutes. With zero configuration, automatic type safety, and batteries-included features.

Zero Configuration
Works out of the box with sensible defaults
Type-Safe by Default
Full TypeScript support with inference
Production Ready
Deploy anywhere with confidence
app.ts
1import { createApp, logger, cors } from "canxjs";
2
3const app = createApp({ port: 3000 });
4
5// Middleware
6app.use(logger());
7app.use(cors());
8
9// Routes
10app.get("/", (req, res) => {
11 res.json({ message: "Hello CanxJS!" });
12});
13
14app.listen();

The framework of choice when it matters

From startups to enterprises, developers choose CanxJS for mission-critical applications.

REST API

Full-featured REST API boilerplate

APIAuthCRUD

Real-time Chat

WebSocket-powered chat application

WebSocketHotWire

E-commerce Backend

Complete e-commerce API

PaymentsOrders

SaaS Starter

Multi-tenant SaaS backend

AuthBilling
View all showcases

FAQ

Frequently Asked Questions

Everything you need to know about CanxJS. Can't find the answer? Check our docs.

What is CanxJS?

CanxJS is an ultra-fast, async-first MVC backend framework built specifically for Bun. It combines React-like developer experience with blazing performance, achieving 250,000+ requests per second.

How does CanxJS compare to Express or Fastify?

CanxJS is built for Bun runtime, making it 15x faster than Express and 3x faster than Fastify. It also includes features like ORM, authentication, and real-time support out of the box.

Do I need to know TypeScript to use CanxJS?

While CanxJS is TypeScript-first for the best developer experience, you can also use JavaScript. TypeScript is recommended for full type safety and better IDE support.

Can I use CanxJS with existing databases?

Yes! CanxJS supports MySQL and PostgreSQL with its built-in ORM. You can connect to existing databases and use the query builder or write raw SQL queries.

Is CanxJS production-ready?

Absolutely. CanxJS includes production essentials like error handling, logging, security middleware, rate limiting, and deployment guides for Docker, Kubernetes, and cloud platforms.

How do I get support for CanxJS?

Join our GitHub discussions, check the documentation, or open issues on GitHub. The community and core team actively help developers.

Ready to get started?

Create your first CanxJS app in seconds with our CLI. Start building your next great project today.

Terminal
$