Skip to content

Introduction

What is Laju?

Laju (Indonesian for 'fast/swift') is a high-performance TypeScript web framework that combines the best of modern web technologies to deliver exceptional speed and developer experience.

Philosophy

Laju follows these principles:

  1. Performance First — Every decision optimized for speed
  2. Developer Experience — Modern tools, hot reload, TypeScript
  3. Batteries Included — Auth, email, storage out of the box
  4. Simple & Elegant — Clean architecture, easy to understand
  5. Production Ready — Battle-tested components, proper error handling
  6. AI-Native — Built for AI-assisted development

Tech Stack

LayerTechnologyPurpose
ServerHyperExpressUltra-fast HTTP server (258k req/s)
FrontendSvelte 5Modern reactive UI framework
BridgeInertia.jsSeamless client-server communication
DatabaseBetterSQLite3High-performance embedded database
Query BuilderKyselyType-safe SQL query builder
StylingTailwindCSSUtility-first CSS framework
Build ToolViteLightning-fast builds
LanguageTypeScriptType-safe development

Performance

HTTP Server

FrameworkRequests/secAvg Latencyvs Laju
Laju258,6111.52msBaseline
Pure Node.js124,0243.62ms2.08x slower
Express.js22,59026.36ms11.45x slower
Laravel80128.72ms3,232x slower

Database (WAL Mode)

OperationDefaultWAL ModeImprovement
Single Insert4,678 ops/s93,287 ops/s19.9x faster
Batch Insert2,895 ops/s8,542 ops/s2.95x faster
Concurrent Writes89 ops/s1,302 ops/s14.6x faster

Architecture

┌─────────────────────────────────────────┐
│           CLIENT (Browser)              │
│    Svelte 5 + Inertia.js + TailwindCSS  │
└─────────────────────────────────────────┘

┌─────────────────────────────────────────┐
│           SERVER (Node.js)              │
│       HyperExpress + TypeScript         │
├─────────────────────────────────────────┤
│   Controllers → Services → Database     │
└─────────────────────────────────────────┘

┌─────────────────────────────────────────┐
│            DATA LAYER                   │
│    BetterSQLite3 (WAL) + Redis (Opt)    │
└─────────────────────────────────────────┘

Key Features

⚡ Exceptional Performance

  • 2.08x faster than pure Node.js
  • 11.45x faster than Express.js
  • 258,611 requests/second throughput

🤖 AI-Native Architecture

  • Standardized structure for AI understanding
  • 3-agent workflow (INIT, TASK, MANAGER)
  • Built-in documentation patterns

🔒 Built-in Authentication

  • PBKDF2 password hashing (100,000 iterations)
  • Session-based authentication
  • Google OAuth integration
  • Password reset functionality
  • Email verification

🗄️ High-Performance Database

  • BetterSQLite3 with WAL mode
  • Kysely type-safe query builder
  • Native SQLite for maximum performance
  • Database migrations

📦 Complete Feature Set

  • Email support (Nodemailer & Resend)
  • S3/Wasabi file storage
  • Rate limiting protection
  • Redis caching (optional)
  • Winston logging
  • Hot reload in development

Use Cases

Laju is perfect for:

  • High-traffic web applications — Handle 250K+ requests/second
  • Real-time dashboards — Fast database queries and updates
  • SaaS applications — Built-in auth, file storage, email
  • API backends — RESTful APIs with rate limiting
  • Content management — Fast reads with SQLite
  • Prototypes & MVPs — Rapid development with modern stack

Comparison

vs Express.js

FeatureExpress.jsLaju
Built-in Auth❌ Manual✅ Included
Frontend❌ None✅ Svelte 5
Database ORM❌ None✅ Kysely
TypeScript⚠️ Manual✅ Native
Performance22k req/s258k req/s

vs Next.js

FeatureNext.jsLaju
FrameworkReactSvelte (simpler)
API RoutesSeparateIntegrated
AuthNextAuth setupBuilt-in
DeploymentVercel lock-inAny server
HydrationRequiredOptional

vs Laravel

FeatureLaravelLaju
LanguagePHPTypeScript
Performance80 req/s258k req/s
FrontendBlade/Vue/ReactSvelte 5
DeploymentComplexSimple
AI-Native

Community

License

MIT License — Free for personal and commercial use.

Released under the MIT License.