SPB Git

spb/tendril Public

Tendril — web ingestion platform (scrape/crawl/map/search) on macOS Apple Silicon: WebKit fidelity, authenticated pages, deterministic testable extraction. A self-hosted Firecrawl alternative.

JavaScript 82.6% TypeScript 11.8% HTML 5.3%
877 B · 33 lines javascript
Raw Blame History
1// author: simon-pierre boucher <contact@spboucher.ai>2// PM2 process definitions for Tendril on the production node (§16.3).3// The API binds to loopback only; ngrok is the sole ingress (§16.5).4const PORT = process.env.TENDRIL_PORT || "8092";56module.exports = {7  apps: [8    {9      name: "tendril-api",10      script: "apps/api/dist/main.js",11      interpreter: "node",12      cwd: process.env.TENDRIL_DIR || `${process.env.HOME}/apps/tendril`,13      env: {14        NODE_ENV: "production",15        HOST: "127.0.0.1",16        PORT,17        LOG_LEVEL: "info",18      },19      max_restarts: 20,20      restart_delay: 2000,21      kill_timeout: 65000,22    },23    {24      name: "tendril-ngrok",25      script: "/opt/homebrew/bin/ngrok",26      interpreter: "none",27      args: `http --url=www.ten-dril.com ${PORT}`,28      max_restarts: 50,29      restart_delay: 5000,30    },31  ],32};33