{"id":29639426,"url":"https://github.com/samdenty/react-ai-flow","last_synced_at":"2025-07-21T20:38:05.396Z","repository":{"id":272986505,"uuid":"906659161","full_name":"samdenty/react-ai-flow","owner":"samdenty","description":"Silky smooth React AI chatbot primitives","archived":false,"fork":false,"pushed_at":"2025-04-27T13:13:06.000Z","size":15353,"stargazers_count":98,"open_issues_count":1,"forks_count":3,"subscribers_count":6,"default_branch":"main","last_synced_at":"2025-07-12T08:44:26.103Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://react-ai-flow.com/","language":"TypeScript","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/samdenty.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}},"created_at":"2024-12-21T14:30:41.000Z","updated_at":"2025-07-03T06:27:48.000Z","dependencies_parsed_at":"2025-02-11T23:24:36.673Z","dependency_job_id":"18f38ddf-5f25-4ecd-bcb8-15448a44daef","html_url":"https://github.com/samdenty/react-ai-flow","commit_stats":null,"previous_names":["samdenty/react-ai-flow"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/samdenty/react-ai-flow","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samdenty%2Freact-ai-flow","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samdenty%2Freact-ai-flow/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samdenty%2Freact-ai-flow/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samdenty%2Freact-ai-flow/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/samdenty","download_url":"https://codeload.github.com/samdenty/react-ai-flow/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samdenty%2Freact-ai-flow/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266375789,"owners_count":23919625,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-07-21T11:47:31.412Z","response_time":64,"last_error":null,"robots_txt_status":null,"robots_txt_updated_at":null,"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":[],"created_at":"2025-07-21T20:37:48.287Z","updated_at":"2025-07-21T20:38:05.375Z","avatar_url":"https://github.com/samdenty.png","language":"TypeScript","funding_links":[],"categories":["TypeScript"],"sub_categories":[],"readme":"[![Demo](https://raw.githubusercontent.com/samdenty/react-ai-flow/refs/heads/main/assets/demo.gif)](https://react-ai-flow.com/)\n\n# What sets this library apart?\n\n- This library uses a single canvas-rendered mask-image, so we can do pixel-level fade-in effects.\n  - Other libraries can accomplish at most a per-character opacity animation with a HTML \u003cspan\u003e soup\n  - but... it means we have to have a custom algorithm\n\n- This library also features a super customizable text splitter API. Pick a built-in splitter (character, word, line, sentence) or provide you own function that splits the visually rendered text on screen.\n\n# Usage\n\n## React\n\n```bash\npnpm install react-ai-flow\n```\n\n```tsx\nimport { StaggerProvider, StaggeredText } from \"react-ai-flow\";\n\nfunction App() {\n  return (\n    \u003cStaggerProvider splitter=\"word\" duration={500}\u003e\n      \u003cStaggeredText\u003e\n        {/* Fades in text */}\n        Hello World\n\n        {/* Then fades in the background of the code block */}\n        \u003cStaggeredText\u003e\n          \u003ccode\u003e\n            {/* Then fades in each letter inside the code block */}\n            \u003cStaggeredText\u003e\n              Hello world\n            \u003c/StaggeredText\u003e\n          \u003c/code\u003e\n        \u003c/StaggeredText\u003e\n      \u003c/StaggeredText\u003e\n    \u003c/StaggerProvider\u003e\n  );\n}\n```\n\n\n## Plain JS DOM API\n\n```bash\npnpm install text-stagger\n```\n\n```ts\nimport { Stagger } from \"text-stagger\";\n\n// Create a stagger orchestrator instance\nconst stagger = new Stagger({\n  // options to pass\n});\n\n// Create a text instance\nconst text = stagger.observeText(someDivContainingText, {\n  splitter: 'word',\n  duration: 500,\n});\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsamdenty%2Freact-ai-flow","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsamdenty%2Freact-ai-flow","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsamdenty%2Freact-ai-flow/lists"}