Skip to main content

surface-haystack

Surface checks a short link before your agent opens it. The answer is fetch or skip. It never returns the page. A hop or a 1×1 pixel counts the same way, with no install. Free for the first million requests a month. https://nova-otter-delta-cloud.grok.me

This package gives Haystack agents that check as one ready-made tool: surface_preflight / SurfacePreflight.

Surface by Canada Site Ops. Ontario, Canada.

Get a free API key in about 10 seconds

No email, no card. Then set SURFACE_KEY or SURFACE_API_KEY. The tool sends it as Authorization: Bearer <key>.

curl -s -X POST https://nova-otter-delta-cloud.grok.me/v1/keys
# returns {"key","created_at","free_monthly":1000000,"usage_url"}
export SURFACE_KEY=...       # or SURFACE_API_KEY; paste the key value

A key gets its own million free requests a month. The tool also runs without a key on a shared demo limit.

python -m surfaceapi init
python -m surfaceapi preflight https://youtu.be/jNQXAC9IVRw

The first command writes .env. The second reads that key and calls POST /v1/preflight. The answer is fetch or skip.

Install

pip install surface-haystack
from surface_haystack import SurfacePreflight, surface_preflight

print(SurfacePreflight().run(url="https://youtu.be/jNQXAC9IVRw"))
# or give the Tool to a Haystack Agent / ToolInvoker: tools=[surface_preflight]

The tool returns next: fetch or next: skip, plus where the link really goes (unwraps t.co, bit.ly, lnkd.in, youtu.be). It never downloads the page. On any error it answers skip.

Prefer MCP?

Mint a key first, then paste this into your MCP settings (tool preflight_url):

{
  "mcpServers": {
    "surface": {
      "type": "http",
      "url": "https://nova-otter-delta-cloud.grok.me/mcp",
      "headers": {
        "Authorization": "Bearer REPLACE_WITH_YOUR_KEY"
      }
    }
  }
}

Also listed

Metadata

Release files for surface-haystack 0.1.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for surface-haystack 0.1.3
File Size Uploaded Provenance Actions
surface_haystack-0.1.3.tar.gz 3.8 kB Without provenance Details for surface_haystack-0.1.3.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for surface-haystack 0.1.3
File Interpreter ABI Platform Actions
surface_haystack-0.1.3-py3-none-any.whl Python 3 none any Details for surface_haystack-0.1.3-py3-none-any.whl

Total release size: 8.7 kB

Release files / surface_haystack-0.1.3.tar.gz

Download URL surface_haystack-0.1.3.tar.gz
Size 3.8 kB
Tags Source
SHA-256 checksum
How to use checksums
f122b03b856d34dffb41ef0daa52c7bb3946a12bf36f40fba59b352a4cee1c6b
BLAKE2b-256 checksum
How to use checksums
74bbd7bccfb02bd3bd0f1e485bee19615116f498af390bd72037765732b9eb85
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.5

Release files / surface_haystack-0.1.3-py3-none-any.whl

Download URL surface_haystack-0.1.3-py3-none-any.whl
Size 4.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c36494ff6d724919007f4a58dc004e1ed747a26f1e4be3268b1d90bdab024a0e
BLAKE2b-256 checksum
How to use checksums
cdf17b49585d0818cd4a0f3eaf62545876e14bd426283a442f37747fdac31e25
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.5

Security for surface-haystack 0.1.3

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page