{"id":20313682,"url":"https://github.com/posthog/posthog-react-rrweb-player","last_synced_at":"2025-04-11T17:16:24.715Z","repository":{"id":46418511,"uuid":"313938386","full_name":"PostHog/posthog-react-rrweb-player","owner":"PostHog","description":null,"archived":false,"fork":false,"pushed_at":"2024-01-31T11:09:52.000Z","size":3604,"stargazers_count":12,"open_issues_count":3,"forks_count":23,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-04-08T12:50:51.931Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/PostHog.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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}},"created_at":"2020-11-18T13:10:27.000Z","updated_at":"2025-04-02T20:04:45.000Z","dependencies_parsed_at":"2024-06-19T19:21:50.550Z","dependency_job_id":null,"html_url":"https://github.com/PostHog/posthog-react-rrweb-player","commit_stats":{"total_commits":105,"total_committers":9,"mean_commits":"11.666666666666666","dds":0.3904761904761904,"last_synced_commit":"9167bea92a7f250de153879421eb16fc965a49f4"},"previous_names":[],"tags_count":12,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PostHog%2Fposthog-react-rrweb-player","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PostHog%2Fposthog-react-rrweb-player/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PostHog%2Fposthog-react-rrweb-player/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PostHog%2Fposthog-react-rrweb-player/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/PostHog","download_url":"https://codeload.github.com/PostHog/posthog-react-rrweb-player/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248447595,"owners_count":21105140,"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","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":"2024-11-14T18:12:21.571Z","updated_at":"2025-04-11T17:16:24.682Z","avatar_url":"https://github.com/PostHog.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# @posthog/react-rrweb-player\n\n\u003e React-based player for rrweb\n\n[![NPM](https://img.shields.io/npm/v/@posthog/react-rrweb-player.svg)](https://www.npmjs.com/package/@posthog/react-rrweb-player) [![JavaScript Style Guide](https://img.shields.io/badge/code_style-standard-brightgreen.svg)](https://standardjs.com)\n\n## Install\n\n```bash\nnpm install --save @posthog/react-rrweb-player\n```\n\n## Usage\n\n```tsx\nimport React, { Component } from 'react'\n\nimport { EventIndex, formatTime, PlayerRef, PlayerContextProvider, PlayerController, PlayerFrame } from '@posthog/react-rrweb-player'\nimport '@posthog/react-rrweb-player/dist/index.css'\n\nclass Example extends Component {\n    render() {\n        return (\n            \u003cPlayerContextProvider\n                ref={ref}\n                events={events}\n                key={recording.key}\n                onPlayerTimeChange={() =\u003e {}}\n                onNext={() =\u003e {}}\n                onPrevious={() =\u003e {}}\n                duration={duration}\n                isBuffering={false}\n            \u003e\n                \u003cPlayerFrame /\u003e\n                \u003cPlayerController /\u003e\n            \u003c/PlayerContextProvider\u003e\n        )\n    }\n}\n```\n\n## Developing locally\n\nTo develop locally, you can run the following commands and an example app will be launched on port 3000.\n\n```bash\nyarn # only the first time to install dependencies\nyarn start # to run the base component\ncd example\nyarn start # to run the example project\n```\n\n## Questions?\n\n### [Join our community.](http://posthog.com/questions)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fposthog%2Fposthog-react-rrweb-player","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fposthog%2Fposthog-react-rrweb-player","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fposthog%2Fposthog-react-rrweb-player/lists"}