Skip to content

Guides

The guides show you how to use Novis. Most guides have small programs that you can run, with their output.

If you have not installed Novis yet, start with Install.

Each page shows one feature that makes Novis different from other languages. Every page has a short program and its output. HTML is escaped for you shows that text from a visitor cannot add tags to your page. Secrets are never printed shows a password that stays out of the output, the logs and the error messages.

The Tour has ten short steps. It starts with the Hello, World! program and ends with a web application. Each step adds one idea, such as methods and types, errors or JSON. The last step runs a web application with nvs serve.

A walkthrough is a short animation of what happens while your program runs. It shows the browser, your code and the server at the same time, with a caption next to each step. Work after the response shows a request that sends an email after the browser already has the page. Page now, slow parts later shows a page that arrives at once, while its slow parts still run. It needs no script and no extra API route.

Each page is one complete program in one file. You can copy it and change it for your own work. A CSV report prints the sales total for each product. A web scraper downloads a page and lists its links.

These pages show how the parts of an application work together. Project layout shows where your files go, and Configuration explains nvs.toml. Handling requests shows how a program finds its route and reads the request. Each page ends with a list of things to do and things to avoid.

Each page shows how to do one common task, with one short program. Copy the part you need, for example Validate a form, Store a password or Call an HTTP API.

Novis has a test runner built in, so you do not need to install a test framework. Test doubles shows how to replace a mail server or the clock in a test. Testing a page sends a request to your routes without starting a server.

These pages show how to run your app on a server. nvs serve is the same command in development and in production. You can run it as a service, in Docker or behind a reverse proxy. The security checklist lists what to check before the first request.

An example app is a complete project that you can download, run and change into your own app. Notes saves notes in SQLite and has a small JSON API. Chat has chat rooms, and the browser and the server send messages over a WebSocket.

An extension adds a class to Novis that is written in another language, such as Rust or C. It runs in a sandbox, and the compiler checks every call to it. Write an extension in Rust builds a syntax highlighter, which shows code in color. Its demo passes the highlighter to Core\Markdown::toHtml.

Syntax shows how to write Novis code. Reference lists every class and function.