Nagi Docs
Start with installation. To look up code, open the syntax reference or built-in functions.
On this page
First steps
- Setup and first run: install Nagi and run Hello World.
- Learn by writing code: variables, functions, lists, and error handling.
- HTTP and HTML: build an API, then store data with SQLite.
See the VS Code guide for editor support.
Language reference
| Topic | Page |
|---|---|
| Syntax, operators, and function definitions | Syntax reference |
| Built-in function arguments, return values, and limits | Built-in functions |
| Types and annotations | Types and inference |
| Named data fields | Classes |
| Passing, borrowing, and copying values | Ownership, views |
| Returning and handling failures | Error handling |
Build applications
| Task | Page |
|---|---|
| Read and write JSON | JSON |
| Split code into files or call Rust | Imports and Rust |
| Share your own libraries or use Rust crates | Libraries and Rust assets |
| Save an entry file and build settings | nagi.toml |
| Use your own Rust crate from an application | Local library example |
| Wait for async work or start child operations | Async and scopes, concurrency |
| Read working applications | Sample projects |
Runnable examples are in examples/tutorial/. References also include code fragments.
Implementation and development
About Nagi · Low · Memory · Compiler · Language interfaces · Roadmap
Actors, worker restarts, and queues are experimental implementations. For performance, read the measurement methods, results, and HTTP load tests.
These pages cover Nagi 0.1. Unsupported features are listed on each page.