4. Data Plane, SQL & VFS
AI-Agent-First Documentation
Raw .md/SKILL.md
Prompt your Agent: "Show me how to scrape a domain into a VFS Knowledge Vault using open-web-scraper (:8661) and how video uploads are transcoded via open-video-worker (:8089)."

Valstorm Web Intelligence & Scraping Service (apps/web-scraper)

High-performance, multi-tenant web scraping, crawler, RSS feed monitoring, and visual diff microservice powered by native Python 3.14 Zstandard (zstd) compression, Valkey single-flight locks, and direct Virtual File Service (VFS) Knowledge Vault ingestion via valstorm-client.


Key Features

  1. 3-Tier Waterfall Pipeline:
  • Tier 1 (Fast HTTP): Async HTTP via httpx with HTTP/2 and Brotli/Gzip decoding.
  • Tier 2 (Stealth Playwright): Headless Chromium with stealth evasion scripts, canvas spoofing, and JavaScript rendering.
  • Tier 3 (Firecrawl Cloud Fallback): Automated cloud fallback for complex Cloudflare Turnstile or Akamai challenges.
  1. Native Python 3.14 Zstandard Compression (PEP 784):
  • High-ratio zstd binary storage in the database with Valkey L1 cache.
  • 70-85% payload token reduction compared to raw HTML.
  1. SSRF Guard:
  • Strict IP resolution checks blocking access to private, loopback, link-local, and cloud metadata addresses (169.254.169.254, 10.0.0.0/8, 192.168.0.0/16, 127.0.0.0/8).
  1. Virtual File Service (VFS) Ingestion Sink:
  • Seamlessly ingests scraped markdown snapshots into Valstorm Knowledge Vaults via valstorm-client (client.files.* and client.vfs.*).
  • Authenticated with machine-to-machine ServiceKeyAuth.
  1. Domain Crawler & RSS Feeds:
  • Concurrent link discovery and domain crawling with bounded parallelism.
  • Real-time RSS 2.0 / Atom feed polling and web content visual diffing.

API Routes

  • POST /v1/scrape — Scrapes a single URL with 3-tier waterfall and optional ingest_to_vfs=true.
  • POST /v1/scrape/batch — Scrapes an array of URLs with bounded concurrency.
  • POST /v1/crawl — Crawls internal pages across a domain with optional VFS vault ingestion.
  • POST /v1/search — Performs live web search queries and returns cleaned snippets.
  • POST /v1/feed/poll — Polls RSS/Atom news feeds for recent articles.
  • POST /v1/diff — Compares live web content against archived snapshots to detect changes.
  • GET /v1/stats — Metrics on compression ratios, cache hit rates, and tier utilization.

Running Locally

bash
# Install dependencies with uv
cd apps/web-scraper
uv sync

# Run test suite
uv run pytest tests/

# Start FastAPI server
uv run uvicorn app.main:app --host 0.0.0.0 --port 8661

License & Commercial Terms

Valstorm Web Intelligence & Scraping Service is distributed under a Dual License model:

  • Noncommercial Use (Community & Academic): Licensed under the PolyForm Noncommercial License 1.0.0. You are free to run, inspect, and evaluate the scraper for personal, hobby, or educational purposes without fees.
  • Commercial & Enterprise Use: Any commercial use—including running internal business operations, powering SaaS backends, managed hosting, or client consulting deliverables—requires a commercial agreement.

For commercial licensing, enterprise BYOC terms, or official partner programs:

See CONTRIBUTING.md for community guidelines and development policies.

text
Copyright (c) 2026 Valstorm LLC. All rights reserved.

Built by <a href="https://www.valstorm.com/register?utm_source=github&utm_medium=readme&utm_campaign=valstorm_web_scraper&utm_content=footer_cta"><strong>Valstorm</strong></a> — The everything engine for business operations. </p>


Valstorm Dedicated Video Worker (apps/video-worker)

Dedicated, asynchronous microservice handling video transcoding, FFmpeg transformations, speech-to-text generation, AI metadata extraction, and platform synchronization powered by the valstorm-client SDK.

Features

  • Queue Consumer: Consumes video processing tasks from valstorm:queue:video.
  • Transcoding Engine: Multi-preset FFmpeg pipeline (fast_copy, balanced, compressed) with smart container fallback.
  • Audio & Captions: Extracts audio tracks and triggers speech-to-text with Deepgram Nova-3 / Whisper.
  • AI Multimodal Metadata: Generates SEO-ready titles, descriptions, YouTube chapters, and summaries.
  • Platform Synchronization: Interacts with Valstorm Core APIs via valstorm-client (client.records.* and client.query.*) authenticated via ServiceKeyAuth.
  • Healthchecks: Integrated HTTP server on port 8080 (/health) and Redis worker heartbeat.

Local Development

bash
cd apps/video-worker
uv sync
python -m main

License & Commercial Terms

Valstorm Dedicated Video Worker is distributed under a Dual License model:

  • Noncommercial Use (Community & Academic): Licensed under the PolyForm Noncommercial License 1.0.0. You are free to run, inspect, and evaluate the worker for personal, hobby, or educational purposes without fees.
  • Commercial & Enterprise Use: Any commercial use—including running internal business operations, powering SaaS backends, managed hosting, or client consulting deliverables—requires a commercial agreement.

For commercial licensing, enterprise BYOC terms, or official partner programs:

See CONTRIBUTING.md for community guidelines and development policies.

text
Copyright (c) 2026 Valstorm LLC. All rights reserved.

Built by <a href="https://www.valstorm.com/register?utm_source=github&utm_medium=readme&utm_campaign=valstorm_video_worker&utm_content=footer_cta"><strong>Valstorm</strong></a> — The everything engine for business operations. </p>