{"id":51092121,"url":"https://github.com/onmyway133/elemental-input","last_synced_at":"2026-06-24T03:35:45.648Z","repository":{"id":353183269,"uuid":"1218242281","full_name":"onmyway133/elemental-input","owner":"onmyway133","description":"React input components with cool effects","archived":false,"fork":false,"pushed_at":"2026-04-22T19:14:41.000Z","size":1089,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-04-22T21:18:21.872Z","etag":null,"topics":["effect","elemental","fire","input","react","water"],"latest_commit_sha":null,"homepage":"https://onmyway133.com","language":"HTML","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/onmyway133.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-04-22T17:17:20.000Z","updated_at":"2026-04-22T20:20:26.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/onmyway133/elemental-input","commit_stats":null,"previous_names":["onmyway133/elemental-input"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/onmyway133/elemental-input","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/onmyway133%2Felemental-input","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/onmyway133%2Felemental-input/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/onmyway133%2Felemental-input/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/onmyway133%2Felemental-input/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/onmyway133","download_url":"https://codeload.github.com/onmyway133/elemental-input/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/onmyway133%2Felemental-input/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34716325,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-24T02:00:07.484Z","response_time":106,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["effect","elemental","fire","input","react","water"],"created_at":"2026-06-24T03:35:45.090Z","updated_at":"2026-06-24T03:35:45.642Z","avatar_url":"https://github.com/onmyway133.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# elemental-input\n\nAnimated effect text field for React. Type magic words to trigger **fire**, **water**, **ice**, and 10 more live particle effects.\n\n![](images/banner.png)\n\n## Install\n\n```bash\nnpm install elemental-input\n```\n\n## Usage\n\n```tsx\nimport { EffectTextField } from 'elemental-input';\nimport 'elemental-input/style.css';\n\nfunction App() {\n  const [text, setText] = useState('');\n\n  return (\n    \u003cEffectTextField\n      value={text}\n      onChange={setText}\n      placeholder=\"Type fire, water, ice…\"\n      style={{ height: 400 }}\n    /\u003e\n  );\n}\n```\n\n## Props\n\n| Prop | Type | Default | Description |\n|------|------|---------|-------------|\n| `wordEffects` | `Record\u003cstring, EffectType\u003e` | — | Custom word → effect mappings (merged with defaults) |\n| `enableDefaultEffects` | `boolean` | `true` | Auto-map the 13 built-in magic words |\n| `value` | `string` | — | Controlled value |\n| `defaultValue` | `string` | `''` | Uncontrolled initial value |\n| `onChange` | `(value: string) =\u003e void` | — | Change handler |\n| `placeholder` | `string` | — | Placeholder text |\n| `forceFieldRadius` | `number` | `310` | Mouse repulsion radius (px) |\n| `forceFieldStrength` | `number` | `90` | Mouse repulsion strength |\n| `particleDensity` | `number` | `0.3` | Particle spawn multiplier |\n| `enableJitter` | `boolean` | `true` | Blur words inside the force field |\n\n## Built-in effects\n\n`fire` · `smoke` · `metal` · `wind` · `water` · `ice` · `shadow` · `gold` · `electric` · `neon` · `blood` · `void` · `aurora`\n\n## Custom word mapping\n\n```tsx\n\u003cEffectTextField\n  wordEffects={{\n    storm:    'electric',\n    love:     'gold',\n    night:    'void',\n    ocean:    'water',\n  }}\n/\u003e\n```\n\nSet `enableDefaultEffects={false}` to use only your own mappings.\n\n## Adding a custom effect\n\nEach effect lives in its own file and implements `EffectDefinition`. Register it once at app startup:\n\n```tsx\nimport { registerEffect } from 'elemental-input';\n\nregisterEffect('rainbow', {\n  spawnRate: 1.5,\n  additive: true,\n\n  newParticle(w, h) {\n    const r = Math.random;\n    return {\n      x: w * r(), y: h * r(),\n      vx: (r() - 0.5) * 0.3, vy: -0.3 - r() * 0.5,\n      life: 0, max: 50 + r() * 30, size: 2 + r() * 3,\n    };\n  },\n\n  drawParticle(ctx, p, t) {\n    const hue = (p.x / ctx.canvas.width) * 360;\n    const a   = (1 - t) * 0.8;\n    ctx.fillStyle = `hsla(${hue},100%,65%,${a})`;\n    ctx.beginPath();\n    ctx.arc(p.x, p.y, p.size, 0, Math.PI * 2);\n    ctx.fill();\n  },\n});\n```\n\nThen use it in your mapping:\n\n```tsx\n\u003cEffectTextField wordEffects={{ magic: 'rainbow' }} /\u003e\n```\n\n## License\n\nMIT © [Khoa Pham](mailto:onmyway133@gmail.com)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fonmyway133%2Felemental-input","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fonmyway133%2Felemental-input","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fonmyway133%2Felemental-input/lists"}