examples | ||
waspc | ||
.gitattributes | ||
README.md |
_ _
__ ____ _ ___ _ __ | )/ )
\ \ /\ / / _` / __| '_ \ \\ |//,' __
\ V V / (_| \__ \ |_) | (")(_)-"()))=-
\_/\_/ \__,_|___/ .__/ (\\
|_|
A programming language that understands what a web app is.
Wasp (Web Application Specification Language) is an extensible DSL (domain-specific language) for building modern web apps with less code.
This means that concepts such as app, page, user, login, frontend, production, etc. are baked into the language, bringing a new level of expressiveness and allowing you to get more work done with fewer lines of code.
// todoApp.wasp:
app TodoApp {
title: "ToDo app",
favicon: "./todo-logo.png"
}
entity Task {
description :: string,
isDone :: boolean
}
entity-list<Task> TaskList {
editable: true
}
page Main {
route: "/",
content: {=jsx
<h1>Todos</h1>
<TaskList/>
jsx=},
style: "./main.css"
}
...
Source files (.wasp
, .js(x)
, .css
, ...) are compiled (transpiled) by waspc
(Wasp compiler) into the web technology stack of your choice (e.g. React + Redux + ExpressJS + ...).
Check out TodoApp example for complete code example.
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.
- Flexible: When you need more control than Wasp offers, you can write code in existing technologies such as js/html/css/... and combine it with Wasp code!
- No lock-in: If Wasp becomes too limiting for you, simply eject and continue with the generated source code that follows industry best-practices, as if it was handwritten by a senior engineer.
For more of general information about Wasp, check:
- The main webpage: [https://wasp-lang.dev].
- Blog: Why are we building Wasp?
If you are interested/excited about Wasp, support us by giving us a star ⭐ and/or subscribe to our email list 📫! Check Contributing for more information.
This repository
This is the main repo of the Wasp universe, containing core code (not yet at the moment, but waspc
(Wasp compiler) code is coming soon) and the supporting materials.
Documentation
While we do plan to publish detailed documentation, we don't have anything worth publishing yet due to how fast everything is changing in this early stage of Wasp development.
In the meantime, the best way to learn more is by taking a look at our TodoApp example.
Project status
We are still early and are doing closed development iterations with our early adopters.
Specifically, we are developing waspc
(Wasp compiler) and also designing language as we go.
Currently, waspc
is in a state where the main parts are there (code analysis and generation) and we are successfully generating code as can be seen at TodoApp example.
The language itself supports a narrow set of features for now, not enough for serious web app development, but we believe it is a good basis to build upon.
The next step is to expand the language (and compiler) so it can serve the role of a powerful code generator - it will still not have enough features to keep you from ejecting for a very long time, but it will be enough to give you a quick start.
Finally, as it grows further, it should allow the development of web apps of increasing complexity without the need to eject!
While the idea is to support multiple web tech stacks in the future, right now we are focusing on the specific stack: React + Redux, NodeJS + ExpressJS, Mongo. We might yet change that as time goes, taking trends into account, but for now, this is serving us well for the purpose of developing compiler and language.
Contributing
Since we are still doing closed development of the very first version of the compiler (waspc
) and language (check Project status for more info), you can't contribute to the code directly via this repository at the moment.
However, even more than help with development, at this early stage we need your support and feedback! You can help us greatly by:
- ⭐ Starring this repository.
- 📫 Staying updated by subscribing to our email list at wasp-lang.dev.
- 💬 Providing feedback and ideas via gitter . Also let us know if you would like to be more closely involved, as we are looking for developers to participate with us in designing/testing the closed version of Wasp before we open it.
Your support and feedback are hugely important for us because they tell us (and others) that what we are building is something people want, and it also helps us better understand what that is :)!
FAQ
Check out https://wasp-lang.dev/#faq.
Other
Wasp ASCII art used in the title is from https://www.asciiart.eu/animals/insects/bees, author: Stef00.