laju Svelte Themes

Laju

Laju (Indonesian for 'fast/swift') is a high-performance TypeScript web framework combining HyperExpress, Svelte 5, and Inertia.js for building modern full-stack applications. Features server-side rendering, real-time capabilities, and seamless client-server state management.

Laju

⚔ High-performance TypeScript web framework - 11x faster than Express.js

Build modern full-stack applications with HyperExpress, Svelte 5, and Inertia.js.

šŸš€ Quick Start

# Create new project
npx create-laju-app my-project
cd my-project

# Setup database
cp .env.example .env
npx knex migrate:latest

# Start development
npm run dev

Visit http://localhost:5555

✨ Features

Performance First

  • 258,611 req/sec - HyperExpress server (11x faster than Express)
  • 19.9x faster writes - SQLite with WAL mode
  • Zero-config caching - Database cache included (optional Redis)

Modern Stack

  • Svelte 5 - Reactive UI with runes
  • Inertia.js - SPA without client-side routing
  • TailwindCSS 3 & 4 - Utility-first CSS with Vite (easy migration)
  • TypeScript - Full type safety

Built-in Services

  • Authentication - Sessions, OAuth (Google), password reset
  • Storage - S3/Wasabi with presigned URLs
  • Email - Nodemailer (SMTP) or Resend (API)
  • Caching - Database cache or Redis
  • Templates - Eta for SSR

šŸ“Š Performance

Framework Requests/sec Comparison
Laju 258,611 Baseline
Pure Node.js 124,024 2x slower
Express.js 22,590 11x slower
Laravel 80 3,232x slower

Benchmark: Simple JSON response on same hardware

šŸ“š Documentation

Complete Documentation →

Documentation is organized for progressive learning from beginner to advanced.

Getting Started

Core Features

Advanced Features

Production

Reference

Project Structure

app/
ā”œā”€ā”€ controllers/     # Request handlers
ā”œā”€ā”€ middlewares/     # Auth, rate limiting, CSRF
ā”œā”€ā”€ services/        # DB, Mailer, Storage, Cache
└── validators/      # Input validation

resources/
ā”œā”€ā”€ js/
│   ā”œā”€ā”€ Pages/       # Svelte/Inertia pages
│   ā”œā”€ā”€ Components/  # Reusable components
│   └── index.css    # TailwindCSS 3 & 4
└── views/           # Eta templates

routes/              # Route definitions
migrations/          # Database migrations
commands/            # CLI commands
tests/               # Unit & integration tests
docs/                # Documentation
benchmark/           # Performance benchmarks
public/              # Static assets
storage/             # Local storage
type/                # TypeScript definitions

Commands

npm run dev                              # Development
npm run build                            # Production build
node laju make:controller UserController # Generate controller
npx knex migrate:make create_posts       # Create migration
npx knex migrate:latest                  # Run migrations

Tech Stack

Layer Technology
Server HyperExpress
Database BetterSQLite3 + Knex
Frontend Svelte 5 + Inertia.js
Styling TailwindCSS 3 & 4
Build Vite
Templates Eta

Author

Maulana Shalihin - [email protected]

Support

License

MIT License

Top categories

Loading Svelte Themes