关于
Does your product tell people it uses AI? One command checks your code, live site and spec, and fails the PR until it does. EU AI Act Art. 50.
人工智能与机器学习实测星标增长
- 24小时
- 0
- 7天
- 0
- 15天
- 0
- 1个月
- 正在收集历史
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
README.md
原文FRAI
Does your product tell people it uses AI?
One command checks your code, your live site and your spec, and fails the pull request until the answer is yes.

A real run on frai.cc's own code. Only step 4 is scripted: a stand-in answers the 15 open questions.
Try it
npx frai # review this repo: code, live site, spec
npx frai check yoursite.com # check any site, no repo needed
npx frai init # add the gate to every pull request
No key, no signup. Node 18 or newer.
How it works

- Code. Finds AI SDKs and model calls (OpenAI, Anthropic, Gemini, LangChain and 8 more), then the sentence in your UI that tells people, down to the file and line.
- Site. Finds your URL in
package.json,.envor the README, reads the homepage and policy pages like a visitor, and opens your chat widget to read what it says first. - Spec.
FRAI-SPEC.mdasks seven questions: risk tier, data, oversight, evaluation, bias, monitoring, transparency.frai draftfills them from your code and writesNEEDS HUMAN INPUT: <question>wherever the code can't know. The gate blocks until a person answers.
What it finds in the wild

Most AI notices live inside the chat, not on the page, so a page scan misses them. FRAI declines cookies, opens the chat through the vendor's own API, reads the first screen and keeps a screenshot. Where it can't read the chat, it says so instead of guessing.
The report

npx frai check yoursite.com --email [email protected] (or frai.cc) sends the full report: up to 10 pages, the chat opened and quoted, a screenshot, the wording to add, and a PDF. Add --watch and it re-checks every month. All free.
Why now
Since 2 August 2026, EU AI Act Article 50 says people must be told when they're talking to an AI or seeing AI-generated content. Fines reach €15M or 3% of global turnover. Model makers watermark their output for machines. Telling the person is your job, and it is the half that breaks quietly when someone swaps a chat widget or adds a second model.
In CI
- run: npx frai@latest --ci --offline
frai init writes this workflow for you. It fails when:
- the spec still has open questions,
- AI code lands with no spec,
- the code starts calling an AI provider the spec never names.
Drop --offline to also fail when the live site has no notice. The gate is deterministic: no model, no key. Add --smart for an AI review of vague answers.
What leaves your machine
| Runs where | |
|---|---|
| Code scan, notice-in-code, gate | On your machine. Nothing is sent. |
| Site check | Through frai.cc, which visits your public site as FRAIBot and respects robots.txt. Skip it with --offline. |
frai draft |
Your own Claude (Claude Code login or ANTHROPIC_API_KEY). Without one, frai.cc drafts it after listing the files it would send and asking you first. |
Packages
| Package | |
|---|---|
frai |
The CLI. |
frai-gate |
The gate alone: npx frai-gate check FRAI-SPEC.md, or import { validateSpec } from 'frai-gate'. |
frai-core |
Scanners and document helpers under the CLI. |
Building with coding agents? npx skills add sebuzdugan/frai-skills teaches them to write specs that include the gate.
Contribute
pnpm install
pnpm --filter frai-gate build && pnpm --filter frai build
node packages/frai-cli/dist/index.js --help
The most useful contributions right now: AI SDKs we don't detect yet (code-checks.ts), notice wording in other languages, and chat widgets that don't open for us. Issues and PRs welcome.
To release: bump the packages, point frai's dependency ranges at the versions you're publishing (never workspace:*), build, then publish frai-gate, frai-core and frai in that order.
FRAI is a technical check, not legal advice. MIT licensed. Images are rendered from assets/source.
探索相关项目
加载中…