{"id":19449145,"url":"https://github.com/lafkpages/safe-logging-replit","last_synced_at":"2026-05-16T19:33:53.713Z","repository":{"id":161750539,"uuid":"636376844","full_name":"lafkpages/safe-logging-replit","owner":"lafkpages","description":"A wrapper for the Node.js console to safely log strings to the console avoiding DoS vulnerabilities on Replit.","archived":false,"fork":false,"pushed_at":"2023-09-30T11:17:16.000Z","size":11,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-25T09:18:29.439Z","etag":null,"topics":["dos","fix","log","logging","patch","replit","safe","vuln"],"latest_commit_sha":null,"homepage":"https://npmjs.com/package/safe-logging-replit","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/lafkpages.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":"2023-05-04T17:59:34.000Z","updated_at":"2023-06-19T16:52:50.000Z","dependencies_parsed_at":null,"dependency_job_id":"eca4eb66-6273-4170-a599-af27242e600d","html_url":"https://github.com/lafkpages/safe-logging-replit","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/lafkpages/safe-logging-replit","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lafkpages%2Fsafe-logging-replit","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lafkpages%2Fsafe-logging-replit/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lafkpages%2Fsafe-logging-replit/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lafkpages%2Fsafe-logging-replit/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lafkpages","download_url":"https://codeload.github.com/lafkpages/safe-logging-replit/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lafkpages%2Fsafe-logging-replit/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33116129,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-16T18:38:32.183Z","status":"ssl_error","status_checked_at":"2026-05-16T18:38:29.903Z","response_time":115,"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":["dos","fix","log","logging","patch","replit","safe","vuln"],"created_at":"2024-11-10T16:30:13.149Z","updated_at":"2026-05-16T19:33:53.696Z","avatar_url":"https://github.com/lafkpages.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Safe logging for Replit\n\nA wrapper for the Node.js console to safely log strings to the console avoiding DoS vulnerabilities on Replit.\n\n## Example\n\n```js\nconst { makeConsoleSafe, forbiddenBitcoinStr } = require('safe-logging-replit');\n\n// This is UNSAFE\nconsole.log(forbiddenBitcoinStr);\n\nmakeConsoleSafe(console);\n\n// This is now safe\nconsole.log(forbiddenBitcoinStr);\n```\n\nA screen recording of with vs. without:\n\n![video](https://cdn.discordapp.com/attachments/439966584501436416/1092958115508527205/safe-logging-replit_demo.mov)\n\n## Why use this?\n\nThis package aims to fix a denial of service vulnerability on Replit. Not going into details here as it's a security vulnerability yet to be reported. But the vulnerability consists of the attacker sending specially crafted payloads to specific parts of your app to log a special string to your console. This string is seen as malicious by Replit, and your Repl gets flagged and taken down.\n\nWith this package, you avoid this vulnerability completely. Because of how strings get printed with this package, Replit can't detect them properly and therefore it's safe to print whatever you want.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flafkpages%2Fsafe-logging-replit","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flafkpages%2Fsafe-logging-replit","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flafkpages%2Fsafe-logging-replit/lists"}