r/BestGitHubRepos • u/company_url_finder • 1d ago
๐ Developer tools TinyUSB: An open source cross-platform USB stack for embedded system (7.3k stars)
What it does
All text below is quoted directly from the project README.
TinyUSB is an open-source cross-platform USB Host/Device stack for embedded systems.
Key Features:
- Thread-safe: USB interrupts deferred to task context
- Memory-safe: No dynamic allocation, all buffers static
- Portable: Supports 50+ MCU families
- Comprehensive: Includes CDC, HID, MSC, Audio, and Host support
- RTOS-friendly: Works with bare metal, FreeRTOS, RT-Thread, and Mynewt
If you are new to TinyUSB, we recommend starting with the cdc_msc example.
How it works
TinyUSB is an open-source cross-platform USB host and device stack for embedded systems, written for memory safety and thread safety. It uses no dynamic allocation, with all buffers static, and defers USB interrupts to task functions instead of running work inside the interrupt handler. The repository is laid out with docs, examples, hw/bsp for supported boards, hw/mcu for low-level MCU drivers and lib for third-party sources. It supports more than 50 MCU families and device classes such as CDC, HID, MSC and Audio, plus host support. It works with bare metal, FreeRTOS, RT-Thread and Mynewt. The Getting Started guide recommends beginning with the cdc_msc example, built with make or cmake.
Repository
https://github.com/hathach/tinyusb
More about this repo on our website: https://bestgithubrepositories.com/hathach/tinyusb
Repository stats
| Metric | Value |
|---|---|
| Stars | 7,283 |
| Forks | 1.6k |
| Last release | 0.21.0 (2026-06-30) |
| Languages | C 75.4%, Python 13.5%, Linker Script 5.9% |
| Contributors | 340 |
| AI contributor accounts (Claude / Codex / Cursor / Copilot) | @Copilot (60 commits) |
| AI co-authored commits | Claude: 174, Cursor: 4, Copilot: 38 |
Main contributor
| Field | Value |
|---|---|
| Name | Ha Thach |
| GitHub | @hathach |
| Commits to this repo | 7,668 (top contributor) |
| Bio | Creator of TinyUSB ยท New dad of twins Coding between feedings |
| Company / Location | @adafruit / Vietnam |
| Website | www.tinyusb.org |
| X / Twitter | @tinyusb |
| Followers | 3.9k |
| Public repos | 52 |
| On GitHub since | 2010 |
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
๐ Please support our community by subscribing to our newsletter.
Every Monday and Thursday we send the 10 best repos shared here, plus what developers said about each one in the comments. It's free, it takes two minutes to read, and every new subscriber helps r/BestGitHubRepos grow.

