Skip to the page

SpecStream for Neon

SpecStream is the live web data engine for teams and agents. A Neon Function searches the live web with SpecStream and saves each page it finds to a table in your Neon Postgres, next to the data your app already reads.

What you get

One table of sources
Each search upserts its pages into web_sources, keyed by query and URL, with the title, snippet and the time it was read.
A caller token in front
A Neon Function URL is public, so the handler checks its own Bearer token before it spends anything from your SpecStream key.
Keys out of the code
neon.ts declares SPECSTREAM_API_KEY and CALLER_TOKEN, and neon deploy reads both from your .env file.

Set it up

  1. Create the web_sources table in Neon's SQL Editor.
  2. Add functions/websearch.ts and declare it in neon.ts with SPECSTREAM_API_KEY and CALLER_TOKEN in its env.
  3. Run neon deploy --env .env.local, then POST a question to the function's URL with your caller token.

The full setup guide has every step, with what to do if something doesn’t arrive.

Live web data, in Neon.

Ask in your own words for companies, places, people, filings or anything else the web lists.