Skip to main content

Search

JJHub provides full-text search across the platform. You can search for repositories, issues, code, and users from the CLI or via the API. Search results are paginated and can be filtered, sorted, and output as JSON for programmatic use.

CLI Search Commands

Search Repositories

Find repositories by name, description, or topic.
Example output:

Search Issues

Search across issue titles and bodies.
Example output:

Search Code

Search file contents across repositories.
Example output:

API Search Endpoints

All search endpoints are under /api/search/ and accept a q query parameter. Results are paginated using standard JJHub pagination (see Pagination).
Search endpoints have a stricter rate limit of 30 requests per minute, separate from the general API rate limit of 5,000 requests per hour.

Search Repositories

Query parameters: Response (200 OK):

Search Issues

Query parameters: Response (200 OK):

Search Code

Query parameters: Response (200 OK):

Search Users

User search is available via the API only (no CLI command).
Query parameters: Response (200 OK):

Pagination

Search results follow JJHub’s standard cursor-based pagination model. Use the cursor and limit query parameters to navigate through results. The response includes:
  • next_cursor field in the response body for fetching the next page
  • Link header with rel="next" URL for navigating pages
  • X-Total-Count header with the total number of matching results
In the CLI, use --limit to control the number of results returned in a single request:
See the Pagination guide for full details on how pagination works across the API.

JSON Output for Programmatic Use

All CLI search commands support --json output for scripting and automation:
For AI and LLM pipelines, use --toon output (Token-Oriented Object Notation) which produces the same data in a format optimized for token efficiency:

Search Tips

Exact Phrases

Wrap your query in double quotes to search for an exact phrase:

Combining Terms

Multiple words are matched as an AND query by default — all terms must be present:

Common Patterns

Find all repositories by a user:
Find open issues about a specific topic:
Find code referencing a specific function:
Find code in a specific language:

Rate Limiting

Search endpoints are rate-limited separately from the rest of the API: When you exceed the search rate limit, the API returns 429 Too Many Requests with standard rate limit headers:
See the Rate Limiting guide for more details.

API Reference