mcpField
T
trees

trees

github.com/pierrecomputerDevelopment6.4k318 installsUpdated 1d ago
Repository

About trees

@pierre/trees is a JavaScript library for building interactive file trees, with core, React, SSR, and web component entry points. It suits developers integrating tree views into web applications.

Key features

  1. 01Core, React, SSR, and web component APIs
  2. 02Path-string state and callbacks
  3. 03Server-side tree preloading
  4. 04Theme application
  5. 05Search, rename, drag and drop, and git status

Use cases

  1. 01Render and update a file tree in React
  2. 02Build a tree view with vanilla JavaScript
  3. 03Preload a file tree on the server
  4. 04Add search and file operations to a tree

Install

Copy the command and run it in a terminal.

$npx skills add https://github.com/pierrecomputer/pierre --skill trees

After installing, type/treesin Claude Code to confirm it loaded.

Bundled files

References and scripts installed along with SKILL.md.

references/
api-core.md
api-react.md
api-ssr.md
api-web-components.md
recipe-interactions.md
recipe-react.md
recipe-ssr.md
recipe-theme.md
recipe-vanilla.md

Details

From the project README

@pierre/trees

Use @pierre/trees for an interactive file tree. Public state and callbacks use path strings.

Install

pnpm add @pierre/trees

Install react and react-dom when the app uses the React entry.

Select an API reference

EntryReference
@pierre/treesCore API
@pierre/trees/reactReact API
@pierre/trees/ssrSSR API
@pierre/trees/web-componentsWeb components API

Select a recipe

TaskRecipe
Render and update a tree in ReactUse React
Render and update a tree without ReactUse vanilla JavaScript
Preload a tree on the serverUse SSR
Apply a resolved Shiki or VS Code themeApply a theme
Configure search, rename, drag and drop, and git statusAdd interactions

Comments

Markdown supported