MicroAI Paygate
An x402-style payment gateway for AI requests. Sign EIP-712, get a signed receipt, verify the signature client-side.
翻譯準備中
尚未偵測到更新。GitHub 發布版本後會顯示在這裡。
個人 GitHub 帳號下公開儲存庫的擁有者可以登入並驗證所有權,自行管理介紹,無需管理員核准。
登入並產生驗證檔案,在 30 分鐘內將其提交至此儲存庫的預設分支。其他分支或分叉儲存庫中的檔案無效。然後在下方檢查檔案,即可無需管理員核准直接管理專案。請保留檔案以維持管理權限。
如需登入,將前往登入頁面。登入後請回到此處,再次點擊所選的驗證按鈕。
在專案資料夾中執行 /nomorevibe verify,即可驗證所有權並自行管理介紹。
一分鐘完成驗證Bill tracking app
翻譯準備中
取自儲存庫 README
正在載入完整 README。
檢視完整 README ↗This repository contains the public website and publishing system for factura.uno. The signed-in product is a separate project, served from app.factura.uno.
/cms authoring and media interface, plus its CMS-only MCP API./probar, whose browser client sends bill samples to the app origin's API./app/*,
/api/mcp, and /api/oauth/* to the app origin.This repository does not contain the product dashboard, bill APIs, parser
engine, product MCP/OAuth implementation, private bill storage, or PWA runtime.
/sw.js is intentionally retained as a small retirement worker so browsers
that installed the former monolith can clear its share cache and unregister it.
Next.js 16 (App Router), React 19, Tailwind CSS 4, Drizzle ORM, Postgres, Auth.js, Recharts, React Email/Resend, and S3-compatible public CMS media storage.
Requires Bun and Docker.
git clone <your-fork-url> factura
cd factura
cp env.example .env.local
bun install
docker compose up -d
bun run db:push
bun run dev
The site runs at http://localhost:4000; the documented neighboring app runs at
http://localhost:4001.
For another device on the same local network, open http://<this-machine's-LAN-IP>:4000/cms.
In development, Next.js allows the private IPv4 addresses currently assigned to
this machine. Restart bun run dev if its LAN address changes. Email code
sign-in works from this URL. Google OAuth cannot redirect to an arbitrary LAN IP:
Google requires an exact registered callback URL and disallows private IP hosts.
For Google sign-in from other devices, use a stable HTTPS development hostname
with a registered Google callback, or forward port 4000 to this machine so the
other device opens http://localhost:4000/cms.
For the HTTPS option, route a development hostname you control to this server
through LAN DNS and an HTTPS reverse proxy (or a named tunnel). In .env.local,
set AUTH_URL and NEXT_PUBLIC_SITE_URL to that origin. Register
https://<development-host>/api/auth/callback/google in a separate development
Google OAuth client, and use that client's ID and secret locally. Production
configuration stays separate.
Email sign-in works locally without Resend: leave RESEND_API_KEY blank and the
one-time code is printed to the server console. Add Google OAuth credentials to
enable “Continue with Google.”
src/app/ public routes, login/logout, CMS routes, retained APIs
src/components/ marketing, editorial, demo, chart, and shared UI
src/cms/ CMS domain and public-media management
src/content-system/ content repository, rendering, validation, and metadata
src/db/ shared Drizzle schema
src/server/ identity, contact notifications, rate limits, CMS protocol
emails/ OTP and welcome React Email templates
scripts/ SEO audit, public datasets, CMS media, and DB utilities
Public articles are stored in Postgres and authored through /cms or the
factura-cms MCP server. Read src/content/AUTHORING.md before editing content.
Copy env.example to .env.local.
| Variable | Purpose |
|---|---|
DATABASE_URL | Shared Postgres connection string. |
NEXT_PUBLIC_SITE_URL | Canonical marketing origin. |
NEXT_PUBLIC_APP_URL | Canonical app origin used by links, redirects, and allowlists. |
AUTH_SECRET | Auth.js session secret. |
AUTH_GOOGLE_ID / AUTH_GOOGLE_SECRET | Google OAuth; optional in development. |
SESSION_COOKIE_DOMAIN | Production cookie domain shared with app.factura.uno. |
RESEND_API_KEY / EMAIL_FROM | OTP and welcome email delivery. |
TELEGRAM_BOT_TOKEN / TELEGRAM_CHANNEL_ID | Contact-form and optional sign-up notices. |
TELEGRAM_NOTIFY_SIGNINS | new by default, all, or off. |
CMS_MEDIA_S3_BUCKET / CMS_MEDIA_PUBLIC_ORIGIN | Public CMS media bucket and browser origin. |
S3_ENDPOINT / S3_REGION / S3_ACCESS_KEY_ID / S3_SECRET_ACCESS_KEY / S3_FORCE_PATH_STYLE | S3-compatible connection used by CMS media. |
NEXT_PUBLIC_AHREFS_ANALYTICS_KEY | Ahrefs Web Analytics site key; the tag loads only where it is set. |
The two public origin variables are deliberately distinct: one names this site and one names the app. Server-only and browser-visible code derive from the same pair, so links and security allowlists cannot drift.
bun run dev # development server on :4000
bun run build # production build
bun run start # serve the production build
bun run lint # ESLint
bun run typecheck # TypeScript
bun run test # Vitest
bun run audit:seo # audit built public SEO output
bun run db:push # push the shared Drizzle schema
bun run db:studio # inspect the shared database
bun run email # preview email templates on :3001
Public-data and CMS-media maintenance commands are listed in package.json.
MIT © Konstantin Mednikov