| name | Context7 Registration | ||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| overview | Register @wix/interact on Context7 by creating a validated context7.json config file, then submitting and claiming the library through the Context7 web interface. | ||||||||||||||||||||||||||||
| todos |
|
||||||||||||||||||||||||||||
| isProject | false |
Context7 is an MCP server that indexes library documentation from GitHub and serves it to AI agents on demand. Registering @wix/interact makes the package discoverable to every developer with Context7 configured. Context7 scrapes markdown from the repo; a context7.json at the repo root controls what gets indexed.
- GSAP (
greensock/gsap) -- 7,609 tokens, 66 snippets, Trust Score 6.8. Auto-indexed, nocontext7.json. - Motion for Vue (
motiondivision/motion-vue) -- 18,609 tokens, 149 snippets, Trust Score 8.0. Also auto-indexed.
Neither competitor uses a context7.json, so @wix/interact can differentiate by providing precise folder scoping and agent rules to produce a higher-quality, lower-noise index.
Rules files -- 7 files, 2,115 lines in packages/interact/rules/
full-lean.md(700 lines) -- comprehensive referenceintegration.md(334 lines) -- entry points, registerEffects, config schemapointermove.md(279 lines)viewenter.md(226 lines)viewprogress.md(196 lines)hover.md(191 lines)click.md(189 lines)
Docs directory -- 26 files, ~14,846 lines in packages/interact/docs/
guides/-- getting-started, triggers, effects, conditions, sequences, custom-elements, state-management, lists, configuration-structureapi/-- interact-class, functions, types, interaction-controller, interact-element, element-selectionexamples/-- entrance-animations, hover-effects, click-interactions, list-patternsintegration/-- reactadvanced/-- README (links to custom triggers, custom effects)
Package README -- packages/interact/README.md (385 lines)
- Source code (
packages/interact/src/,packages/interact/test/) - Sibling packages (
packages/motion/,packages/motion-presets/) - Apps (
apps/-- demo, docs, playground, website) - CI/tooling (
.github/,.cursor/,.claude/,scripts/) - Internal root markdown:
AGENTS.md,CLAUDE.md(symlink to AGENTS.md),CONTRIBUTING.md,readme-spec-1.md,readme-spec-2.md - Default exclusions already handle:
CHANGELOG.md
These constraints were discovered by reading the actual JSON Schema at schema/context7.json and confirmed via Context7 docs and GitHub issues:
rulesmust be an array of strings, each 5-200 characters. NOT a single string.excludeFilesaccepts filenames only -- pattern^[^/\\]+$, no glob, no regex."*.ts"is invalid.additionalProperties: false-- any unknown field fails validation.- Root-level markdown is always included when
foldersis specified (confirmed behavior, narrowed to README.md only when folders are set). - Known
foldersbug (issue #1020, Jan 2026) --folderswas not always respected. Belt-and-suspenders approach recommended: specify bothfolders(whitelist) ANDexcludeFolders(blacklist).
New file at repo root: context7.json
{
"$schema": "https://context7.com/schema/context7.json",
"projectTitle": "@wix/interact",
"description": "Declarative animation library -- wire scroll, hover, click, and pointer triggers to effects via JSON config. Built on Web Animations API.",
"folders": ["packages/interact/rules", "packages/interact/docs", "packages/interact"],
"excludeFolders": [
"packages/interact/src",
"packages/interact/test",
"packages/motion",
"packages/motion-presets",
"apps",
".github",
".cursor",
".claude",
"scripts",
"node_modules",
"dist"
],
"excludeFiles": [
"AGENTS.md",
"CLAUDE.md",
"CONTRIBUTING.md",
"readme-spec-1.md",
"readme-spec-2.md"
],
"rules": [
"Start with rules/full-lean.md for the complete @wix/interact reference",
"For trigger-specific rules: click.md, hover.md, viewenter.md, viewprogress.md, pointermove.md",
"For integration patterns (React, vanilla JS, custom elements) use rules/integration.md",
"Always call registerEffects() before Interact.create()",
"Use generate() from @wix/interact/web for FOUC prevention with custom elements",
"Include a prefers-reduced-motion condition for accessibility"
]
}foldersincludespackages/interact(not justrulesanddocs) so thatpackages/interact/README.mdis explicitly in scope. TheexcludeFoldersforsrc/andtest/prevents source code from leaking. This is the belt-and-suspenders approach against the knownfoldersbug.excludeFileslists exact filenames -- no globs. Context7 only indexes markdown by default, so there is no need to filter*.ts,*.js,*.cssetc. (which would be invalid anyway). The five listed files are root-level markdown that would otherwise pollute the index with internal agent instructions and spec drafts.rulesis an array of 6 strings, each under 200 characters, referencing actual filenames that exist in the repo. This replaces the previous plans' single-string approach (which would fail schema validation). The rules guide agents to start withfull-lean.mdand drill into trigger-specific files as needed.- No
excludeFilesglobs -- the previous detailed plan's"*.ts","*.js"entries would fail the schema's^[^/\\]+$pattern constraint. - Dropped
packages/interact-debugfrom excludeFolders -- this directory does not exist.
- Go to
context7.com/add-library - Paste:
https://github.com/wix/interact - Context7 detects
context7.jsonand applies the folder/exclude config - Verify the parsed result includes rules and docs content, not source code
- On the Context7 library page for
@wix/interact, click "Claim" - Authenticate with GitHub
- This unlocks the admin panel for editing config via web UI, managing team access, viewing usage analytics, and higher rate limits
After indexing completes (typically minutes, review may take 1-3 business days):
- Use Context7 MCP tool:
resolve-library-idwith query"@wix/interact"-- expect ID/wix/interact - Fetch docs with the resolved ID and verify:
rules/full-lean.mdcontent is present and completerules/click.mdcontent is presentdocs/guides/getting-started.mdis present- Source code files (
src/core/Interact.tsetc.) are NOT present AGENTS.md/readme-spec-*.mdcontent is NOT presentpackages/motion/content is NOT present
- NEW:
context7.json(repo root, ~35 lines)