{"id":20826921,"url":"https://github.com/crizmo/pingpal","last_synced_at":"2025-05-07T20:42:20.639Z","repository":{"id":180051174,"uuid":"664485510","full_name":"crizmo/PingPal","owner":"crizmo","description":"Keep your projects alive with this simple pinger","archived":false,"fork":false,"pushed_at":"2024-12-01T17:32:46.000Z","size":34,"stargazers_count":7,"open_issues_count":1,"forks_count":4,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-07T20:42:15.439Z","etag":null,"topics":["ping","pinger","repl","replit","serverless","url"],"latest_commit_sha":null,"homepage":"https://pingpal.vercel.app/","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/crizmo.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":"2023-07-10T04:55:47.000Z","updated_at":"2025-01-13T10:04:35.000Z","dependencies_parsed_at":null,"dependency_job_id":"ae46c2a5-3a13-44fb-ac9f-09f4e940c778","html_url":"https://github.com/crizmo/PingPal","commit_stats":null,"previous_names":["crizmo/repler"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/crizmo%2FPingPal","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/crizmo%2FPingPal/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/crizmo%2FPingPal/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/crizmo%2FPingPal/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/crizmo","download_url":"https://codeload.github.com/crizmo/PingPal/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252954127,"owners_count":21830893,"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":["ping","pinger","repl","replit","serverless","url"],"created_at":"2024-11-17T23:10:28.831Z","updated_at":"2025-05-07T20:42:20.617Z","avatar_url":"https://github.com/crizmo.png","language":"JavaScript","readme":"# PingPal\n\nKeep your projects alive with this simple pinger.\n\n# Usage\n\nIf you want to add your own URLs to the pinger:\n1. Fork this repo.\n2. Edit the `urlClusters` array in `index.js` to add your own URLs and specify the ping interval.\n3. Push the changes to your forked repo.\n4. Go to https://github.com/crizmo/pingpal and click on the \"New Pull Request\" button.\n5. Open a pull request and wait for it to be merged.\n6. Once the pull request is merged, your URLs will be added to the pinger.\n\n## Installation\n\n1. Make sure you have Node.js and npm installed on your system.\n2. Clone this repository or download the code.\n3. Open a terminal and navigate to the project directory.\n4. Run the following command to install the dependencies:\n\n```bash\nnpm install\n```\n\n# Configuration\n\n1. Open the index.js file in a text editor.\n2. Edit the urls Cluster array to add your own URLs.\n\n```javascript\nconst urlClusters = [\n  {\n    name: \"Cluster 1\",\n    pingInterval: 60000, // 1 minute in milliseconds\n    urls: [\n      \"https://qrnotify.onrender.com\",\n      \"https://discord-cards.onrender.com/api/compact/784141856426033233\",\n    ],\n  },\n  {\n    name: \"Cluster 2\",\n    pingInterval: 120000, // 2 minutes in milliseconds\n    urls: [\n      \"https://caw-server.onrender.com\",\n    ],\n  },\n  // Add more URL clusters with names and ping intervals here\n];\n```\n\n3. Save the file.\n4. Open a pull request to add your URLs to the pinger.\n5. Once the pull request is merged, your URLs will be added to the pinger.\n\n# Deployment\n1. Start the server by running the following command:\n\n```bash\nnpm start\n```\n\n2. The server will start running on port 3000.\n3. Open your web browser and navigate to http://localhost:3000 to confirm that the server is running.\n4. Use the following endpoints:\n\n-   /status: Returns the status of each URL.\n-   /keepalive: Confirms that the keep-alive functionality is working.\n\n# Customization\n\n-   You can modify the fetch interval in the setInterval call in the keepReplAlive function.\n-   Customize the URLs in the urls array to suit your requirements.\n\n# License\n\nThis project is licensed under the MIT License.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcrizmo%2Fpingpal","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcrizmo%2Fpingpal","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcrizmo%2Fpingpal/lists"}