{"id":29139397,"url":"https://github.com/xvezda/golfy","last_synced_at":"2025-08-08T05:05:11.907Z","repository":{"id":292865925,"uuid":"976174348","full_name":"Xvezda/golfy","owner":"Xvezda","description":":golf: An aggressive JavaScript minifier for code golf.","archived":false,"fork":false,"pushed_at":"2025-05-19T08:03:47.000Z","size":89,"stargazers_count":3,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-30T15:04:41.371Z","etag":null,"topics":["babel-plugin","code-golf","codegolfing","compressor","javascript","mangler","minifier","obfuscator","uglify"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/golfy","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/Xvezda.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,"zenodo":null}},"created_at":"2025-05-01T16:23:43.000Z","updated_at":"2025-05-27T10:56:40.000Z","dependencies_parsed_at":"2025-05-12T15:44:24.776Z","dependency_job_id":"3a6f0005-e86f-4913-bc4b-d7296bdc4a42","html_url":"https://github.com/Xvezda/golfy","commit_stats":null,"previous_names":["xvezda/golfy"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/Xvezda/golfy","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Xvezda%2Fgolfy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Xvezda%2Fgolfy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Xvezda%2Fgolfy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Xvezda%2Fgolfy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Xvezda","download_url":"https://codeload.github.com/Xvezda/golfy/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Xvezda%2Fgolfy/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":269366853,"owners_count":24405250,"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-08-08T02:00:09.200Z","response_time":72,"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":["babel-plugin","code-golf","codegolfing","compressor","javascript","mangler","minifier","obfuscator","uglify"],"created_at":"2025-06-30T15:04:32.256Z","updated_at":"2025-08-08T05:05:11.893Z","avatar_url":"https://github.com/Xvezda.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n  \u003cimg src=\"https://github.com/user-attachments/assets/246eb6e8-1958-4ae1-a08e-c279444b7ab8\" width=\"256\" height=\"256\"\u003e\n\u003c/p\u003e\n\u003cp align=\"center\"\u003e\n  An aggressive JavaScript minifier for code golf.\n\u003c/p\u003e\n\u003chr\u003e\n\ngolfy is a program that converts the input code into code optimized for code golf.\n\n## Example\nThe following code\n```javascript\nconst fs = require('fs');\nconst input = fs.readFileSync('/dev/stdin');\nconsole.log(input);\n```\ncan be transformed as follows\n```javascript\nconsole.log(require(\"fs\").readFileSync(0))\n```\n\n## Goals\nThe goals of this project are as follows:\n- Shorter code over stability\n- Optimization of the output over processing time\n- The shortest possible expression, even if it's hacky\n\nThe things this project does not aim for:\n- Ensuring compatibility across various runtime environments and backward compatibility\n- Maintaining internal implementation consistency with the input code (as long as the same input produces the same output, it's fine)\n- Execution performance (code length takes priority)\n\n## Usage\n\n\u003e [!WARNING]  \n\u003e WIP project and is highly experimental and unstable.\n\n```sh\nnpm install -g golfy\n\ngolfy code.js\n# or\ncat code.js | golfy\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxvezda%2Fgolfy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fxvezda%2Fgolfy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxvezda%2Fgolfy/lists"}