{"_id":"@crazygl/hero-magnetic-field-lines","name":"@crazygl/hero-magnetic-field-lines","dist-tags":{"latest":"0.1.1"},"versions":{"0.1.1":{"name":"@crazygl/hero-magnetic-field-lines","version":"0.1.1","description":"Magnetic Field Lines — Thousands of particles stream along smooth, divergence-free flow lines — a live visualisation of an invisible magnetic field. The pointer drops a new magnetic pole into the field; lines visibly… A customizable CrazyGL animated hero ","type":"module","main":"./dist/index.js","module":"./dist/index.js","types":"./dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"},"./metadata.json":"./metadata.json","./style.css":"./style.css"},"dependencies":{"@crazygl/core":"^0.1.1"},"peerDependencies":{"react":">=18","react-dom":">=18"},"license":"Apache-2.0","author":{"name":"ybouane"},"homepage":"https://crazygl.com/hero/magnetic-field-lines","repository":{"type":"git","url":"git+https://github.com/crazygl-com/hero-magnetic-field-lines.git"},"publishConfig":{"access":"public"},"keywords":["magnetic","field-lines","particles","curl-noise","flow","interactive","pointer","abstract","premium","magnetic-field-lines","crazygl","hero","hero-section","webgl","react","animation","ui","landing-page","frontend","component","canvas","three"],"bugs":{"url":"https://github.com/crazygl-com/hero-magnetic-field-lines/issues"},"gitHead":"5b32d7053ca4ab1b893cd265e781786c7f222f38","_id":"@crazygl/hero-magnetic-field-lines@0.1.1","_nodeVersion":"24.14.0","_npmVersion":"11.12.0","dist":{"integrity":"sha512-vmS/FhRxJ1//03pMs3HAIiUhAzw608TrktWb9pYeQdroWsu2fZzDQvdacgWZB2KUNYT5rM6sROZTelLvlHEEWQ==","shasum":"83bd91ec1a44482e4c23c2720eccccc1f22a4391","tarball":"https://registry.npmjs.org/@crazygl/hero-magnetic-field-lines/-/hero-magnetic-field-lines-0.1.1.tgz","fileCount":11,"unpackedSize":55420,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIA9Uty6rgEDeELkmmuQ2W/1EJaU2N9pvcht5WzP0DkIBAiEApt0jIyRYwAqNPthGCNlfkLbZTtjBO3KvafKPPcE8bBU="}]},"_npmUser":{"name":"ybouane","email":"ybouane@ybouane.com"},"directories":{},"maintainers":[{"name":"ybouane","email":"ybouane@ybouane.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/hero-magnetic-field-lines_0.1.1_1782922414083_0.8593081628995747"},"_hasShrinkwrap":false}},"time":{"created":"2026-07-01T16:13:33.935Z","0.1.1":"2026-07-01T16:13:34.227Z","modified":"2026-07-01T16:13:37.247Z"},"maintainers":[{"name":"ybouane","email":"ybouane@ybouane.com"}],"description":"Magnetic Field Lines — Thousands of particles stream along smooth, divergence-free flow lines — a live visualisation of an invisible magnetic field. The pointer drops a new magnetic pole into the field; lines visibly… A customizable CrazyGL animated hero ","homepage":"https://crazygl.com/hero/magnetic-field-lines","keywords":["magnetic","field-lines","particles","curl-noise","flow","interactive","pointer","abstract","premium","magnetic-field-lines","crazygl","hero","hero-section","webgl","react","animation","ui","landing-page","frontend","component","canvas","three"],"repository":{"type":"git","url":"git+https://github.com/crazygl-com/hero-magnetic-field-lines.git"},"author":{"name":"ybouane"},"bugs":{"url":"https://github.com/crazygl-com/hero-magnetic-field-lines/issues"},"license":"Apache-2.0","readme":"<sub>*Hero made by [@ybouane](https://x.com/ybouane).*</sub>\n<p align=\"center\">\n  <img src=\"https://crazygl.com/heroes/hero-magnetic-field-lines/banner-full.png\" alt=\"Magnetic Field Lines\" width=\"640\">\n</p>\n\n# @crazygl/hero-magnetic-field-lines\n\nThousands of particles stream along smooth, divergence-free flow lines — a live visualisation of an invisible magnetic field. The pointer drops a new magnetic pole into the field; lines visibly bend, swirl, and repel around the cursor.\n\n## Demo\n[Magnetic Field Lines](https://crazygl.com/hero/magnetic-field-lines)\n\n## Install\n\n```bash\nnpm install @crazygl/hero-magnetic-field-lines\n```\n\n## Usage\n\n```tsx\nimport MagneticFieldLines from '@crazygl/hero-magnetic-field-lines';\n\nexport default function Hero() {\n\treturn (\n\t\t<MagneticFieldLines\n\t\t\theading=\"Invisible forces.\"\n\t\t\tpoleMode=\"swirl\"\n\t\t\tlineColor=\"#9fdcff\"\n\t\t/>\n\t);\n}\n```\n\n## Customise\n\n- **Content** — `heading` + `subheading`, two columns, or a custom node.\n- **Field** — `particleCount`, `fieldScale`, `flowSpeed`, `attractorCount`, `lineWidth`, `trailFade` (tail length).\n- **Colour** — `lineColor`, `backgroundColor`, `lineOpacity`.\n- **Pointer** — `poleMode` (swirl / attract / repel), `poleStrength`, `poleRadius`.\n- **Backdrop** — `transparent`.\n\n## Best for\n\n- Premium SaaS and developer-tool landing pages.\n- Physics, science and data brands; AI and research products.\n- Any site wanting an elegant, intelligent backdrop behind its headline.\n\n\n\nThis hero is part of [CrazyGL](https://crazygl.com), a collection of production-ready WebGL, canvas, 3D, and typography effects. Every CrazyGL hero ships with an agent-ready `SKILL.md` file that helps developers and coding agents adapt the effect into custom landing pages and interactive experiences.\n","readmeFilename":"README.md","_rev":"1-62114df154f0b57b23c62ddf924f1df2"}