# hathach/tinyusb

An open source  cross-platform USB stack for embedded system

Repository: https://github.com/hathach/tinyusb
Canonical: https://ross.abutalabs.com/products/tinyusb
Homepage: https://www.tinyusb.org
Language: C
License: MIT
License Family: permissive
Topics: embedded, usb, usb-host, usb-devices, usb-hid, usb-cdc, usb-drive, midi, webusb, msc, tinyusb
Last push: 2026-08-26T18:16:48+00:00

## Health v2 (maintenance only)
Score: 88/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 99, release rhythm 66, longevity 100
- inputs: {"age_days": 5028, "days_push": 7, "days_rel": 64, "gap_med": 162.0, "n_releases_24m": 5}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 7055, forks 1501 (observed 2026-08-28T04:09:55.563415+00:00)

## What it is
TinyUSB is an open-source, cross-platform USB Host and Device stack for embedded systems written in C. It is designed for memory safety (no dynamic allocation), thread safety, and portability across 50+ MCU families, supporting classes like CDC, HID, MSC, Audio, and WebUSB.

## Use cases
- implement USB device firmware on a microcontroller
- add USB host support to an embedded project
- create a USB HID keyboard or mouse device
- expose USB CDC serial port on an MCU
- implement USB mass storage (MSC) on embedded hardware
- add WebUSB support to a firmware project
- use USB MIDI on a microcontroller

## When to choose
- you need a portable, well-supported USB stack across many MCU families
- you want a memory-safe stack with no dynamic allocation for embedded use
- you need both USB host and device support in one stack
- you use an RTOS like FreeRTOS, RT-Thread, or Mynewt, or run bare metal

## When to avoid
- you need USB support only on desktop/server operating systems
- your target MCU is not among the supported 50+ families and you cannot write a port driver
- you need a high-level USB API rather than a low-level embedded stack

## Facets
- artifact type: library
- maturity: stable
- function: embedded, http-server, developer-tools
- domain: embedded-systems, hardware, cross-platform
- platform: embedded, c, cross-platform
- tags: usb-stack, usb-host, usb-device, usb-hid, usb-cdc, usb-msc, midi, webusb, rtos, firmware

## Member repositories
- hathach/tinyusb (main) score 88

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:09:55.563415+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T17:40:30.466578+00:00, confidence not recorded.
  - readme: https://github.com/hathach/tinyusb (fetched 2026-08-28T04:09:55.563415+00:00, sha b13372c5bd92)
  - homepage: https://www.tinyusb.org (fetched 2026-08-29T08:36:10.599338+00:00, sha 9b292e5e402a)
- Data as of 2026-08-30T08:39:29.467469+00:00.
