Skip to content

sourcegraph/search-badger

Repository files navigation

Sourcegraph Search Badger

build code style: prettier

NodeJS microservice for serving Sourcegraph search count badges.

Query Parameters

Name Description
q The search query to execute
label The text on the left side (default: the search query)
suffix The suffix on the right side after the number of results (default: none)

Develop

# Install dependencies
npm install

# Build TypeScript
npm run build

# Start server
npm start

Environment Variables

Name Default
API_URL https://sourcegraph.com/.api/graphql

Badger