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