wasp-lang /wasp

The batteries-included full-stack framework for the AI era. Develop JS/TS web apps (React, Node.js, and Prisma) using declarative code that abstracts away complex full-stack features like auth, background jobs, RPC, email sending, end-to-end type safety, single-command deployment, and more.

★ 18,809⑂ 1,480👁 65⑃ 3,170● 2,026▤ 167
TypeScriptMITCreated 2020-01-30wasp.sh
下载:v0.26.1wasp-0.26.1 ↓0.26.12026-10-23
+1
日增长
18,809
stars
1,480
forks
65
watchers
3,170
prs
2,026
issues
167
releases

README

The fastest way to develop full-stack web apps with React & Node.js.
  
  
  
  
    
    
    
  
  
  
  
    Website
    |
    Docs
  
  
    Discord
    |
    Twitter
    |
    Youtube
  
  
    Deployed? Get swag! 👕
  


---

 What is Wasp?

Wasp (Web Application Specification) is a Rails-like framework for React, Node.js, and Prisma.
Build your app in a day and deploy it with a single CLI command!

 Why is Wasp awesome

- 🚀 Quick start: Due to its expressiveness, you can create and deploy a production-ready web app from scratch with very few lines of concise, consistent, declarative code.
- 😌 No boilerplate: By abstracting away complex full-stack features, there is less boilerplate code. That means less code to maintain and understand! It also means easier upgrades.
- 🔓 No lock-in: You can deploy the Wasp app anywhere you like. There is no lock-in into specific providers; you have complete control over the code (and can actually check it out in .wasp/ directory if you are interested ).
- 🤖 Perfect for AI by design: Thanks to its high-level spec of the whole app, opinionated approach, built-in full-stack features, and tight integration of all parts of the stack, Wasp gives AI (agents) clear guardrails and structure, less boilerplate to manage, and better context management.

 Features

- 🔒 Full-stack Auth
- 🖇️ RPC (Client  Server)
- 🚀 Simple Deployment
- ⚙ ️Jobs
- ✉️ Email Sending
- 🛟 Full-stack Type Safety
- ...

 Code example

Simple Wasp spec file in which you describe the high-level details of your web app:

ts
// file: main.wasp.ts

import { app, page, query, route } from "@wasp/spec";

import { MainPage } from "./src/MainPage" with { type: "ref" }; // Your React code.
import { DashboardPage } from "./src/dashboard/DashboardPage" with { type: "ref" };
import { getTasks } from "./src/queries" with { type: "ref" }; // Your Node.js code.

export default app({
  name: "todoApp",
  wasp: { version: "^0.24.0" },
  title: "ToDo App",
  head: [""],
  auth: {
    // Full-stack auth out-of-the-box.
    userEntity: "User",
    methods: {
      email: {
        // ...
      },
      google: {
        // ...
      },
    },
    onAuthFailedRedirectTo: "/login",
  },
  spec: [
    route("RootRoute", "/", page(MainPage)),
    route(
      "DashboardRoute",
      "/dashboard",
      page(DashboardPage, {
        authRequired: true, // Limit access to logged-in users.
      }),
    ),
    query(getTasks, {
      entities: ["Task"], // Automatic cache invalidation.
    }),
  ],
});


And a Prisma schema for the database:

prisma
// file: schema.prisma

model Task { // Your Prisma data model.
  id          Int     @id @default(autoincrement())
  description String
  isDone      Boolean @default(false)
}


The rest of the code you write in React / Node.js and reference it from the .wasp.ts files.

👉 Check out TodoApp example for a complete code example. 👈

 How it works



Given a simple main.wasp.ts specification file that describes the high-level details

Top issues

Discussions

Latest release

v0.26.1 v0.26.1 2026-10-23
⚠️ Breaking Changes

- Wasp now requires Node.js =24.22.1 (previously =24.14.1), which includes fixes for the October 2026 Node.js security vulnerabilities. (5113)

Snapshot: 2026-11-16T09:23:14Z · Data license Apache-2.0 · JSON