{"id":16956394,"url":"https://github.com/bgamari/kicad-hs","last_synced_at":"2025-07-23T03:04:25.302Z","repository":{"id":66202353,"uuid":"151862944","full_name":"bgamari/kicad-hs","owner":"bgamari","description":"Library and tools for working with Kicad designs","archived":false,"fork":false,"pushed_at":"2025-07-09T01:13:45.000Z","size":42,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-07-19T22:25:40.384Z","etag":null,"topics":["kicad"],"latest_commit_sha":null,"homepage":null,"language":"Haskell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bgamari.png","metadata":{"files":{"readme":"README.mkd","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}},"created_at":"2018-10-06T17:10:48.000Z","updated_at":"2025-07-09T01:13:50.000Z","dependencies_parsed_at":"2023-03-01T09:16:04.964Z","dependency_job_id":null,"html_url":"https://github.com/bgamari/kicad-hs","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/bgamari/kicad-hs","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bgamari%2Fkicad-hs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bgamari%2Fkicad-hs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bgamari%2Fkicad-hs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bgamari%2Fkicad-hs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bgamari","download_url":"https://codeload.github.com/bgamari/kicad-hs/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bgamari%2Fkicad-hs/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266608970,"owners_count":23955546,"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-07-23T02:00:09.312Z","response_time":66,"last_error":null,"robots_txt_status":null,"robots_txt_updated_at":null,"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":["kicad"],"created_at":"2024-10-13T22:14:51.146Z","updated_at":"2025-07-23T03:04:25.268Z","avatar_url":"https://github.com/bgamari.png","language":"Haskell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# kicad-hs\n\nThis is a Haskell library for reading and writing Kicad design files (currently\nonly `.kicad_pcb` files). It also includes a handy utility for replicating parts\nof a layout.\n\n## Installation\n\nInstall a [Haskell](https://www.haskell.org/) toolchain.\n```bash\n$ git clone https://github.com/bgamari/kicad-hs\n$ cd kicad-hs\n$ cabal install \n```\n\n## Using kicad-replicate\n\nThe `kicad-replicate` utility provides a convenient way to reuse a part of a\nlayout across multiple sub-schematics of a hierarchical design.\n\nThe utility takes a few inputs\n\n * a [YAML](http://yaml.org/) configuration file (`kicad-replicate.yaml`) which\n   defines the regions to clone\n * a netlist file (`.net`) used to determine component names\n * the Kicad PCB design file (`.kicad_pcb`)\n \nThe configuration file looks something like,\n\n```yaml\npcb-file: my-design.kicad_pcb\nnetlist-file: my-design.net\nunits:\n  - template: /top/gated-integ-unit-b/integ2/\n    trace-regions:\n      - [[248, 87.0], [297, 106.5]]\n      - [[248, 107.0], [297, 126.5]]\n    clones:\n      - sheet: /top/gated-integ-unit-b/integ1/\n        offset: [0, -20]\n      - sheet: /top/gated-integ-unit-a/integ1/\n        offset: [0, 41.5]\n      - sheet: /top/gated-integ-unit-a/integ2/\n        offset: [0, 61.5]\n```\n\nThis configures `kicad-replicate` to create clones of the components in the\n`/top/gated-integ-unit-b/integ2/` subschematic, changing their reference\ndesignators to reflect those of the subschematics given in the `clones` section.\nEach clone is translated by the amount given in the `clones.offset` field.\n\nMoreover, the optional `trace-regions` section specifies a region of traces to\nbe replicated.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbgamari%2Fkicad-hs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbgamari%2Fkicad-hs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbgamari%2Fkicad-hs/lists"}