DEV Community

Cover image for Snipt: Search Engine for Code Snippets
Julien for Codiga

Posted on

Snipt: Search Engine for Code Snippets

Here at Codiga, are excited to announce the release of, a search engine for code snippets. Code Snippets are very popular for developers but the ecosystem of tools is very fragmented and not unified. For example, it has to have a single source of truth for all snippets.

Developers are often looking for snippets to use and spend hours searching on Google, StackOverflow of Sourcegraph. To fix this problem, we built a one-stop shop for searching for code you can reuse.

Wait, what is a Code Snippet?

A Code Snippet is a block of code you can share and reuse. By reusing safe and proven code, you not only improve your productivity but you also make sure you always import the correct code and are not missing anything (e.g. missing argument, not checking error code or exceptions).

By using rock-solid, proven code, you avoid many common pitfalls and mistakes developers already did. You find the correct block of code to reuse to focus on what matters: shipping code and improving a product.

But why would I use a Code Snippet?

Because we too often do not remember all the details to write a block of code. What parameters a function takes if there are some mandatory or optional parameters and what are their types! By using Code Snippet, you directly use vetted code patterns directly in your IDE and maximize your productivity.

So now, what is is a search engine for code snippets. No more googling for hours, it finds the right snippet for you. For example, if you look for “react typescript”, will only show snippets related to TypeScript appear while “react javascript” will show you only snippets related to JavaScript (and obviously, react).

Code Snippet Search is built to be blazing fast and results are suggested as you type, showing you the most relevant snippets for your query.

Adding your own snippets

The engine indexes and searches snippets from the Codiga platform. To add your own snippet to, simply add snippets on the Codiga platform: they will be automatically indexed and visible on Adding snippets is very easy and can be done directly from your IDE using Codiga plugin (see VS Code, JetBrains, or Chrome plugins). You can find more information in the Contribute section of

And of course, it’s open source! has been designed using popular open-source libraries (NextJs, GraphQL) and it was natural for us to share this project with the community. You can find this project on GitHub. If you have any comments or issues to report, please open an issue on the GitHub project.

Link to the announcement on the Codiga blog here

Discussion (0)