omp packages

pi-web-lookup0.1.1

Lets Pi look things up on the web with no search API key: docs, pricing, papers and any URL, as markdown

pringled Published 2 days ago MIT ~0 downloads/mo

Untested on omp

This is a pi package. No one has reported whether it works on omp yet. If you try it, add your result below.

Did it work for you?

Result

One report per person. A new report replaces your old one.

Reports 0

No reports yet.

Readme

pi-web-lookup

Lets Pi look things up on the web with no search API key. It adds one tool, web_fetch, which takes a URL and returns the page's main content as markdown, without the menus, scripts and footers.

pi-web-lookup demo
pi install npm:pi-web-lookup

Usage

Give Pi a URL, or ask it to look something up, for example "what does GPT-5 cost per million tokens?", "find the paper that introduced LoRA" or "how do I configure hooks in Claude Code?". Pi fetches the pages and reads them.

  • HTML becomes markdown with headings, lists, links, tables and code. Sites that serve markdown themselves (many docs sites do) send that instead.
  • Text and markdown come back as they are, JSON indented and a sitemap as a list of its pages. A file on GitHub comes back as its raw text.
  • A long page is cut, with the full text saved to a file Pi can read the rest from.

How it finds pages

Most searches are for docs, pricing, papers and code on sites the model already knows. Many docs sites list their pages in /llms.txt or /sitemap.xml, so Pi fetches those first when it knows the site but not the page. Papers and facts come from Crossref, arXiv and Wikipedia, which need no key, and GitHub from the gh CLI, or its API when gh isn't installed.

Unlike pi-web-access and other search extensions, this needs no API key (for example, for OpenAI, Brave, Exa or Tavily). You still need one of those for broad, open-ended questions (comparisons, news, blog posts), and sites that require JavaScript or a login won't work, but for day-to-day lookups this covers most of it.

License

MIT