Version 1.2.4WebSocket 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

Ready to get started?

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

Terminal
$