new-term-radar
Daily radar for new AI terms: names of new models, products and repos, caught on X, Hugging Face, GitHub and sitemaps before keyword tools list them.
翻译准备中
尚未检测到更新。GitHub 发布版本后会显示在这里。
个人 GitHub 账号下公开仓库的所有者可以登录并验证所有权,自行管理介绍,无需管理员批准。
登录并生成验证文件,在 30 分钟内将其提交到此仓库的默认分支。其他分支或分叉仓库中的文件无效。然后在下方检查文件,即可无需管理员批准直接管理项目。请保留文件以维持管理权限。
如需登录,将前往登录页面。登录后请回到此处,再次点击所选的验证按钮。
在项目文件夹中运行 /nomorevibe verify,即可验证所有权并自行管理介绍。
一分钟完成验证正在加载完整 README。 以下为已保存的摘录。
Turns the single-file mini-app (../bradar.html) into a real product: Telegram
auth, server-side storage, an authoritative media-plan engine (optionally
Claude-powered), and Telegram Stars payments. Pure Node, zero dependencies.
The mini-app file on disk is never modified — the backend injects
/bradar-api.js at serve time, which monkey-patches the app to use these APIs
and falls back to the offline behaviour when they're unavailable.
No npm install needed (no dependencies).查看完整 README ↗Turns the single-file mini-app (../bradar.html) into a real product: Telegram
auth, server-side storage, an authoritative media-plan engine (optionally
Claude-powered), and Telegram Stars payments. Pure Node, zero dependencies.
| Endpoint | Purpose |
|---|---|
GET / | serves the mini-app with the client integration injected |
GET /api/config | AI on/off, catalog size, current user, active purchases |
POST /api/analyze | brand + brief → media plan (engine, enriched by Claude if a key is set) |
POST /api/alternatives | replacement candidates for a channel |
GET /api/state | this user's saved plans + favourites |
POST /api/plans · DELETE /api/plans/:id | save / delete a plan |
PUT /api/favs | replace favourites |
POST /api/invoice | create a Telegram Stars invoice link |
POST /api/telegram/webhook | pre-checkout + successful-payment handling |
The mini-app file on disk is never modified — the backend injects
/bradar-api.js at serve time, which monkey-patches the app to use these APIs
and falls back to the offline behaviour when they're unavailable.
cd bradar-server
cp .env.example .env # optional
npm run dev # ALLOW_INSECURE_AUTH=1, no bot token needed
# open http://localhost:8080
No npm install needed (no dependencies).
Run the tests any time:
npm test # engine (23) + client integration (19) + bot (7)
bot.js)Launches the Mini App and handles Stars payments. Needs BOT_TOKEN and APP_URL
(the https URL of the deployed mini-app) in .env.
node bot.js setmenu # menu button opens BRADAR
node bot.js setcommands # register /start
node bot.js # long-poll (dev; answers /start, approves payments, grants PRO)
# production instead of long-poll:
node bot.js setwebhook https://you/api/telegram/webhook
Vercel is serverless — no always-on process, no persistent disk. This repo is already adapted:
api/index.js + vercel.json run the same handler as a serverless function;Steps
cd bradar-server
npm run prepare-deploy # copies ../bradar.html → public/bradar.html
git init && git add -A && git commit -m "BRADAR"
git remote add origin https://github.com/<you>/bradar.git && git push -u origin main
(Re-run npm run prepare-deploy and commit whenever bradar.html changes.)BOT_TOKEN = <from @BotFather>
XAI_API_KEY = <Grok key>
XAI_MODEL = grok-4
APP_URL = https://<your-project>.vercel.app/
Redeploy after adding them..env):
node bot.js setmenu
node bot.js setwebhook https://<your-project>.vercel.app/api/telegram/webhook
node bot.js setcommands
In @BotFather: /newapp → Web App URL = APP_URL.Want cross-device plans + durable payments? Add the Vercel KV integration
(Storage → KV) — it injects KV_REST_API_URL / KV_REST_API_TOKEN. Then the
store.js swap to KV is a small follow-up (ask and I'll wire it).
Prefer an always-on server (code runs unchanged, no serverless caveats)? Use
Render / Railway / a VPS: connect the repo, set the same env vars, start
command npm start. The bot can then long-poll (node bot.js) instead of a webhook.
/newapp and point
the Web App URL at your deployed origin. Put the token in .env as
BOT_TOKEN. With a token set, every /api/* call must carry a valid
initData signature (validated in server.js → verifyInitData). Remove
ALLOW_INSECURE_AUTH in production.XAI_API_KEY (Grok, default model
grok-4, override with XAI_MODEL) or ANTHROPIC_API_KEY (Claude). If both
are set, Grok wins. /api/analyze then asks the model to write the
per-channel rationale, risks and strategy — grounded only in the metrics we
pass, no invented numbers. Without a key it uses the deterministic engine.
See ai.js.data/channels.json (or set CHANNELS_FILE) shaped as
{ "<vertical>": [ {id,name,cat,topic,subs,match,cpm,reach,eng,adShare,w, why?} ] }.
Any vertical you provide replaces the built-in seed for that vertical — no
code change. This is where a TGStat / Telemetr / Telega.in export or your own
DB dump plugs in. The match you store is only a base quality: the engine
re-scores every channel against the specific brand text at request time
(scoreCandidates in engine.js), so ranking already responds to the brand.BOT_TOKEN, then either node bot.js setwebhook https://you/api/telegram/webhook (server handles payments) or run
node bot.js (long-poll, dev). The mini-app already gates export/contacts
behind PRO and buys it with Stars (POST /api/invoice + tg.openInvoice).
Products live in products.js; grants are stored per user. Also run
node bot.js setmenu so the chat menu button opens the app.store.js is a JSON file (atomic writes) — fine for one node.
Swap it for Postgres by keeping the same method signatures.MINIAPP_HTML at the app file if it isn't at
../bradar.html.server.js — HTTP server, routing, initData validation, static + injection, paymentsengine.js — plan engine: brand-aware matching, risks-from-metrics, drop-in catalog (swap for real data via data/channels.json)ai.js — optional AI enrichment (Grok/xAI or Claude/Anthropic, auto-selected by env)store.js — per-user JSON persistence (plans, favourites, Stars grants)products.js — Stars products (shared by server + bot)bot.js — Telegram bot: launches the Mini App, handles Stars paymentspublic/bradar-api.js — client integration injected into the mini-app (server sync, AI upgrade, Stars paywall)test-engine.js · test-client.js · test-bot.js — npm test