{"id":51365110,"url":"https://github.com/yaitskov/css-parser","last_synced_at":"2026-07-03T01:34:09.266Z","repository":{"id":354031855,"uuid":"1214936046","full_name":"yaitskov/css-parser","owner":"yaitskov","description":"Modern CSS parser in pure Haskell built on Alex+Happy stack","archived":false,"fork":false,"pushed_at":"2026-05-20T11:34:55.000Z","size":791,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2026-05-20T15:52:39.960Z","etag":null,"topics":["alex","css","happy","parser"],"latest_commit_sha":null,"homepage":"","language":"Haskell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/yaitskov.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-04-19T08:52:45.000Z","updated_at":"2026-05-20T11:33:20.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/yaitskov/css-parser","commit_stats":null,"previous_names":["yaitskov/css-parser"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/yaitskov/css-parser","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yaitskov%2Fcss-parser","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yaitskov%2Fcss-parser/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yaitskov%2Fcss-parser/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yaitskov%2Fcss-parser/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yaitskov","download_url":"https://codeload.github.com/yaitskov/css-parser/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yaitskov%2Fcss-parser/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":35069183,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-07-02T02:00:06.368Z","response_time":173,"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":["alex","css","happy","parser"],"created_at":"2026-07-03T01:34:08.648Z","updated_at":"2026-07-03T01:34:09.253Z","avatar_url":"https://github.com/yaitskov.png","language":"Haskell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# css-parser\n\nThis is a modern CSS parser and printer written in pure Haskell with Alex/Happy stack.\nCSS libraries test set includes: bootstrap, carbon, patternfly, uikit, primer, uswds, etc.\n\ncss-parser is based on [css-selectors](https://hackage.haskell.org/package/css-selectors).\n\nThe work is started to provide info about style sheets structure to\n[miso-css](https://github.com/yaitskov/miso-css) library.\n\n## Dev\n\n``` shell\n$ nix develop\n$ emacs src/CssParser.hs \u0026\n$ cabal test\n$ cabal repl\nghci\u003e import CssParser\nghci\u003e parseCss \"p {x: 1px;}\"\nCssFile {rules = [CssRule (Selector Nothing (TagSelector {tagNs = NoBar, tagName = TagName \"p\", tagSubSelectors = []}) [] :| []) [CssLeafRule (KnownDescriptor XT) (PropVals (IntVal (TypedNum \"1\" Px) :| []) Nothing)]]}\n```\n\n``` shell\nnix build\n./result file.css\n./result \u003c file.css\n```\n\n### Integration tests\n\n``` shell\ncd itest\nnix develop\nintest\n```\n\nLinks to successfully parsed CSS files are stored in `.css-hashes`\nfolder to exclude them from consequent `intest` reruns.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyaitskov%2Fcss-parser","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyaitskov%2Fcss-parser","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyaitskov%2Fcss-parser/lists"}