{"id":24942226,"url":"https://github.com/suyious/purrr.backend","last_synced_at":"2026-02-22T04:36:11.384Z","repository":{"id":274945418,"uuid":"860505695","full_name":"Suyious/purrr.backend","owner":"Suyious","description":"Backend for Purrr - Chat Application that connects randomly among online users","archived":false,"fork":false,"pushed_at":"2025-01-30T09:12:21.000Z","size":41,"stargazers_count":1,"open_issues_count":5,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-10T03:47:04.184Z","etag":null,"topics":["chat","express","nodejs","socket-io","web-sockets"],"latest_commit_sha":null,"homepage":"https://purrr.chat","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/Suyious.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}},"created_at":"2024-09-20T15:03:19.000Z","updated_at":"2025-01-30T09:09:02.000Z","dependencies_parsed_at":null,"dependency_job_id":"8e2adae0-49c3-4489-883c-d8bcc2a7bef3","html_url":"https://github.com/Suyious/purrr.backend","commit_stats":null,"previous_names":["suyious/purrr.backend"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Suyious/purrr.backend","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Suyious%2Fpurrr.backend","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Suyious%2Fpurrr.backend/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Suyious%2Fpurrr.backend/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Suyious%2Fpurrr.backend/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Suyious","download_url":"https://codeload.github.com/Suyious/purrr.backend/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Suyious%2Fpurrr.backend/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29704834,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-22T03:17:42.375Z","status":"ssl_error","status_checked_at":"2026-02-22T03:17:31.622Z","response_time":110,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["chat","express","nodejs","socket-io","web-sockets"],"created_at":"2025-02-02T18:59:31.374Z","updated_at":"2026-02-22T04:36:11.372Z","avatar_url":"https://github.com/Suyious.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Purrr.chat Backend\n\nThis repository contains the backend code for **Purrr.chat**, a random chat application that pairs users for real-time text and image-based communication.\n\n## Features\n- **Express.js**: Backend server using Express.\n- **WebSockets with Socket.io**: Real-time communication using WebSockets and the `socket.io` library.\n- **Random User Pairing**: Automatically pair users with other active users.\n- **TypeScript**: Ensures type safety throughout the backend code.\n\n## Technologies Used\n- **Express.js**: v4.21.0\n- **Socket.io**: v4.7.5 for WebSocket connections\n- **TypeScript**: v5.6.2 for type safety\n- **CORS**: v2.8.5 to handle Cross-Origin Resource Sharing\n\n## Related Repositories\n- [Purrr.chat Frontend](https://github.com/yourusername/purrr-frontend)\n\n## Installation\n\n1. Clone the repository:\n    ```bash\n    git clone https://github.com/yourusername/purrr-backend.git\n    cd purrr-backend\n    ```\n\n2. Install dependencies:\n    ```bash\n    npm install\n    ```\n\n3. Run the development server:\n    ```bash\n    npm run dev\n    ```\n\n4. Build and run the server in production:\n    ```bash\n    npm run build\n    npm start\n    ```\n\n## WebSocket Events\nThe backend listens for the following WebSocket events:\n- `connection`: Establishes a WebSocket connection with the client.\n- `disconnect`: Handles when a user disconnects from the server.\n- `chat message`: Receives and broadcasts messages between paired users.\n- `image upload`: Handles image sharing during a chat.\n\n## Scripts\n\n- `npm run dev`: Run the application in development mode.\n- `npm run build`: Compile TypeScript into JavaScript.\n- `npm start`: Start the application in production mode.\n\n\n## Contributing\nThank you for contributing to this open-source project! We strive to create a safe and collaborative environment at Purrr.chat. Please follow these contribution guidelines:\n\n### Contribution Rules\n1. **Fork the Repository**: Start by forking the repository before making any changes. \n2. **Create a New Branch**: Use the issue title as the name to create a new branch and start implementing your changes.\n3. **Push Your Changes**: Once your changes are ready, push them to your fork, create a pull request, and wait for a review.\n4. **Review Process**: We will review your changes, and if accepted, they will be merged into the master branch.\n5. **Stay Updated**: Before starting new work, pull the latest changes from the master branch and merge them into your local branch to avoid conflicts.\n\n### Working on a Task (Important)\n1. **Open Issues**: Please open issues for new features in the issues section.\n2. **Request Assignment**: If you wish to work on an existing issue, request to be assigned to it.\n3. **No Unassigned Work**: If you start working on an issue without being assigned, we may not prioritize reviewing your changes, and they may be rejected in most cases.\n4. **Assigned Work**: Once assigned, you can start working and must follow the contribution guidelines to avoid merge conflicts.\n\n## License\nThis project is licensed under the ISC License.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsuyious%2Fpurrr.backend","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsuyious%2Fpurrr.backend","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsuyious%2Fpurrr.backend/lists"}