# Searching

OnePub's search interface is based on pub.dev to provide a familiar interface.

{% hint style="info" %}
Search both public and private packages via a single interface.
{% endhint %}

One of our design objectives was to provide a single interface to search both public and private packages so you don't need to keep switching between pub.dev and onepub.dev.

As such the OnePub search interface provide the same set of features as pub.dev and is a viable alternative for searching the full list of public packages hosted on pub.dev.

{% hint style="info" %}
If you use a public package we still recommend that you `like` it on pub.dev as this is an important signal of quality to other developers.
{% endhint %}

![](/files/jgWml80Vylr88hGM0ylB)

The advanced search option allows you to select to search only public or private repositories as well as the standard set of search criteria you are used to seeing on pub.dev.

<img src="/files/0AFQG79GJhLjVf3hHjVa" alt="" data-size="original">

{% hint style="info" %}
OnePub has a live feed from pub.dev so the list of public packages is always up to date.
{% endhint %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.onepub.dev/guides/searching.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
