Skip to content

Trees

An open-source file tree library with virtualization, Git status badges and context menus.

trees.software

Trees website screenshot
Added

About

About Trees

Trees, published as @pierre/trees by The Pierre Computer Company, is an open-source file tree rendering library. Its demos show a tree that mounts only the visible rows and stays quick with close to three thousand files expanded. Options include flattening chains of empty directories into one row, Git status badges for added, modified, deleted, renamed, untracked and ignored files, search modes such as expand-matches, and a custom context menu via a React renderContextMenu prop.

Install it with pnpm add @pierre/trees. The site marks the current release as v1.0.0-beta.6, so expect changes, and it provides a page aimed at agents plus documentation. It suits code viewers, editors, review tools and file managers.

Trees features

6 features

  • Built-in virtualization
  • Git status badges on files
  • Flatten empty directories
  • Search that expands matches
  • Custom context menu
  • Light and dark demos

Install Trees

1 command

Terminal

$ pnpm add @pierre/trees

What you can build with Trees

3 use cases

  • Showing changed files in a code review tool
  • Building a file explorer for an in-browser editor
  • Rendering a large repository tree without lag

Pricing

Ship it with Pro

The directory is free. Pro adds 6,000+ blocks, 14 premium templates and the MCP server, so your AI editor installs them for you.

4.9/5 out of 5 · 150+ reviewsfrom 150+ founders and developers.

  • Secure checkout via Stripe
  • Code lives in your repo
  • Keep what you've shipped if you cancel
  • License terms

FAQ

Frequently asked questions

What Trees is, how to install it, its license and its alternatives.

4.9 out of 5 from 150+ developers

Found your stack? Ship it.

6,000+ blocks, premium templates and MCP in every Pro plan. The directory stays free.

Get Pro