
Company News
Socket Named Top Sales Organization by RepVue
Socket won two 2026 Reppy Awards from RepVue, ranking in the top 5% of all sales orgs. AE Alexandra Lister shares what it's like to grow a sales career here.
branch-picker
Advanced tools
A lightweight library for managing hierarchical data with synchronization.
BranchPicker is a zero dependency lightweight library designed for TypeScript projects, and it offers the following features:
Simplifies the management of hierarchical data, like trees, with unique synchronization capabilities:
Framework-agnostic: Use it seamlessly in any TypeScript project, regardless of the framework.
Headless: Provides complete control and flexibility for UI integration.
To use the BranchPicker library in your project, you can install it via npm or yarn.
npm install branch-picker
or
yarn add branch-picker
The BranchPicker library is headless, meaning it doesn't come with a specific UI or framework tie-ins. It's designed to be framework-agnostic and can be used in various environments, including TypeScript-based projects.
Here's a basic example of how to use it:
import { useBranchPicker } from 'branch-picker';
// Define your data and options
const data = // Your hierarchical data
// Create a BranchPicker instance using the adapter
const { branchPicker } = useBranchPicker({
data,
state: {},
getSubBranches: (item) => // Your function to get sub-branches,
getBranchId: (item) => // Your function to get a branch's ID,
onStateChange: (state) => // Handle state changes,
});
// Use the BranchPicker instance to manage and interact with your data
// ...
https://codesandbox.io/s/long-monad-9fchys
The BranchPicker library fully supports TypeScript, providing type definitions for its core components. You can take full advantage of TypeScript's static type checking and code intelligence when using this library.
If you'd like to contribute to the BranchPicker library, please check the CONTRIBUTING.md file for guidelines on how to get started. (coming soon)
This project is licensed under the MIT License. See the LICENSE file for details.
FAQs
A lightweight library for managing hierarchical data with synchronization.
We found that branch-picker demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Company News
Socket won two 2026 Reppy Awards from RepVue, ranking in the top 5% of all sales orgs. AE Alexandra Lister shares what it's like to grow a sales career here.

Security News
NIST will stop enriching most CVEs under a new risk-based model, narrowing the NVD's scope as vulnerability submissions continue to surge.

Company News
/Security News
Socket is an initial recipient of OpenAI's Cybersecurity Grant Program, which commits $10M in API credits to defenders securing open source software.