[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-109354":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":8,"htmlUrl":8,"language":9,"languages":8,"totalLinesOfCode":8,"stars":10,"forks":11,"watchers":12,"openIssues":13,"contributorsCount":13,"subscribersCount":13,"size":13,"stars1d":13,"stars7d":14,"stars30d":15,"stars90d":13,"forks30d":13,"starsTrendScore":16,"compositeScore":17,"rankGlobal":8,"rankLanguage":8,"license":8,"archived":18,"fork":18,"defaultBranch":19,"hasWiki":20,"hasPages":18,"topics":21,"createdAt":8,"pushedAt":22,"updatedAt":23,"readmeContent":24,"aiSummary":25,"trendingCount":13,"starSnapshotCount":13,"syncStatus":14,"lastSyncTime":26,"discoverSource":27},109354,"reveal-cursors","harshit403-pixel\u002Freveal-cursors","harshit403-pixel",null,"JavaScript",125,9,94,0,2,30,1,41,false,"main",true,[],"2026-11-12 18:27:34","2026-11-23 16:24:57","# Swarm Cursors: a Claude skill\n\nTell Claude **\"add the swarm effect to my homepage\"** and it wires up a page that wipes to a\nblank canvas, then rebuilds itself live with a swarm of multiplayer cursors: crosshair-drawn\nboxes, typed text, pen-tool lines, ruler guides and alt-drag duplicates, with synthesized\nkeyboard and piano sounds.\n\n![Swarm Cursors rebuilding a page](media\u002Fdemo.gif)\n\n> **Credit.** The effect is **[Joel Califa's Swarm](https:\u002F\u002Fcalifa.github.io\u002Fswarm-site\u002F)**: the\n> cursor set, the flocking physics, the build choreography and the look are his. This project is a\n> tribute that points his idea at *any* page. See [CREDITS.md](CREDITS.md). \n\n## What it is\n\nA [Claude skill](https:\u002F\u002Fwww.claude.com\u002Fdocs\u002Fskills\u002Fhow-to) (a folder of instructions plus scripts\nthat Claude loads when relevant). The skill knows how to:\n\n- add the effect to one page or a whole site, as a floating **Rebuild this page** button, an\n  auto-play intro, a hotkey, a `?swarm` link, or any element you mark with `data-swarm-trigger`\n- restrict it to chosen pages, exclude elements (cookie banners, chat widgets) and remove it cleanly\n- place it correctly for plain HTML, Vite\u002FCRA\u002FAstro\u002FSvelteKit\u002FHugo\u002FJekyll, Next.js, WordPress,\n  Shopify and hosted builders ([guide](swarm-cursors\u002Freferences\u002Fplatforms.md))\n- run a headless-browser check that the install actually works\n\nThe effect overlays your page and leaves the real DOM untouched, so SEO, forms and analytics keep\nworking underneath. It is one dependency-free file (157 KB, about 44 KB gzipped), loaded with `defer`, and it sends\nnothing to any server.\n\n## Install the skill\n\n**Claude.ai (web or desktop).**\n1. Settings, Capabilities: turn on **Code execution and file creation**.\n2. Download `swarm-cursors.zip` from the [Releases](..\u002F..\u002Freleases) page (or run\n   `scripts\u002Fbuild-release.sh` to build it).\n3. Customize, Skills, then upload the zip and switch the skill on. (Menu names change; see\n   Anthropic's [Skills docs](https:\u002F\u002Fwww.claude.com\u002Fdocs\u002Fskills\u002Fhow-to) if yours differ.)\n\n**Claude Code.** Copy the folder into your skills directory:\n\n```bash\ncp -r swarm-cursors ~\u002F.claude\u002Fskills\u002F        # all projects\n# or: cp -r swarm-cursors .claude\u002Fskills\u002F    # this project only\n```\n\nThen run `\u002Fskills` to confirm it is listed. Skills installed in one place do not sync to the others.\n\nIn Claude Code, Claude edits your real project files. In claude.ai, upload or paste your page and\nit returns the edited files plus `swarm-cursors.js` to put on your host.\n\n## Use it\n\nJust ask:\n\n- \"Add the swarm effect to my homepage only.\"\n- \"Put it on every page and play it automatically on load.\"\n- \"Use my own button instead of the floating one.\"\n- \"Keep the cookie banner out of the rebuild.\"\n- \"Remove it.\"\n\n## Use it without Claude\n\nThe skill's pieces work on their own:\n\n```bash\n# one page, floating button\npython swarm-cursors\u002Fscripts\u002Finstall.py site\u002Findex.html\n\n# auto-play 1.5s after load, once per browser session\npython swarm-cursors\u002Fscripts\u002Finstall.py site\u002Findex.html --trigger auto --delay 1500 --once session\n\n# undo (leaves the file byte-identical to before)\npython swarm-cursors\u002Fscripts\u002Finstall.py site\u002Findex.html --remove\n```\n\nOr add the tag by hand:\n\n```html\n\u003Cscript src=\"swarm-cursors.js\" defer data-trigger=\"button\" data-position=\"bottom-right\">\u003C\u002Fscript>\n```\n\n| Option | Values | Default |\n| --- | --- | --- |\n| `data-trigger` | `button`, `auto`, `none` | `button` |\n| `data-label` | button text | `Rebuild this page` |\n| `data-position` | `bottom-right`, `bottom-left`, `top-right`, `top-left` | `bottom-right` |\n| `data-hotkey` | e.g. `alt+shift+s`, or empty to disable | `alt+shift+s` |\n| `data-delay` | ms before `auto` fires | `800` |\n| `data-once` | `session` = auto-play once per browser session | every load |\n| `data-paths` | e.g. `\u002F,\u002Fabout,\u002Fblog\u002F*` | all pages the script is on |\n| `data-reduced-motion` | `skip` (auto does nothing for people who prefer reduced motion), `ignore` | `skip` |\n\nAlways available: the hotkey, `?swarm` in the URL, `[data-swarm-trigger]`, `\u003Ca href=\"#swarm\">`,\nand `data-swarm-ignore` on anything the rebuild should skip. Page API:\n`SwarmCursors.start()`, `.stop(true)`, `.isRunning()`, plus `swarm:start` \u002F `swarm:exit` events.\n\nTry it locally: open [`examples\u002Findex.html`](examples\u002Findex.html) and click the button.\n\n## Limits\n\n- WebGL canvases, playing video and cross-origin iframes (maps, YouTube) become gray placeholders.\n  The Chrome extension can screenshot them; a page script cannot.\n- It is a visual rebuild. Animations freeze at the moment of the click. Pages over about 4,000 layers or\n  40,000px tall are capped.\n- A Content-Security-Policy with `style-src` lacking `'unsafe-inline'` blocks it. The script detects this,\n  never shows the button, and logs a console warning, so visitors keep the normal page.\n- Built for desktop pointers. It runs on phones, but is meant for a mouse.\n- Audio stays locked until the visitor clicks once; M mutes.\n\n## What was tested\n\nIn headless Chromium: button, auto, hotkey, `?swarm`, `#swarm` link, per-page paths, `data-swarm-ignore`\n(with a control), reduced-motion, double-loading, a phone viewport, an inner-scrolling app page, strict and\npermissive CSP, and exit paths (the page DOM was identical afterwards). The installer was tested for\nidempotence, nested folders, CRLF files and byte-exact removal. **Not tested on the real platforms:** the\nNext.js, WordPress, Shopify and hosted-builder recipes in\n[`references\u002Fplatforms.md`](swarm-cursors\u002Freferences\u002Fplatforms.md) are standard patterns, so run\n`python swarm-cursors\u002Fscripts\u002Fverify.py \u003Curl>` against your own site.\n\n## Related\n\nThe browser-extension version, which works on any site you visit, lives at\n[DhvanilPatel\u002Fswarm-cursors](https:\u002F\u002Fgithub.com\u002FDhvanilPatel\u002Fswarm-cursors).\n\n## Credit and license\n\nSee [CREDITS.md](CREDITS.md).\n\n\u003C!-- TODO before making this repo public: replace this line with the chosen license\n     (and add a LICENSE file) once Joel Califa has agreed, e.g.\n     \"Released under the MIT License, with Joel Califa's permission (see CREDITS.md).\" -->\n**License: pending.** This project adapts parts of Swarm, which has no license of its own, so no license is\ngranted here until Joel Califa's permission is recorded in [CREDITS.md](CREDITS.md).\n","这是一个为网页添加多光标协同重建动画效果的 Claude 技能工具，基于 Joel Califa 的 Swarm 项目实现。它通过在页面上叠加一层交互式光标层（含交叉线框、手写路径、标尺引导、Alt 拖拽复制等），以物理模拟的‘鸟群’行为动态重绘页面内容，同时保持原始 DOM 完整，不影响 SEO、表单与分析功能。支持一键集成至各类前端框架（Next.js\u002FVite\u002FAstro 等）和建站平台（WordPress\u002FShopify），提供浮动按钮、URL 参数、自定义触发器等多种激活方式，并可排除指定元素（如 Cookie 横幅）。适用于网页演示、产品介绍页动效增强及交互式技术展示场景。","2026-11-24 04:36:35","CREATED_QUERY"]