Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
N

neo

> AI 编程
Open source

Turn any web app into an API. Chrome extension captures browser traffic, auto-generates schemas, lets AI replay APIs directly. No official API needed.

745 stars0 likes4 views
WebsiteGitHub

About

Turn any web app into an API. Chrome extension captures browser traffic, auto-generates schemas, lets AI replay APIs directly. No official API needed.

Neo

Turn any web app into an API. No official API needed. No browser automation.

Neo is a Chrome extension that passively captures every API call your browser makes, learns the patterns, and lets AI (or you) replay them directly.

The Problem

AI agents operating web apps today have two options, both bad:

Approach Pain
Official APIs Most SaaS doesn't have one, or only exposes 10% of features
Browser automation Screenshot → OCR → click. Slow, fragile, breaks on every UI change

Neo is the third way. Every web app already has a complete internal API — the frontend calls it every time you click something. Neo captures those calls and makes them replayable.

v2: Now with UI automation. Neo v2 adds an accessibility-tree-based UI layer — snapshot, click, fill, type, press, hover, scroll, select, screenshot, get, wait. When an API exists, use it directly. When it doesn't, Neo can drive the UI through the same CLI. One tool, both layers.

How It Works

Browse normally → Neo records all API traffic → Schema auto-generated → AI replays APIs directly
                                                                      → Or drives UI via a11y tree

1. Capture (always-on)

The Chrome extension intercepts every fetch() and XMLHttpRequest — URLs, headers, request/response bodies, timing, even which DOM element triggered the call.

2. Learn

Run neo-schema on a domain to auto-generate its API map: endpoints, required auth headers, query parameters, response structure, error codes.

3. Execute

Run API calls inside the browser tab's context via Chrome DevTools Protocol. Cookies, CSRF tokens, session auth — all inherited automatically. No token management needed.

Supported Browsers

Browser Type Best for
Chrome / Chromium Full browser API capture + UI automation (default)
Lightpanda Headless (Zig) AI agents, scraping — 11x faster, 9x less memory

Quick Start

bash
git clone https://github.com/4ier/neo.git
cd neo && npm install && npm run build
npm link  # makes `neo` available globally

Load the extension:

  1. Open chrome://extensions
  2. Enable "Developer mode"
  3. Click "Load unpacked" → select extension/dist/
  4. Browse any website — Neo starts capturing immediately

Lightpanda (headless, no extension needed)

bash
# Install Lightpanda
curl -L -o lightpanda https://github.com/lightpanda-io/browser/releases/download/nightly/lightpanda-x86_64-linux
chmod +x lightpanda && sudo mv lightpanda /usr/local/bin/

# Configure Neo to use Lightpanda
# In ~/.neo/config.json:
# { "chromePath": "/usr/local/bin/lightpanda", "browserType": "lightpanda", "cdpPort": 9222 }

neo start    # launches Lightpanda CDP server
neo connect  # attach to it
neo open https://example.com
neo snapshot # full a11y tree

CLI Tools

All commands go through a single CLI: neo .

Requires a browser with CDP (Chrome DevTools Protocol) enabled.

…

Sessions & Multi-App Support

Neo isn't just for Chrome. Any app with CDP support works — including Electron apps:

bash
# Launch VS Code with CDP and connect
neo launch code --port 9230
neo snapshot                # See VS Code's accessibility tree
neo click @14               # Click a menu item

# Or connect to an already-running Electron app
neo connect --electron slack

# Inject Neo's capture script into any CDP target
neo inject --persist        # Survives page navigation
neo inject --tab slack      # Target specific tab

Sessions are saved automatically. Switch between them with --session:

bash
neo --session vscode snapshot
neo --session chrome api x.com HomeTimeline

UI Automation (v2)

Neo v2 adds a full UI interaction layer built on the accessibility tree — no screenshots, no coordinates, no pixel-matching:

bash
# 1. Take a snapshot — each interactive element gets a @ref
neo snapshot
#  @1  button "Sign in"
#  @2  textbox "Search"
#  @3  link "Pricing"

# 2. Interact by @ref
neo click @1
neo fill @2 "AI agents"
neo press Enter
neo screenshot results.png --full

This gives AI agents a fast, semantic way to interact with any UI. Combine with API capture for a dual-channel approach: use APIs when they exist, fall back to UI when they don't.

The bridge creates a persistent WebSocket channel between the extension and CLI. The extension auto-connects to ws://127.0.0.1:9234 and streams every capture in real-time. In interactive mode, you can query the extension directly: ping, status, capture.count, capture.list, capture.domains, capture.search, capture.clear.

Architecture

…

Real-World Demo

Post a tweet via captured API

bash
# 1. Browse X normally — Neo captures GraphQL mutations
neo schema show api.x.com

# 2. Find the CreateTweet endpoint
neo capture search "CreateTweet" --method POST

# 3. Replay with the original auth (cookies inherited automatically)
neo replay abc123 --tab x.com

