Data access
get, set, update, and fn — read and write through a typed path.
// Before — string literals, invisible to the compilerregister("users.0.profile.firstName");table.getColumn("contact.email");// After — typed, autocompleted, refactor-saferegister(path((u: FormData) => u.users[0].profile.firstName).$);table.getColumn(emailPath.$);A zero-dependency TypeScript library that captures object property paths via proxy-based lambdas. Build a path once — use it as a string, read and write data through it, compose paths together, or match one against another.
Data access
get, set, update, and fn — read and write through a typed path.
Templates
each and deep for bulk reads and writes across arrays and recursive trees.
Path algebra
merge, subtract, slice, to — compose and decompose paths.
Integrations
Works with React Hook Form, Zustand, TanStack, Zod, and more.
Install
Add the package and verify the setup.
Quick start
A working example in under five minutes.
API cheatsheet
Every method at a glance.
Types reference
Path, TemplatePath, ResolvedType, and more.