https://github.com/hmarr/grephub
🔍 Search GitHub repositories with regexes
https://github.com/hmarr/grephub
Last synced: about 1 year ago
JSON representation
🔍 Search GitHub repositories with regexes
- Host: GitHub
- URL: https://github.com/hmarr/grephub
- Owner: hmarr
- License: mit
- Created: 2019-07-20T17:11:36.000Z (almost 7 years ago)
- Default Branch: main
- Last Pushed: 2023-03-15T04:35:31.000Z (over 3 years ago)
- Last Synced: 2025-05-07T09:12:08.117Z (about 1 year ago)
- Language: JavaScript
- Homepage: https://grephub.hmarr.dev
- Size: 5.31 MB
- Stars: 11
- Watchers: 2
- Forks: 1
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## grephub
Search GitHub repositories with regexes. GrepHub is like `git grep`, but for every repository on GitHub.
Just replace "github.com" in a repository's URL with "grephub.hmarr.dev", and you're all set.
For instance, to search lodash, go to https://grephub.hmarr.dev/lodash/lodash.
### Caveats
- This is an experiment that may be shut off at any minute
- It doesn't use an index so it's kind of slow and it won't work well with large repositories
- Streaming the whole repository from GitHub for each query is a terrible idea for a variety of reasons
### Similar projects
The following projects all make it really fast to search specific set of repositories. They index the code in the repositories so your queries will be lightning-fast, but the downside is you need to know which repositories you want to search before searching them.
- [Hound](https://github.com/hound-search/hound)
- [Zoekt](https://github.com/google/zoekt)
- [Livegrep](https://github.com/livegrep/livegrep)
### Running locally
To run the frontend:
```
$ npm install
$ npm start
```
To run the backend function, make sure you have the Go toolchain installed, then run:
```
$ make build-functions
$ functions/search
```