# 4. Or craft a new call with auto-detected auth headers
neo exec "https://x.com/i/api/graphql/.../CreateTweet" \
  --method POST --auto-headers \
  --body '{"variables":{"tweet_text":"Hello from Neo!"},...}'

Understand what a button does

Neo's trigger tracking maps UI interactions to API calls:

bash
neo schema show github.com
# Output includes:
#   POST /repos/:owner/:repo/star  (3x, 280ms)
#     ← click button.js-social-form "Star" (3x)

Live-monitor API traffic

bash
neo capture watch api.openai.com
# 14:23:01  POST 200 /v1/chat/completions (1230ms)
# 14:23:05  SSE_MSG 200 /v1/chat/completions (0ms) [sse]

Storage

  • Per-domain cap: 500 captures max per domain, oldest auto-cleaned
  • Body truncation: Response bodies capped at 100KB
  • Location: Chrome's IndexedDB (neo-capture-v01 database)
  • Schemas: Exportable as JSON files for persistence across devices

Smart Filtering

The interceptor ignores noise automatically:

  • Static assets (images, fonts, CSS, JS bundles)
  • Analytics/tracking (Google Analytics, Meta Pixel, Sentry, etc.)
  • Browser internals (chrome-extension://, data:, blob:)
  • Rate limiting: Max 3 captures per URL pattern per minute (prevents polling endpoint bloat)

Security & Privacy

Neo runs entirely locally — no external servers, no telemetry, no data leaves your machine.

What Neo captures: Every fetch/XHR/WebSocket call your browser makes on every website. This is powerful but invasive by design.

Auth header redaction (v1.1.0+): Auth header values (Bearer tokens, CSRF tokens, cookies, session IDs) are redacted at capture time before storage. IndexedDB only stores header names, not values. When --auto-headers executes an API call, it fetches live auth headers from the browser in real-time via CDP — never replays stored credentials.

What you should know:

Aspect Detail
Capture scope `` — Neo sees traffic on every website, including banking, email, medical portals
Content script Runs in MAIN world (shares JS context with pages) to intercept fetch/XHR
CDP port CLI requires Chrome on port 9222 — any local process can connect to this port
Response bodies Stored in IndexedDB (truncated to 100KB) — may contain personal data from API responses
Schema files Store only endpoint structure (paths, header names, response shapes) — no credentials or user data
Export neo capture export redacts auth by default; --include-auth requires explicit opt-in

Recommendations:

  • Review captured domains periodically: neo capture domains
  • Prune sensitive captures: neo capture clear banksite.com
  • Don't install Neo on shared machines where others have local access
  • The CDP port (9222) should not be exposed beyond localhost

Neo is a developer tool that trades privacy surface for capability. Use it knowingly.

Tech Stack

  • TypeScript, Vite (multi-entry build)
  • Chrome Manifest V3
  • Dexie.js (IndexedDB wrapper)
  • Chrome DevTools Protocol for CLI ↔ browser communication
  • No backend server, no external dependencies at runtime

Roadmap

  • Extension: capture + store + command-driven workflow
  • CLI tools: unified neo CLI with subcommands
  • Storage management: per-domain caps, auto-cleanup, rate limiting
  • Schema: browser-side analysis, URL normalization, body structure extraction
  • Smart filtering: static assets, analytics, duplicate suppression
  • WebSocket capture (open/close/send/recv with throttling)
  • Capture replay: neo replay re-executes captured calls
  • Import/export: cross-device capture migration
  • Smart API call: neo api with schema lookup + auto-auth
  • Flow analysis: neo flows discovers API call sequences
  • Dependency chains: neo deps finds response→request data flow
  • Schema versioning with diff detection and history
  • Diagnostics: neo doctor for setup verification
  • Pure function extraction + 73 unit tests + CI
  • Agent skill export: neo export-skill generates SKILL.md
  • Mock server: neo mock generates local HTTP server from schema
  • HAR 1.2 export format for Postman/Charles/devtools interop
  • OpenAPI 3.0 spec generation from captured schemas
  • Batch schema generation (--all)
  • Semantic endpoint labeling (neo label)
  • Multi-step workflow discovery and execution (neo workflow)
  • Session management: neo connect, neo sessions, --session flag
  • Electron support: neo launch, neo connect --electron
  • Tab management: neo tab list/switch targets
  • Script injection: neo inject with --persist and --tab
  • v2 UI layer: snapshot, click, fill, type, press, hover, scroll, select, screenshot, get, wait
  • Dual-channel: Neo API-first → UI fallback (automatic)

License

MIT

Issues· 0 open

View all issuesOpen on GitHub

No open issues yet, or sync has not completed.

> Tags

JavaScriptai-agentapi-discoverybrowser-automationchrome-extension

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 17, 2026
CategoryAI 编程
PricingOpen source

> Related tools

G
GitHub Copilot
GitHub 官方 AI 编程助手,覆盖补全、Chat 与 Agent 模式。
C
Cursor
AI 原生代码编辑器,对话改代码、多文件 Agent 与规则体系是其核心。
S
skills
Skills for Real Engineers. Straight from my .agents directory.