Skip to content

Instantly share code, notes, and snippets.

@phillipalexander
Last active March 17, 2024 12:22
Show Gist options
  • Star 38 You must be signed in to star a gist
  • Fork 22 You must be signed in to fork a gist
  • Save phillipalexander/9244143 to your computer and use it in GitHub Desktop.
Save phillipalexander/9244143 to your computer and use it in GitHub Desktop.
Source Code Search Engines You Can Use For Programming Projects

Source Code Search Engines

NOTE: This list is almost entirely copy/pasted from THIS awesome article. I've made my own personal edits (adding some additional content) which is why I keep it here.

Every day meanpath crawls over 200 million websites capturing the visible text, HTML source code, CSS and Javascript. This information is used by many companies to monitor the growth of web facing technology.

Code search engine

Ohloh Code says it is one of the largest and more comprehensive code search engines with more than 10%2B billion lines of code indexed and updated FOSS software directories. We did give it a mention when Danny showed us how to enhance our coding skills by contributing to an Open source project. Ohloh is the upgraded face of Koders.com and is also freely available and freely editable by its community. It indexes all text files for search and has syntax highlighting support for 43 programming languages. The search query syntax supported by the service gives you the flexibility to search for different code classes. The search engine presently does not support regular expressions.

Code search engine

Krugle is an open source search portal which taps into open source search repositories like Apache, JavaDocs, and SourceForge among others. You can search for code in C%2B%2B, Java, Perl, Python, SQL, Ruby, XML, HTML etc.  It is powered by OpenSearch. Krugle also has an advanced search feature that can help you narrow down to the right APIs, libraries, sample code or documentation. From the results page, you can browse to the project developed with the code.

Code search engine

SearchCode sifts through 16 billion lines of open source code from code repositories like GitHub, BitBucket, CodePlex, SourceForge, Fedora and more. The code and documentation search engine is maintained by a single developer. You can use filters like file extensions, specific repo name and URL, regular expressions, and special characters. Specific examples and documentation search support is listed on the Examples page.

Code search engine

NerdyData.com is a spic ‘n span source code search engine that just had a limited launch. The site claims to have indexed over 140 million webpages for code. If you are a web developer, you will find it of interest because it searches for HTML markup, JavaScript code, or CSS style code snippets. But NerdyData aims to be more than a simple search engine for code as it also is trying to develop a whole list of features around the web development process.

You can also search for documentation; you can do a comparative search to visualize on how many domains a term appears; and you can do a competitor analysis by checking which websites have their code. NerdyData has a free basic plan which lets you do 200 credit searches. Each search feature has a credit score attached to it. You can check out the three pricing plans and try it out with the free features first.

Symbol Hound

Code search engine

Google and other search engines aren’t that good when it comes to searching with special symbols. Google for instance, strips away many punctuation marks and special symbols, if not all. Google does recognize some and here’s a list which you can refer to. So, searching with regular search engines might not return the desired output if you are searching for variable or error codes with special characters. Symbol Hound is an alternative search engine that can help here.

Merobase

Code search engine

Merobase is a different kind of search engine that helps you search and locate software components. Merobase does search for source code, but it also – and more importantly – can search for software components which are the discrete building blocks of software. It is a module that packages a set of functions. Component-Based Development (CBD) involves the creation of software from pre-written components. Merobase can search for interfaces with simple text based queries. You can also search with function-based, object-oriented, name-based, and test-driven queries. This abstract search method is a highlight of this engine. Merobase searches for components written in Java, C%2B%2B, and C Sharp.

Source

@Rohit58
Copy link

Rohit58 commented Jan 5, 2018

very helpful, thanks

@scottie
Copy link

scottie commented Aug 26, 2023

neat

@drkvogel
Copy link

None of these seem to work any more.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment