Tutorial — User Guide¶
This guide teaches Golit step by step. Each page builds on the last, and almost every section is a small program you can copy, run, and poke at.
If you've used Streamlit or Dash, the feel will be familiar — you write Python, you get a UI. What's different is the execution model underneath, and a few pages in you'll start to rely on it.
How to read this¶
The chapters are ordered. If you're new, go top to bottom:
- Your first app — the smallest thing that runs.
- The reactive graph — sources, reactives, views, and how dependencies are inferred. This is the core mental model.
- Inputs & widgets — the controls users interact with.
- Views & rendering — what a view can return and how it becomes HTML.
- Charts, UI components, Page layout, SQL nodes — the surface area.
- Running your app — the CLI and the ASGI entry point.
Running the examples¶
Every runnable example assumes you've installed Golit:
Save the code to a file — say app.py — and serve it:
Then open http://127.0.0.1:8000.
The repo ships complete examples
Each topic here has a full, runnable counterpart under examples/ in the source tree: sales_explorer, charts_gallery, components_gallery, and duckdb_sql. When a page references one, that's the file to open next.
When you're ready to understand why it's fast, the Concepts section explains the reactive model and the architecture.