{"id":27386279,"url":"https://github.com/igorkowalczyk/repl-uptime","last_synced_at":"2025-10-08T21:55:35.045Z","repository":{"id":57682494,"uuid":"481692202","full_name":"IgorKowalczyk/repl-uptime","owner":"IgorKowalczyk","description":"🤙 Don't let your repl go to sleep! Create a http server with just one line of code and keep pinging it!","archived":false,"fork":false,"pushed_at":"2025-09-30T23:41:31.000Z","size":2085,"stargazers_count":16,"open_issues_count":7,"forks_count":5,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-10-01T01:18:23.688Z","etag":null,"topics":["http-server","javascript","nodejs","repl","replit","terminal","uptimerobot"],"latest_commit_sha":null,"homepage":"https://npm.im/@igorkowalczyk/repl-uptime","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/IgorKowalczyk.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"license.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":".github/codeowners","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null},"funding":{"github":["igorkowalczyk"]}},"created_at":"2022-04-14T17:30:37.000Z","updated_at":"2025-09-10T16:52:41.000Z","dependencies_parsed_at":"2024-03-08T23:29:57.291Z","dependency_job_id":"e9f137b5-2b4e-475d-a678-2541056d52d1","html_url":"https://github.com/IgorKowalczyk/repl-uptime","commit_stats":{"total_commits":85,"total_committers":4,"mean_commits":21.25,"dds":0.6235294117647059,"last_synced_commit":"0f7e3b2d3a5ec644f96165acca10c23129c7ebc0"},"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"purl":"pkg:github/IgorKowalczyk/repl-uptime","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/IgorKowalczyk%2Frepl-uptime","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/IgorKowalczyk%2Frepl-uptime/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/IgorKowalczyk%2Frepl-uptime/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/IgorKowalczyk%2Frepl-uptime/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/IgorKowalczyk","download_url":"https://codeload.github.com/IgorKowalczyk/repl-uptime/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/IgorKowalczyk%2Frepl-uptime/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279000689,"owners_count":26082837,"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","status":"online","status_checked_at":"2025-10-08T02:00:06.501Z","response_time":56,"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":["http-server","javascript","nodejs","repl","replit","terminal","uptimerobot"],"created_at":"2025-04-13T17:18:09.654Z","updated_at":"2025-10-08T21:55:35.017Z","avatar_url":"https://github.com/IgorKowalczyk.png","language":"TypeScript","funding_links":["https://github.com/sponsors/igorkowalczyk"],"categories":[],"sub_categories":[],"readme":"![Repl-uptime](https://github.com/IgorKowalczyk/repl-uptime/assets/49127376/bba7b12a-875d-4d71-b595-4b9a9ab0f965)\n\n\u003cdiv align=\"center\"\u003e\n  \u003ca aria-label=\"GitHub License\" href=\"https://github.com/igorkowalczyk/repl-uptime/blob/main/license.md\"\u003e\n    \u003cimg src=\"https://img.shields.io/github/license/igorkowalczyk/repl-uptime?color=%23F26207\u0026logo=github\u0026style=flat-square\u0026label=License\"\u003e\n  \u003c/a\u003e\n  \u003ca aria-label=\"NPM Version\" href=\"https://npmjs.com/package/@igorkowalczyk/repl-uptime\"\u003e\n    \u003cimg src=\"https://img.shields.io/npm/v/%40igorkowalczyk%2Frepl-uptime/latest.svg?logo=npm\u0026logoColor=fff\u0026style=flat-square\u0026color=%23F26207\u0026label=Version\"\u003e\n  \u003c/a\u003e\n  \u003ca aria-label=\"NPM Downloads\" href=\"https://npmjs.com/package/@igorkowalczyk/repl-uptime\"\u003e\n    \u003cimg src=\"https://img.shields.io/npm/dw/%40igorkowalczyk%2Frepl-uptime?logo=npm\u0026logoColor=fff\u0026style=flat-square\u0026color=%23F26207\u0026label=Downloads\"\u003e\n  \u003c/a\u003e\n\u003c/div\u003e\n\n---\n\n## 📥 Installation\n\n**Node.js v12.0.0 or newer is required.**\n\n```sh\nnpm install @igorkowalczyk/repl-uptime\nyarn add @igorkowalczyk/repl-uptime\npnpm add @igorkowalczyk/repl-uptime\n```\n\n## 📦 Examples\n\n**No Config**\n\n```javascript\n/// ES6\nimport Server from \"@igorkowalczyk/repl-uptime\";\nnew Server();\n\n/// CommonJS\nconst Server = require(\"@igorkowalczyk/repl-uptime\");\nnew Server();\n```\n\n**That's it!** 🎉 Your repl is now ready to be pinged. You can use [uptimerobot.com](https://uptimerobot.com) or [hetrixtools.com](https://hetrixtools.com) to ping your repl.\n\n**With Config (Advanced)**\n\n```javascript\n/// ES6\nimport Server from \"@igorkowalczyk/repl-uptime\";\nnew Server({\n port: 8080,\n path: \"/\",\n message: \"🤙 Don't let your repl go to sleep!\",\n debug: true,\n});\n\n/// CommonJS\nconst Server = require(\"@igorkowalczyk/repl-uptime\");\n\nnew Server({\n port: 8080,\n path: \"/\",\n message: \"🤙 Don't let your repl go to sleep!\",\n debug: true,\n});\n```\n\n## 📚 Documentation\n\n### 🔧 Properties\n\n| Option    | Type      | Default   | Description                                                                                                                        |\n| --------- | --------- | --------- | ---------------------------------------------------------------------------------------------------------------------------------- |\n| `port`    | `Number`  | `8080`    | The port number on which the server will listen for incoming requests.                                                             |\n| `path`    | `String`  | `/`       | The custom URL path to be used for handling incoming requests.                                                                     |\n| `message` | `String`  | `200 OK!` | The custom response message that will be sent back to clients when the request is successfully handled. Can be HTML or plain text. |\n| `debug`   | `Boolean` | `false`   | If set to `true`, enables debugging mode, which may log additional information about the server's behavior.                        |\n\n### 📜 Functions\n\n| Function               | Description                                                                                                                                                                                                                                                   |\n| ---------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |\n| `constructor(options)` | Initializes the server with the provided options and starts listening on the specified port.                                                                                                                                                                  |\n| `listen()`             | Starts the server to listen for incoming requests on the specified port. Returns a promise that resolves when the server starts listening successfully. If an error occurs, the promise is rejected. The function is called automatically by the constructor. |\n| `stop()`               | Stops the server and closes the underlying HTTP server instance. Returns a promise that resolves when the server is successfully closed. If an error occurs, the promise is rejected.                                                                         |\n\n## ⁉️ Issues\n\nIf you come across any errors or have suggestions for improvements, please create a [new issue here](https://github.com/igorkowalczyk/repl-uptime/issues) and describe it clearly.\n\n## 📥 Pull Requests\n\nWhen submitting a pull request, please follow these steps:\n\n- Clone [this repository](https://github.com/igorkowalczyk/repl-uptime) `https://github.com/IgorKowalczyk/repl-uptime.git`\n- Create a branch from `main` and give it a meaningful name (e.g. `my-awesome-new-feature`).\n- Open a [pull request](https://github.com/igorkowalczyk/repl-uptime/pulls) on [GitHub](https://github.com/) and clearly describe the feature or fix you are proposing.\n\n## 📋 License\n\nThis project is licensed under the MIT. See the [LICENSE](https://github.com/igorkowalczyk/repl-uptime/blob/main/license.md) file for details\n\n---\n\n\u003csub\u003eThis package is an independent project and is not affiliated, endorsed, or associated with \u003ca href=\"https://replit.com\"\u003eReplit\u003c/a\u003e in any way.\u003c/sub\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Figorkowalczyk%2Frepl-uptime","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Figorkowalczyk%2Frepl-uptime","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Figorkowalczyk%2Frepl-uptime/lists"}