{"id":20562443,"url":"https://github.com/6cdh/racket-fixw","last_synced_at":"2026-03-11T14:38:15.568Z","repository":{"id":69421919,"uuid":"602863257","full_name":"6cdh/racket-fixw","owner":"6cdh","description":"a Racket formatter that only fixes whitespaces","archived":false,"fork":false,"pushed_at":"2026-03-07T11:56:23.000Z","size":126,"stargazers_count":12,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2026-03-07T18:15:38.723Z","etag":null,"topics":["racket"],"latest_commit_sha":null,"homepage":"https://docs.racket-lang.org/fixw/","language":"Racket","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/6cdh.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE-APACHE-2.0","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,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2023-02-17T05:07:11.000Z","updated_at":"2026-03-07T11:56:27.000Z","dependencies_parsed_at":"2026-01-26T05:03:47.168Z","dependency_job_id":null,"html_url":"https://github.com/6cdh/racket-fixw","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/6cdh/racket-fixw","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/6cdh%2Fracket-fixw","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/6cdh%2Fracket-fixw/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/6cdh%2Fracket-fixw/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/6cdh%2Fracket-fixw/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/6cdh","download_url":"https://codeload.github.com/6cdh/racket-fixw/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/6cdh%2Fracket-fixw/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30384111,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-11T14:10:17.325Z","status":"ssl_error","status_checked_at":"2026-03-11T14:09:37.934Z","response_time":84,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: 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":["racket"],"created_at":"2024-11-16T04:10:56.806Z","updated_at":"2026-03-11T14:38:15.525Z","avatar_url":"https://github.com/6cdh.png","language":"Racket","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Racket fixw\n\nA Racket formatter that adjusts whitespace but respects newlines.\n\n## :battery: Status\n\nIt should work as expected, except some builtin rules for macros and special forms are missing.\n\n## :printer: Example\n\nbefore\n\n```racket\n#lang racket\n\n(define(fib n )\n(if (\u003c= n 1)\n1\n(+ (fib  (- n 1))\n(fib (- n 2)) )))\n```\n\nafter\n\n```racket\n#lang racket\n\n(define (fib n)\n  (if (\u003c= n 1)\n      1\n      (+ (fib (- n 1))\n         (fib (- n 2)))))\n\n```\n\n## :airplane: Performance\n\n- [x] format a 5k lines file in 100ms on a 6 years old laptop\n\nThe biggest Racket file [class-internal.rkt](https://github.com/racket/racket/blob/9b202f565d85cebdf8b5bb91d013eb0ecf06cba6/racket/collects/racket/private/class-internal.rkt) in [racket/racket](https://github.com/racket/racket) repo has almost 5k lines, so I think it's fast enough.\n\n## :sparkles: Features\n\n- [x] Fixes indentation\n- [x] Respects existing newlines\n- [x] Works on incorrect code\n- [x] Enforce single empty line at the end of file with `-n` cli option\n- [x] Enforces single spaces between tokens (with several exceptions)\n- [x] Raco integration\n- [x] Reads [scmindent](https://github.com/ds26gte/scmindent)-compatible configuration files\n- [x] Skips code surrounded by special comments\n- [x] Supports range formatting\n\nPlanned Features:\n\n- [ ] Customizable formatting system (macro-like)\n  - [ ] Sorting `require` clauses\n  - [ ] Keyword arguments and default arguments support\n\n## :bookmark_tabs: Todo\n\n## :rocket: Run\n\n```shell\n# install\nraco pkg install fixw\n# show help\nraco fixw -h\n# read from stdin and print formatted text to stdout\nraco fixw\n# format all Racket files in current directory recursively\nraco fixw .\n```\n\n## :thinking: Documentation\n\nSee the [online documentation](https://docs.racket-lang.org/fixw/index.html).\n\n## :paperclips: See also\n\n- [fmt](https://github.com/sorawee/fmt) - A Racket formatter that calculates optimal layout.\n- [scmindent](https://github.com/ds26gte/scmindent) - A general Lisp indenter.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F6cdh%2Fracket-fixw","html_url":"https://awesome.ecosyste.ms/projects/github.com%2F6cdh%2Fracket-fixw","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F6cdh%2Fracket-fixw/lists"}