A copy-paste registry for npm dependencies.

Preserve behavior, not packages.

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.

Browse snippets 36 snippets
What This Is

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.

What This Is Not

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.

Curation

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.

When Snippets Fit

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.

When Packages Fit

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.

lodash.chunk

chunk

MIT

Split arrays into fixed-size groups.

raw + normalized
lodash.clamp

clamp

MIT

Constrain a number between lower and upper bounds.

raw + normalized
lodash.debounce

debounce

MIT

Collapse rapid calls into one trailing invocation.

raw + normalized
lodash

debounce (from lodash)

MIT

Extract lodash debounce from the monolith with helpers included.

raw + normalized
jsonwebtoken

decode (from jsonwebtoken)

MIT

Decode JWT payloads without verify or sign logic.

raw + normalized
lodash.difference

difference

MIT

Keep values that are not in the excluded array.

raw + normalized
lodash.differenceby

differenceBy

MIT

Keep values not matched by an iteratee.

raw + normalized
lodash

flattenDepth (from lodash)

MIT

Extract lodash flattenDepth from the monolith with helpers included.

raw + normalized
lodash.get

get

MIT

Read deep values from dynamic paths.

raw + normalized
lodash

get (from lodash)

MIT

Extract lodash get from the monolith with helpers included.

raw + normalized
lodash.groupby

groupBy

MIT

Group items by an iteratee result.

raw + normalized
lodash.has

has

MIT

Check whether a deep path exists.

raw + normalized
lodash

has (from lodash)

MIT

Extract lodash has from the monolith with helpers included.

raw + normalized
has-symbols

hasSymbols

MIT

Detect real Symbol support across runtimes.

raw + normalized
is-arguments

isArguments

MIT

Detect arguments objects across standard and legacy shapes.

raw + normalized
isarray

isarray

MIT

Fallback Array.isArray in one tiny file.

raw + normalized
lodash.isempty

isEmpty

MIT

Check whether a value is empty by lodash rules.

raw + normalized
lodash.isequal

isEqual

MIT

Compare values deeply with lodash semantics.

raw + normalized
lodash.isnil

isNil

MIT

Check whether a value is null or undefined.

raw + normalized
is-regex

isRegex

MIT

Detect regular expressions across modern and legacy edge cases.

raw + normalized
lodash.keyby

keyBy

MIT

Index items by an iteratee result.

raw + normalized
lodash.memoize

memoize

MIT

Cache function results with lodash semantics.

raw + normalized
lodash.noop

noop

MIT

A function that intentionally does nothing.

raw + normalized
object.assign

objectAssign

MIT

Object.assign shim with symbol-aware copy semantics.

raw + normalized
object-is

objectIs

MIT

Object.is shim with SameValue semantics.

raw + normalized
object-keys

objectKeys

MIT

Classic Object.keys shim in one vendorable file.

raw + normalized
lodash.once

once

MIT

Run a function once and reuse the result.

raw + normalized
lodash.set

set

MIT

Write deep values into dynamic paths.

raw + normalized
lodash

set (from lodash)

MIT

Extract lodash set from the monolith with helpers included.

raw + normalized
strip-ansi

stripAnsi

MIT

Remove ANSI escape sequences from terminal output.

raw + normalized
lodash.throttle

throttle

MIT

Limit repeated calls to a steady rate.

raw + normalized
lodash

throttle (from lodash)

MIT

Extract lodash throttle from the monolith with helpers included.

raw + normalized
traverse

traverse

MIT

Walk, map, clone, and edit nested objects recursively.

raw + normalized
lodash.uniq

uniq

MIT

Deduplicate primitive values with lodash behavior.

raw + normalized
lodash.uniqby

uniqBy

MIT

Deduplicate values using an iteratee.

raw + normalized
lodash

uniqBy (from lodash)

MIT

Extract lodash uniqBy from the monolith with helpers included.

raw + normalized