{"id":24087962,"url":"https://github.com/tinybirdco/demo-user-generated-content-analytics","last_synced_at":"2026-06-12T19:32:50.723Z","repository":{"id":231613842,"uuid":"777397841","full_name":"tinybirdco/demo-user-generated-content-analytics","owner":"tinybirdco","description":null,"archived":false,"fork":false,"pushed_at":"2024-04-05T13:02:50.000Z","size":317,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-11-20T19:24:44.924Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","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/tinybirdco.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","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":"2024-03-25T19:23:12.000Z","updated_at":"2025-08-29T15:58:44.000Z","dependencies_parsed_at":null,"dependency_job_id":"a6e7ec3b-b400-4f3f-b5f1-ea6ee4408c34","html_url":"https://github.com/tinybirdco/demo-user-generated-content-analytics","commit_stats":null,"previous_names":["tinybirdco/demo-user-generated-content-analytics"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/tinybirdco/demo-user-generated-content-analytics","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tinybirdco%2Fdemo-user-generated-content-analytics","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tinybirdco%2Fdemo-user-generated-content-analytics/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tinybirdco%2Fdemo-user-generated-content-analytics/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tinybirdco%2Fdemo-user-generated-content-analytics/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tinybirdco","download_url":"https://codeload.github.com/tinybirdco/demo-user-generated-content-analytics/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tinybirdco%2Fdemo-user-generated-content-analytics/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34260309,"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-12T02:00:06.859Z","response_time":109,"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":[],"created_at":"2025-01-10T03:56:40.609Z","updated_at":"2026-06-12T19:32:50.716Z","avatar_url":"https://github.com/tinybirdco.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Build multi-tenant user-facing analytics for a User-Generated Content (UGC) Platform with Mux and Tinybird\nLearn how to build a real-time analytics app that processes playback data from Mux in Tinybird and visualizes that data in real-time on a React dashboard.\n\n### Prerequisites\n\n- Python 3.8\n- Node.js\n\n## Instructions\n\nFollow these instructions to deploy the working version of this application.\n\n### 0. Create a free Tinybird Workspace\n\nFirst, create a [free Tinybird account](https://www.tinybird.co/signup). Then create a new Workspace when prompted. You can name it whatever you want.\n\n### 1. Clone the repository\n\n```sh\ngit clone https://github.com/tinybirdco/demo-user-generated-content-analytics.git\ncd demo-user-generated-content-analytics\n```\n\n### 2. Install the Tinybird CLI and dependencies\n\n```sh\ncd tinybird\npython -mvenv .e\n. .e/bin/activate\npip install tinybird-cli confluent_kafka\n```\n\n### 3. Authenticate to Tinybird\n\nCopy your User Admin Token from the Tinybird UI. Your user admin token is the token with the format admin \u003cyour email address\u003e.\n\nFrom the `/tinybird` directory, run the following command:\n\n```sh\nexport TB_TOKEN=\u003cyour user admin token\u003e\nTB auth\n```\n\n\u003e :warning: Your token and workspace details will be stored in a .tinyb file. If you intend to push this to a public repository, add the `.tinyb` to your `.gitignore`.\n\n### 4. Push the resources to Tinybird\nRun this command:\n\n```sh\ncd tinybird\ntb push --force\n```\n\nThis will push all of the data project files to the Tinybird server.\n\n\n### 5. Start streaming data to Tinybird\n\nUse the data generator to start streaming data to a topic. The script accepts a single argument for the approximate number of events per second you want to send:\n\n```sh\ncd mux-data\npython generate_mux_data.py 50\n```\n\n### 6. Create tokens\n\nFind two tokens and use the `create-jwt.js` file to create two Tinybird tokens with row-level security on the `core_stats_mv` Data Source. Then add those tokens in lines 17 and 18 of the `users/[userId]/page.tsx` file.\n\n### 7. Run the dashboard!\n\n```sh\nnpm install \u0026\u0026 npm run dev\n```\n\n### 8. Open the dashboard!\n\nYou should now have a functioning real-time dashboard at localhost:3000\n\n## Contributing\n\nIf you find any issues or have suggestions for improvements, please submit an issue or a [pull request](https://github.com/tinybirdco/demo-user-generated-content-analytics/pulls?q=is%3Apr+is%3Aopen+sort%3Aupdated-desc).\n\n## License\n\nThis code is available under the MIT license. See the [LICENSE](https://github.com/tinybirdco/demo-user-generated-content-analytics/blob/main/LICENSE.txt) file for more details.\n\n## Need help?\n\n\u0026bull; [Community Slack](https://www.tinybird.co/community) \u0026bull; [Tinybird Docs](https://www.tinybird.co/docs) \u0026bull;\n\n## Authors\n\n- [Cameron Archer](https://github.com/tb-peregrine)\n- [Dave Kiss](https://github.com/davekiss)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftinybirdco%2Fdemo-user-generated-content-analytics","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftinybirdco%2Fdemo-user-generated-content-analytics","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftinybirdco%2Fdemo-user-generated-content-analytics/lists"}