Skip to main content

langchain-surface

Surface is the link-safety layer between an AI agent and the open web. Before your agent opens a link someone pasted, Surface checks it: it unwraps short links (t.co, bit.ly, lnkd.in, youtu.be), follows the redirects, and answers fetch or skip, along with where the link really goes. It never downloads the page for you, so it's fast and cheap.

This package gives langchain agents that check as one ready-made tool: surface_preflight.

pip install langchain-surface
from langchain_surface import surface_preflight

agent_tools = [surface_preflight]
print(surface_preflight.invoke({"url": "https://youtu.be/jNQXAC9IVRw"}))

The tool returns:

{"next": "fetch", "fetch": true, "url": "https://youtu.be/jNQXAC9IVRw",
 "final_url": "https://www.youtube.com/watch?v=jNQXAC9IVRw&feature=youtu.be",
 "final_host": "youtube.com", "status": 200, "redirects": 1, "shortener": true,
 "reason": "unwrapped youtu.be → youtube.com · alive, worth a fetch"}

Free to start

The first 1M requests a month are free. It works with no key at all (shared demo limit), or grab your own free key in one call, with no email and no card:

curl -s -X POST https://nova-otter-delta-cloud.grok.me/v1/keys
export SURFACE_API_KEY=...

After the free tier: $0.25 USD per 1,000 preflights.

Prefer MCP?

Point any MCP client at https://nova-otter-delta-cloud.grok.me/mcp (tool preflight_url).

Made by Canada Site Ops. MIT licensed.

Metadata

Release files for langchain-surface 0.1.0

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

Source distribution (sdist)

Source distribution for langchain-surface 0.1.0
File Size Uploaded Provenance Actions
langchain_surface-0.1.0.tar.gz 3.2 kB Without provenance Details for langchain_surface-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for langchain-surface 0.1.0
File Interpreter ABI Platform Actions
langchain_surface-0.1.0-py3-none-any.whl Python 3 none any Details for langchain_surface-0.1.0-py3-none-any.whl

Total release size: 7.5 kB

Release files / langchain_surface-0.1.0.tar.gz

Download URL langchain_surface-0.1.0.tar.gz
Size 3.2 kB
Tags Source
SHA-256 checksum
How to use checksums
f35e4d2c5b1f7110a69ca8ead8aec87c9f8ac822d2e7144e8648dd8200cde22f
BLAKE2b-256 checksum
How to use checksums
8d5eebbfc9fb6b7141999f676c90fd9af24875032f1df3ab263d14ab4e59522e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.5

Release files / langchain_surface-0.1.0-py3-none-any.whl

Download URL langchain_surface-0.1.0-py3-none-any.whl
Size 4.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
3dd9d5107e87a314c0cbbe1ecfe0a373d44effbfb01d6f3cb7ce788043b93e11
BLAKE2b-256 checksum
How to use checksums
f4dd57eb9ed281aa4efeb30b4de46773d81f2b0d1f6e2e2059c55ecd308a77e6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.5

Security for langchain-surface 0.1.0

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.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files No provenance

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