Replace small package installs with copyable source you can read, vendor, and keep under your own control.
Packages are great for distribution. Snippets are great for understanding and control. This project focuses on the latter.
A curated registry of copyable package behavior. Each snippet is shown as
raw and, when useful, a normalized variant for
Node.js and Bun projects.
Not a promise of universal compatibility, not a security guarantee, and not a mirror of all npm packages. This is a selective, vendor-first catalog.
We include small packages and narrow package slices that are easy to read, copy, and test. Security-sensitive packages only appear as tightly scoped snippets, not full libraries.
Use snippets when you want a smaller dependency graph, local code ownership, easier auditing, or a deterministic copy of behavior already used in your repo.
Use packages when you need active maintenance, broader abstraction, automatic security updates, or behavior that should keep tracking upstream over time.
Once you copy code into your repo, maintenance, license notices, and attribution are your responsibility.
Copied snippets do not automatically receive upstream bug fixes or security updates, and vendored code can become outdated over time.
Split arrays into fixed-size groups.
Constrain a number between lower and upper bounds.
Collapse rapid calls into one trailing invocation.
Extract lodash debounce from the monolith with helpers included.
Decode JWT payloads without verify or sign logic.
Keep values that are not in the excluded array.
Keep values not matched by an iteratee.
Extract lodash flattenDepth from the monolith with helpers included.
Read deep values from dynamic paths.
Extract lodash get from the monolith with helpers included.
Group items by an iteratee result.
Check whether a deep path exists.
Extract lodash has from the monolith with helpers included.
Detect real Symbol support across runtimes.
Detect arguments objects across standard and legacy shapes.
Fallback Array.isArray in one tiny file.
Check whether a value is empty by lodash rules.
Compare values deeply with lodash semantics.
Check whether a value is null or undefined.
Detect regular expressions across modern and legacy edge cases.
Index items by an iteratee result.
Cache function results with lodash semantics.
A function that intentionally does nothing.
Object.assign shim with symbol-aware copy semantics.
Object.is shim with SameValue semantics.
Classic Object.keys shim in one vendorable file.
Run a function once and reuse the result.
Write deep values into dynamic paths.
Extract lodash set from the monolith with helpers included.
Remove ANSI escape sequences from terminal output.
Limit repeated calls to a steady rate.
Extract lodash throttle from the monolith with helpers included.
Walk, map, clone, and edit nested objects recursively.
Deduplicate primitive values with lodash behavior.
Deduplicate values using an iteratee.
Extract lodash uniqBy from the monolith with helpers included.