Search — TrueRef

Search Documentation

Find libraries and query their indexed documentation.

{#if step === 'library'}

Step 1 — Select a library

Enter a library name to find matching indexed repositories.

{#if libraryError}

{libraryError}

{/if} {#if loadingLibraries}
Searching libraries...
{:else if hasLibraryResults}
{#each libraryResults as result (result.id)} {/each}
{:else if libraryName && !loadingLibraries && libraryResults.length === 0 && !libraryError} {/if} {:else}
Selected {selectedLibraryTitle}

Step 2 — Query documentation

Ask a question about this library.

{#if snippetError}

{snippetError}

{/if} {#if loadingSnippets}
Fetching documentation snippets...
{:else if hasSnippets}

{snippets.length} snippet{snippets.length === 1 ? '' : 's'} · {totalTokens.toLocaleString()} tokens

{#each snippets as snippet, i (i)} {/each}
{:else if query && !loadingSnippets && snippets.length === 0 && !snippetError}

No snippets found for that query.

Try a different question or select another library.

{/if} {/if}