Getting Started

Getting started

Install Lanjit, generate an application key, and run your first route.

Beta · v0.2.0Lanjit APIs may change before the stable release. Review the release notes and upgrade guide before updating.

Lanjit is a Laravel-inspired web framework built with native JavaScript ESM. It includes routing, middleware, controllers, views, validation, sessions, database access, and an Artisan-style CLI.

Requirements

Use Node.js 22.5.0 or newer. SQLite is the default database; MySQL is optional.

Create a project

Run the installer below, enter the project directory, and start the development server. The application is available at http://127.0.0.1:3333 by default.

Examples

node --version
npm create lanjit@latest my-app
cd my-app
npm run dev
npm install
cp .env.example .env
node artisan key:generate
npm run dev
node artisan serve --host=0.0.0.0 --port=8080
node artisan serve --host 0.0.0.0 --port 8080
export default function routes(Route) {
  Route.get('/hello/{name}', (request) => ({
    message: `Halo, ${request.params.name}!`,
  }));
}
Edit this page on GitHub

Type to search all documentation.