{"id":13808143,"url":"https://github.com/Sanix-Darker/tidi","last_synced_at":"2025-05-14T02:31:22.969Z","repository":{"id":43753883,"uuid":"447776712","full_name":"Sanix-Darker/tidi","owner":"Sanix-Darker","description":"The 2Kb smallest Chat component.","archived":false,"fork":false,"pushed_at":"2024-11-13T23:55:13.000Z","size":2413,"stargazers_count":73,"open_issues_count":2,"forks_count":8,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-11-17T10:04:01.943Z","etag":null,"topics":["chat","chat-application","chatapp","chatroom"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/Sanix-Darker.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":"2022-01-13T22:54:05.000Z","updated_at":"2024-11-13T23:55:10.000Z","dependencies_parsed_at":"2024-06-20T11:15:04.179Z","dependency_job_id":"3854a13f-a198-4c69-9291-ce9c22cbb852","html_url":"https://github.com/Sanix-Darker/tidi","commit_stats":{"total_commits":23,"total_committers":2,"mean_commits":11.5,"dds":"0.17391304347826086","last_synced_commit":"983e87e52ce9da1c91553910e273006ef389d753"},"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Sanix-Darker%2Ftidi","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Sanix-Darker%2Ftidi/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Sanix-Darker%2Ftidi/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Sanix-Darker%2Ftidi/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Sanix-Darker","download_url":"https://codeload.github.com/Sanix-Darker/tidi/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225023820,"owners_count":17408774,"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":["chat","chat-application","chatapp","chatroom"],"created_at":"2024-08-04T01:01:35.894Z","updated_at":"2024-11-19T00:30:35.131Z","avatar_url":"https://github.com/Sanix-Darker.png","language":"JavaScript","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"readme":"# tidi\n\nMeet tidi, the `2kb` bubble chat component for any website... made using preact, running with a `4MB` compiled backend service.\n\nFrontEnd\n\n![screen](./readme-resources/size.png)\n\nBackend\n\n![screen2](./readme-resources/size2.png)\n\n## Disclaimer\n\nI made this project for a specific need, that was a lite 'live chat' on some platform like twitter from the \"twitter space\" feature, the final idea was then to come up with a web extension that could allow chatting all over the internet with a single roomkey and an username, that's why the project was first called ttspch (standing for twitter space chat)... well.., i decided to change it due to the impossible pronounciation thing....\n\n![demo](./readme-resources/demo.png)\n\n## Requirements\n\n- node/npm (for dev)\n- go (for dev)\n- Docker (for the prod)\n\n## CLI Commands\n\nThe backend should be running first before the frontend ...\n\n### Back End\n\n#### Prod\n\n```bash\n# start the docker container\ncd backend \u0026\u0026 make docker-run\n\n# or using pm2 :\n# cd backend\n# pm2 start --name tidi-backend make -- docker-run\n```\n\n### Dev\n\n```bash\n# Start the backend app\ncd backend \u0026\u0026 make run\n```\n\nThe service should be running on port `:1324`\n\n### Front End\n\n#### Prod\n\n```bash\n# This step is optional, because you can use the provided dist resource,\n# ths command will install dependencies, build bundles to be consumed\n# copy the appropriate html file in dist\nmake build-dist\n\n# then serve the dist folder with an http server\ncd dist \u0026\u0026 http-server\n```\n\n#### Dev\n\n``` bash\n# install dependencies\nnpm install\n\n# serve with hot reload at localhost:8080\nnpm run dev\n```\n\nThe app should be accessible on port `:8080`\n\n\n## Integration\n\nLet say you want to integrate it inside you're application, you will just have to pass to the component, two parameters:\n- The Host of the running service\n- The Username of the current user\n\n![integration](./readme-resources/integration.png)\n\n\n## Xtensions\n\nI managed to make a small test chrome web extension for tidi and it's working pretty fine tho on a NFT twitter space...\n\nClick on the image to whatch the video:\n\n[![xtension](./readme-resources/xtension.png)](https://youtu.be/sSj8BVSP7P4)\n\n## Author\n\n- [darker](https://github.com/sanix-darker)\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FSanix-Darker%2Ftidi","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FSanix-Darker%2Ftidi","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FSanix-Darker%2Ftidi/lists"}