OPEN-SOURCE SOFTWARE DEVELOPMENT PROJECT

A developer toolkit for building user-authorized XHS workflows.

XHS MCP combines a Chrome extension, a cloud API and durable storage into a reproducible reference architecture for collection, analysis and content-draft automation.

Chrome Extension
  └─ user-authorized page data
       ↓ authenticated request
Next.js API · Vercel (sin1)
  ├─ analysis and generation routes
  └─ shared-token middleware
       ↓ server-side access
Supabase · PostgreSQL + Storage
3deployable components
10documented API routes
100%source-visible architecture
ARCHITECTURE

Built as a deployable reference, not a hosted commercial service.

The repository documents the security boundaries, serverless constraints and Mainland China deployment trade-offs.

01

Browser integration

A Manifest V3 extension reads only user-visible, user-authorized page data and calls a configurable API origin.

02

Protected cloud API

Next.js route handlers keep AI credentials and the Supabase service role on the server, behind shared-token middleware.

03

Durable serverless storage

PostgreSQL stores structured application state while object storage holds generated media outside ephemeral functions.

TECH STACK

Transparent, replaceable building blocks.

Chrome ExtensionNext.js APISupabaseVercelOpenAI / Cloudflare AI