Mowei Xinying Platform MovHub
Chapter 01
Overview
The company’s unified business platform. The public-facing side consists of the MovLab original IP showcase home page and the product center; the platform layer provides all of the company’s products with a unified account (OIDC / OAuth 2.0), a Xinying Coins (platform credits) wallet and checkout, and an AI model gateway billed by actual usage.
Chapter 02
Screenshots
03 images
Chapter 03
How the systems connect
MovHub provides three platform capabilities: the unified account (OIDC), the Xinying Coins (platform credits) wallet and checkout, and the AI model gateway. The WeChat mini program connects to the unified account; Mowei Learn connects to the unified account and the wallet and checkout; Mov Studio connects to all three; the AI model gateway itself quotes and settles through the wallet. ZONGDE is an independent system for another client and is not connected to MovHub.
Three data flows
- Login authorization (OIDC) Steady, evenly spaced pulses 4 links
- Payment (Xinying Coins checkout) Paired packets: request and settlement 4 links
- AI calls Bursts of dense streams 2 links
In the 3D graph, dots move in the direction of each call; the three flows differ by rhythm.
Call relationships 10
Arrows point from the caller to the platform capability.
- MovHub calls Unified account (OIDC) Login Login for the main site and admin console
- MovHub calls Xinying Coins wallet / checkout Payment Top-ups, purchases, refunds
- MovHub calls AI model gateway AI calls HMAC signature plus nonce against replay
- WeChat mini program calls Unified account (OIDC) Login QR-code login to the desktop site and connected products
- Mowei Learn calls Unified account (OIDC) Login Unified login (OAuth + PKCE)
- Mowei Learn calls Xinying Coins wallet / checkout Payment Course purchases with Xinying Coins, refunds
- Mov Studio calls Unified account (OIDC) Login OIDC login
- Mov Studio calls Xinying Coins wallet / checkout Payment Generation confirmed item by item; inference pre-deducted within the round budget
- Mov Studio calls AI model gateway AI calls Agent inference and generation
- AI model gateway calls Xinying Coins wallet / checkout Payment Quote, reserve, then refund any excess or charge any shortfall
Chapter 04 06 items
My work
-
Responsible for requirements, architecture, front-end and back-end development, and launch and operations; merged the three original repositories (accounts and payments, main-site front end, AI gateway) into a single project that is built and released by module.
-
Unified account (OIDC) and open platform: implemented an authorization service following the OAuth 2.0 / OIDC specifications (authorization code + PKCE, RS256 signing, refresh and revocation), supporting QR-code login via the WeChat mini program, embedded web login and desktop login; wrote the integration documentation, a JS/TS SDK and Node / Electron integration examples.
-
Xinying Coins wallet and checkout: all ledger amounts are recorded as integers, with fund batches and an immutable ledger; top-ups, purchases, checkout, refunds and balance adjustments all require an idempotency key, and database transaction locks serialize operations on the same order and wallet to prevent duplicate charges or duplicate refunds; integrated WeChat Pay v3 (Native / H5 / JSAPI) and Alipay, and top-ups, checkout and refunds have been tested in the production environment.
-
AI model gateway: a modified and extended version of the open-source New API (Go); configured and extended text, image, video and speech channels such as DeepSeek, Zhipu GLM, Kimi, Volcano Engine Ark Seedream / Seedance, Tongyi Wanxiang and MiniMax; provides a stateless Responses-compatible API and adaptation for image / video / document attachments; HMAC signatures plus nonces between the main site and the gateway prevent replay; each call is quoted first and the amount is then reserved, with any excess refunded or any shortfall charged according to actual upstream usage; when upstream metering is missing, the call goes to manual settlement reconciliation.
-
Admin console: products and integration credentials, users and roles, top-ups and refunds, AI usage, cost and gross margin (upstream costs recorded at original precision), settlement reconciliation, and audit of balance adjustments.
-
Release system: release packages are verified file by file with SHA-256 and go live in five steps (preparation, build, isolated verification, switch-over, acceptance) with a rollback point kept; before each release, migrations are verified on a copy of the data to confirm they do not alter historical ledger entries; accompanied by API unit tests, wallet database integration tests, browser regression tests and Go tests.
Chapter 05 14 items
Tech stack
- React 19
- TypeScript
- Vite
- Ant Design
- Node.js 24
- Fastify
- Prisma
- PostgreSQL 17
- Go
- WeChat Pay v3
- Alipay
- Tencent Cloud COS
- Docker
- Nginx
Chapter 06
Note
Sources and licenses
The AI gateway is a modified and extended version of New API, an AGPL-3.0 open-source project; the upstream license and attribution are retained, and the source code corresponding to the current build is available for download; the AI management pages keep the upstream front end and are integrated into the main site’s admin shell. The home page visual prototype and two IP feature pages were provided by a collaborator; I rewrote them in React, integrated them into the platform and optimized the media (images converted to WebP, from 167 MB down to 9.5 MB; fonts subset to the characters used on each page).