transformers.js
AGENTS.md16k starsChanged 3 months agoApache-2.0View on GitHub
This file governs AI-assisted contributions to the huggingface/transformers.js repository. Agentic users must read and follow it before proposing changes. - transformers-js — how to use the library itself. Load this skill when working on code that calls @huggingface/transformers. Before opening a pull request: - Check for existing work. Search open PRs and issues (gh pr list, gh issue list) for the area you're touching. Don't duplicate someone else's in-progress work. - Coordinate on the issue first. If an issue exists,…
- Installs packages
Trending
More talk lately.about the whole repository
Who's talking about huggingface/transformers.js
- A Hacker News story“Transformers.js 3.0 Released with WebGPU Support”Hacker News · Oct 22, 2024 · 33 points
- huggingface/transformers“Export to ExecuTorch”GitHub · Jul 26, 2024 · 5 reactions
- remotion-dev/remotion“Upgrade to Transforers.js 4.4 when it comes out and use session-scoped Transformers.js environment overrides”GitHub · Sep 8, 2026 · 2 reactions
- A Hacker News story“Release 4.0.0 · HuggingFace/Transformers.js”Hacker News · Jun 20, 2026 · 2 points
- A Hacker News story“HuggingFace has just released Transformer.js v4 with WebGPU support”Hacker News · Mar 30, 2026 · 2 points
The biggest 5 of 61 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 61
Talked about on GitHub, Bluesky and Hacker News (61 times).
On GitHub · 50
- Jul 26, 2024Export to ExecuTorch — huggingface/transformers5 reactions · 17 comments
- Sep 8, 2026Upgrade to Transforers.js 4.4 when it comes out and use session-scoped Transformers.js environment overrides — remotion-dev/remotion2 reactions
- Dec 19, 2024adopt modern bert please! — OpenNMT/CTranslate22 reactions · 1 comment
- Oct 28, 2024feat: onnx runtime shared sessions — supabase/edge-runtime2 reactions · 2 comments
- Oct 19, 2026deps(deps): bump the bun-minor-and-patch group across 1 directory with 7 updates — di-framework/ai1 reaction · 3 comments
45 more on GitHub
- Oct 15, 2026chore(deps): Bump the plugin-dependencies group across 1 directory with 8 updates — edwardlthompson/vault-organizer1 reaction · 1 comment
- Oct 14, 2026build(deps): bump the dependencies group with 8 updates — steipete/summarize1 reaction · 4 comments
- Oct 13, 2026deps(deps): bump the bun-minor-and-patch group with 5 updates — di-framework/ai1 reaction · 4 comments
- Oct 9, 2026Bump the npm-minor-and-patch group with 23 updates — chrisatom1998/document-graph-explorer1 reaction · 3 comments
- Sep 21, 2026chore(deps): bump @huggingface/transformers from 4.2.0 to 4.3.0 — code-life-cafe/tools-codelife-cafe1 reaction · 3 comments
- Aug 13, 2026chore(deps): Bump the plugin-dependencies group across 1 directory with 7 updates — edwardlthompson/vault-organizer1 reaction · 2 comments
- Jun 24, 2026Extend the Message format to support tool calling, extended thinking, and multimodality — webmachinelearning/prompt-api1 reaction · 17 comments
- Apr 4, 2026chore(deps-dev): bump @huggingface/transformers from 3.8.1 to 4.0.1 — optave/ops-codegraph-tool1 reaction · 2 comments
- Apr 1, 2026chore(deps): update dependency @huggingface/transformers to v4 — promptfoo/promptfoo1 reaction · 4 comments
- Dec 15, 2025model caching — huberp/text-similarity-transformerjs1 reaction
- Dec 8, 2025chore(deps)(deps): bump @huggingface/transformers from 3.8.0 to 3.8.1 — the-hairtologist/hA.I.r1 reaction · 1 comment
- Apr 18, 2025Support for React Native in huggingface/transformers.js — daviddaytw/react-native-transformers1 reaction · 3 comments
- Jan 28, 2025[Expression of support]: Transformers.js, library for running Hugging Face transformers in the browser — WICG/cross-origin-storage1 reaction · 1 comment
- Jan 18, 2025Migrate examples from main repo — huggingface/transformers.js-examples1 reaction
- Dec 3, 2024[WebGPU] `Kernel "[GroupQueryAttention] /model/layers.0/attn/GroupQueryAttention" failed. Error: Input "key" is expected to have 3, 4, or 5 dimensions".` — microsoft/onnxruntime1 reaction · 29 comments
- Oct 24, 2024LLama 3.2 vision - unable to convert — huggingface/optimum1 reaction
- Nov 3, 2026build(deps): Bump @huggingface/transformers from 4.3.1 to 4.3.2 — rishixgamer/AliveInternet0 reactions
- Nov 3, 2026chore(deps): bump @huggingface/transformers from 4.3.1 to 4.3.2 — Seby2005/Verifact0 reactions · 1 comment
- Nov 3, 2026Bump @huggingface/transformers from 4.3.0 to 4.3.2 in /ai-dev-mcp-server — stonebridgeway/ai-dev-system0 reactions
- Nov 3, 2026fix: bump @huggingface/transformers from 4.3.0 to 4.3.2 — code-life-cafe/tools-codelife-cafe0 reactions · 1 comment
- Nov 3, 2026Bump @huggingface/transformers from 3.8.1 to 4.3.2 in /solutions/shared/subtitles — mguhlin/drawsplat0 reactions · 2 comments
- Nov 3, 2026chore(deps): Bump @huggingface/transformers from 4.3.1 to 4.3.2 in /site — mithudso/llms-explorer0 reactions · 1 comment
- Nov 3, 2026Bump @huggingface/transformers from 3.8.1 to 4.3.2 — diamondrubinny/NexaHeart0 reactions · 1 comment
- Nov 3, 2026Bump @huggingface/transformers from 4.3.1 to 4.3.2 — real-kijmoshi/quanta0 reactions
- Nov 3, 2026Bump @huggingface/transformers from 4.3.1 to 4.3.2 — Marc-Dvci/Silah0 reactions
- Nov 2, 2026chore(deps): bump @huggingface/transformers from 4.3.1 to 4.3.2 — Abillify/atf0 reactions
- Nov 2, 2026chore(deps): bump @huggingface/transformers from 4.3.0 to 4.3.2 — NoahMenezes/Mnemyx0 reactions · 1 comment
- Nov 2, 2026chore(deps-dev): bump @huggingface/transformers from 4.3.1 to 4.3.2 — AnxovatomicaES/githippo0 reactions
- Nov 2, 2026Bump @huggingface/transformers from 3.8.1 to 4.3.2 — EgerDev/cutout0 reactions
- Nov 2, 2026deps: bump @huggingface/transformers from 3.8.1 to 4.3.2 in /mcp-server — Agripp87/memoria_mcp0 reactions
- Nov 2, 2026chore(deps): bump @huggingface/transformers from 4.2.0 to 4.3.2 — LucasDitchun/export-bookmarks-x-twitter0 reactions
- Nov 2, 2026Bump @huggingface/transformers from 3.8.1 to 4.3.2 in /tools/semantic — Ricoo05/ruthless0 reactions
- Nov 2, 2026Onderzoek: vier kosteloze uitbreidingskandidaten voor VIA (november 2026) — OuwePiet/Lumen0 reactions
- Nov 2, 2026chore(deps): bump @huggingface/transformers from 4.2.0 to 4.3.2 — smavgs/super-ii0 reactions
- Nov 2, 2026chore(deps): bump the runtime group across 1 directory with 2 updates — JordanNewell/curtis0 reactions · 4 comments
- Nov 2, 2026chore(deps-dev): bump @huggingface/transformers from 4.3.1 to 4.3.2 — skygoldlee-cyber/passok0 reactions
- Nov 2, 2026fix(deps): bump @huggingface/transformers from 3.8.0 to 4.3.2 — cosmocoder/CodeCritique0 reactions
- Nov 2, 2026chore(deps): bump @huggingface/transformers from 4.3.1 to 4.3.2 in /mcp-server — djmahe4/awesome-free-llm-apis0 reactions
- Nov 1, 2026chore(deps)(deps): bump @huggingface/transformers from 3.8.1 to 4.3.2 — AkshatRaj00/PrXray0 reactions · 4 comments
- Nov 1, 2026chore(deps): bump @huggingface/transformers from 4.3.1 to 4.3.2 — BaiGanio/aperio0 reactions · 1 comment
- Nov 1, 2026build(deps): bump @huggingface/transformers from 4.3.0 to 4.3.2 — techtocore/Grammar-check-SLM0 reactions
- Oct 30, 2026chore(deps): bump @huggingface/transformers from 4.3.0 to 4.3.2 — Seydina-s/bic-gouv-sn0 reactions
- Oct 28, 2026Release watch: 1 new reranker release — sheephess9527/reranker.uk0 reactions · 2 comments
- Oct 8, 2026[Extreme Q4] Android-native inference and Flash-browser execution: runtime comparison — pH34r-pH/long-haul0 reactions
- Oct 4, 2026[Candidate] huggingface/transformers.js/.ai/skills/transformers-js - transformers-js — ProSkillsMD/proskills0 reactions · 1 comment
On Bluesky · 8
- Feb 11, 2025TaDAh! Transformer.js Run #ML models in the browser or Node.js: github.com/huggingface/... Dear #React, #nodejs, #Nextjs people, if you… — @alecrimi.bsky.social2 likes and reposts
- Oct 28, 2024📦 huggingface / transformers.js ⭐ 11,693 (+61) 🗒 JavaScript State-of-the-art Machine Learning for the web. Run 🤗 Transformers directly… — @github-trending-js.bsky.social2 likes and reposts
- Oct 23, 2024📦 huggingface / transformers.js ⭐ 11,473 (+67) 🗒 JavaScript State-of-the-art Machine Learning for the web. Run 🤗 Transformers directly… — @github-trending-js.bsky.social2 likes and reposts
- Mar 31, 2026📦 huggingface / transformers.js ⭐ 15,678 (+35) 🗒 JavaScript State-of-the-art Machine Learning for the web. Run 🤗 Transformers directly… — @github-trending-js.bsky.social1 likes and repost
- Mar 18, 2026https://github.com/huggingface/transformers.js — @tom-doerr.bsky.social1 likes and repost
3 more on Bluesky
- Jul 15, 2025📦 huggingface / transformers.js ⭐ 14,100 (+41) 🗒 JavaScript State-of-the-art Machine Learning for the web. Run 🤗 Transformers directly… — @github-trending-js.bsky.social1 likes and repost
- Nov 13, 2024📦 huggingface / transformers.js ⭐ 12,014 (+49) 🗒 JavaScript State-of-the-art Machine Learning for the web. Run 🤗 Transformers directly… — @github-trending-js.bsky.social1 likes and repost
- Apr 1, 2026Brings Hugging Face-hosted transformer models into JavaScript, so you can run NLP, vision, and audio models in-browser. v4 switches to a… — @aymkdn.bsky.social0 likes and reposts · 1 reply
On Hacker News · 3
- Oct 22, 2024Transformers.js 3.0 Released with WebGPU Support33 points · 1 comment
- Jun 20, 2026Release 4.0.0 · HuggingFace/Transformers.js2 points
- Mar 30, 2026HuggingFace has just released Transformer.js v4 with WebGPU support2 points · 1 comment
Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about checking a change actually works.
Of the AGENTS.md files we read, the 11,773 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.
In this repository3 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- transformers-jsSkill
The file
We split this AGENTS.md into the rules it gives an agent
6 rules. About 0 are common, 4 are distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈4
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- could be automatic: a setting could enforce it
- Distinctive: line 13
Before opening a pull request:
- Very specific: line 15
Check for existing work: Search open PRs and issues (gh pr list, gh issue list) for the area you're touching.
- Distinctive: line 17
Coordinate on the issue first: If an issue exists, comment on it before drafting a PR.
- Distinctive: line 37
Run the full documentation generator after any JSDoc, docs snippet, task metadata, or generated skill content change:
- Distinctive: line 54
Do not edit generated API pages, the generated skill reference files, or the root README by hand.
- Very specific: line 65
Run pnpm --filter @huggingface/transformers docs-generate from the repo root.
≈ “Common” is an estimate: at least 1 in 5 of the 16,595 AGENTS.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Agent guidelines for transformers.js
This file governs AI-assisted contributions to the huggingface/transformers.js
repository. Agentic users must read and follow it before proposing changes.
Available skills
transformers-js— how to use the library itself. Load this skill when working on code that calls@huggingface/transformers.
Contributing
Before opening a pull request:
- Check for existing work. Search open PRs and issues (
gh pr list,gh issue list) for the area you're touching. Don't duplicate someone else's in-progress work. - Coordinate on the issue first. If an issue exists, comment on it before drafting a PR. If approval from the issue author or a maintainer is unclear, stop and ask.
- No low-value busywork. Reformatting, renaming, and cosmetic-only PRs that don't fix a reported problem or implement a requested feature are discouraged.
- Run the full test suite locally.
pnpm testat the package root must pass before you submit. Don't skip hooks with--no-verify. - Accountability. AI-assisted patches are the responsibility of the human submitter. Review the diff yourself before pushing.
Local setup
pnpm install
pnpm --filter @huggingface/transformers test
pnpm --filter @huggingface/transformers typegen
pnpm --filter @huggingface/transformers docs-generateDocumentation generation
Run the full documentation generator after any JSDoc, docs snippet, task metadata, or generated skill content change:
pnpm --filter @huggingface/transformers docs-generatedocs-generate runs docs/scripts/generate-all.js,
which generates:
packages/transformers/docs/source/api/**/*.mdfrom JSDoc comments inpackages/transformers/src/**/*.js.- The marker-delimited generated sections in
.ai/skills/transformers-js/SKILL.mdandreferences/{CONFIGURATION,PIPELINE_OPTIONS}.md. .ai/skills/transformers-js/references/TASKS.md(fully generated).- The repo-root
README.mdfrompackages/transformers/docs/snippets/*.snippet.
Do not edit generated API pages, the generated skill reference files, or the root README by hand. Update the source JSDoc, docs snippets, or generator modules instead.
The generator also validates generated API pages against docs/source/_toctree.yml
and checks local Markdown links and anchors under docs/source/. To run only
the validator (without regenerating), use pnpm --filter @huggingface/transformers docs-validate.
Workflow after touching JSDoc
- Edit the JSDoc in
packages/transformers/src/**/*.js. - Run
pnpm --filter @huggingface/transformers docs-generatefrom the repo root. - Inspect the diff under
packages/transformers/docs/source/api/— that's the page a human or agent will read. If the JSDoc didn't render the way you expected, tweak the source, not the generated markdown. - Watch for "doc-quality warnings" at the end of the generator's output —
these flag undocumented public exports and malformed
@paramtags. - Stage the source files; the generated
api/**/*.mdfiles are gitignored.
What is generated vs. hand-written
| Path | Generated? | Tracked in git? |
packages/transformers/docs/source/api/**/*.md | yes | no — gitignored |
packages/transformers/docs/source/{guides,tutorials,integrations}/*.md | hand-written | yes |
packages/transformers/docs/source/_toctree.yml | hand-written (must list every generated API page) | yes |
.ai/skills/transformers-js/SKILL.md | mixed — prose hand-written, blocks between <!-- @generated:start ... --> markers regenerated | yes |
.ai/skills/transformers-js/references/TASKS.md | fully generated, do not edit | yes |
.ai/skills/transformers-js/references/{CONFIGURATION,PIPELINE_OPTIONS}.md | mixed (same marker convention as SKILL.md) | yes |
README.md | generated from packages/transformers/docs/snippets/*.snippet | yes |
Generated files that are tracked in git (the .ai/ references and README.md) must be
regenerated and committed together with the source change that affects them — CI fails
the build if they drift from the source JSDoc.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

