candyscript
A minimal single-line programming language for writing web servers and restAPIs :candy: :relieved: :rocket:
Summary
| Latest Version | Unknown |
|---|---|
| License | Unknown |
| CI Status | Failing |
| Stars | 4 |
| Forks | 1 |
| Open Issues | 0 |
| Last Commit | 2021-02-08 |
| Downloads | 0 |
| Last Indexed | 2026-09-07 06:07 |
Tags
Installation
nimble install candyscript
choosenim install candyscript
git clone https://github.com/littledivy/candyscript
OS Compatibility
| Platform | Linux | macOS | Windows | FreeBSD | OpenBSD | NetBSD | Android | iOS | WASM | Embedded |
|---|---|---|---|---|---|---|---|---|---|---|
| candyscript | ✓ | ✓ | ✓ | - | - | - | - | - | - | - |
Source
| Repository | https://github.com/littledivy/candyscript |
|---|---|
| Homepage | https://github.com/littledivy/candyscript |
| Registry Source | github |
README
CandyScript
CandyScript is a lightweight yet superfast language for forging small web servers and RestAPIs.
Related
A maintained fork of candyscript by @benob https://github.com/benob/candyscript
Features
- Line-by-line parser
- One of the fastest web server powered by Nim's
asynchttpserver - Short and efficient
- No external database service required.
- < 85 lines of Nim code!
- A single binary for everything
TODO
- [ ] Add backend integration with other languages
- [ ] Add multiple database integration
- [ ] Use
httpbeastinstead ofasynchttpserver
Example
Hello, World!
# this is a comment
GET "/": Hello, World!
Building from source
Use the Nim compiler nim to compile the Bloom source code.
This code will run your candyscript server.
nim c index.nim
./index your_script.candy
Contributing
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.