QuickSnip LogoA light blue logo with a thunderbolt in bracketsQuickSnip

Contributing to QuickSnip

Hey there! 👋 Thanks for taking the time to contribute. QuickSnip exists because of people like you.

The full guide lives at quicksnip.dev/guide/contributing/how-to-contribute. This page is the short version.

Ways to help

Before you build a new feature, open a discussion. PRs for undiscussed features may be closed.

Snippet format

Each snippet is a folder: snippets/<category>/<name>/. The folder name is the snippet's permanent ID.

snippets/string/slugify/
├── meta.json         # title, description, tags, contributors, usage
├── slugify.ts        # TypeScript implementation (exported)
├── slugify.test.ts   # Vitest tests → makes the snippet "verified"
└── slugify.py        # other languages, one file each
{
  "title": "Slugify",
  "description": "Converts a string into a URL-friendly slug, stripping accents and symbols.",
  "tags": ["url", "seo"],
  "contributors": ["your-github-username"],
  "usage": {
    "ts": ["slugify(\"Hello World!\"); // \"hello-world\""]
  }
}

Rules:

Before you open a PR

npm install
npm run snippets:check   # validates all snippet folders
npm test                 # runs the tests
npm run dev              # preview at http://localhost:3000/snippets

Is it a good snippet?

Code of Conduct

Please be kind and follow our Code of Conduct.