---
title: "Examples"
url: https://una-lang.org/en/docs/examples/
release: v0.4.0
---

# Examples

Complete packages you can check, test and run, each checked with una v0.4.0. Read them in this order, from the smallest.

- [hello](https://una-lang.org/en/docs/examples/hello/): The smallest Una package: one function that prints one line.
- [wordfreq](https://una-lang.org/en/docs/examples/wordfreq/): Counts how often each word of a line occurs, and prints the counts as one JSON object.
- [pantry](https://una-lang.org/en/docs/examples/pantry/): A kitchen pantry: items with amounts, a shopping list of what ran out, and totals per measure.
- [greenhouse](https://una-lang.org/en/docs/examples/greenhouse/): A greenhouse vent controller: it reads a thermometer and opens a roof vent to match, and it traces its main rule to a regulation.
- [journal](https://una-lang.org/en/docs/examples/journal/): A private journal: it reads today's entry from a file and prints how long it is, never what it says.
- [toolshelf](https://una-lang.org/en/docs/examples/toolshelf/): A community tool shelf: members check tools out for a number of days and bring them back, under two house rules.
- [shortlinks](https://una-lang.org/en/docs/examples/shortlinks/): A link shortener: it stores short slugs that lead to longer links, and checks each slug once, where it enters the program.
- [events](https://una-lang.org/en/docs/examples/events/): Event check-in: attendees check in by phone number, the phone is used only through a keyed hash, and every check-in is audited.
- [health](https://una-lang.org/en/docs/examples/health/): A health endpoint: an HTTP server that answers GET /health with 200 ok, and every other request with 404.
- [metronome](https://una-lang.org/en/docs/examples/metronome/): A metronome: a program that plays one beat every half second, tick on the first beat of each bar of four and tock on the others, until it is stopped.
