QuickSnip LogoA light blue logo with a thunderbolt in bracketsQuickSnip
terminal

$ npx shadcn add quicksnip.dev/r/debounce.json

✔ Created 1 file:

- lib/debounce.ts ✓ verified

import { debounce } from "@/lib/debounce";

 

const search = debounce( (q) => fetchResults(q), 300);

search.cancel(); // typed, tested, yours

  • Verified by tests

    Verified snippets are typed and run through unit tests in CI, so edge cases are handled before code reaches your project.

  • Built for AI agents

    llms.txt, a JSON API and stable snippet IDs give AI coding tools a trusted source to install from instead of generating code from scratch.

  • One-command install

    Every JavaScript and TypeScript snippet is a shadcn registry item. Run one command and the file lands in your lib folder.

  • You own the code

    No package to update and no runtime dependency. The code is copied into your project for you to read, change and keep.

  • Many languages

    One snippet, many implementations: TypeScript, Python, Java, C++, Rust, Ruby, CSS and more, side by side.

  • Made by the community

    Hundreds of snippets written and reviewed by developers around the world. Add yours and get credited on every page.

Use it your way

The same snippets, three ways in.

Support the project
And get a special 💖 Prime Supporter role in our Discord server.
Buy Me a Coffee at ko-fi.com