Skip to content
habediPublic

Repository files navigation

Tinybird Logo

Tinybird

Tests Examples Docs Zig Version MicroZig Version License

A tiny application platform for microcontrollers


Tinybird is a tiny Wasm-based application platform for microcontrollers. The main goal of the project is to provide a consistent execution environment and hardware API that allows developers to write applications once and run them on different devices without modifying their code.

See ROADMAP.md for the list of implemented and planned features.

Important

Tinybird is in early development, so bugs and breaking changes are expected. Use the issues page to report bugs or request features.


Quickstart

To follow the steps below, you need to have Git and Nix (with flakes enabled) installed on your machine.

Important

The instructions below are for Linux. Use Windows Subsystem for Linux (WSL) on Windows. A working Nix installation with flakes enabled is needed. Currently, the primary microcontroller target is the Raspberry Pi Pico 2.

1. Clone the repository

git clone --recurse-submodules https://github.com/habedi/tinybird.git
cd tinybird

2. Enter the development environment

nix develop

3. Install development tools and dependencies

# Install Python tools
make install

# Run host-side unit tests (no board needed)
make test

# Build the host CLI, sample Wasm applications, and MCU firmware
make build

4. Run a sample WebAssembly application

# Run the hello world example
./zig-out/bin/tinybird run zig-out/examples/hello.wasm

# Run the add example with arguments
./zig-out/bin/tinybird run zig-out/examples/add.wasm add 10 20

5. Flashing the firmware to the Raspberry Pi Pico 2

  1. Enter BOOTSEL mode by holding down the white BOOTSEL button on the Pico 2 while plugging the USB cable into your machine, then release it.
  2. Flash the board:
# Option A: Automatic flash over USB using picotool
make flash

# Option B: Flash a specific UF2 file path
make flash FIRMWARE_UF2=zig-out/firmware/tinybird.uf2
Raspberry Pi Pico 2

6. Connecting to the serial console

make console TTY=/dev/ttyACM0

Tip

On Linux, access to /dev/ttyACM0 needs membership in the dialout group:

sudo usermod -aG dialout $USER

Documentation

Check out the project documentation for more information.

To see all available commands in Makefile and their descriptions, run:

make help

Contributing

See CONTRIBUTING.md for details on how to make a contribution.

License

Tinybird is licensed under the Apache License, Version 2.0 (see LICENSE).

Acknowledgements

  • The logo is from SVG Repo with some modifications.

Sponsor this project

Used by

Contributors

Languages