{"id":21436721,"url":"https://github.com/missingfaktor/akar","last_synced_at":"2026-04-25T22:02:46.067Z","repository":{"id":57713066,"uuid":"44846337","full_name":"missingfaktor/akar","owner":"missingfaktor","description":"First-class patterns for Clojure. Made with love, functions, and just the right amount of syntax.","archived":false,"fork":false,"pushed_at":"2026-03-29T13:09:45.000Z","size":3560,"stargazers_count":183,"open_issues_count":0,"forks_count":13,"subscribers_count":16,"default_branch":"master","last_synced_at":"2026-03-29T15:57:10.666Z","etag":null,"topics":["clojure","functional-programming","pattern-matching"],"latest_commit_sha":null,"homepage":"","language":"Clojure","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/missingfaktor.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGES.md","contributing":"CONTRIBUTING.md","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":"AGENTS.md","dco":null,"cla":null}},"created_at":"2015-10-24T01:00:45.000Z","updated_at":"2026-03-29T13:09:48.000Z","dependencies_parsed_at":"2024-07-30T02:24:00.504Z","dependency_job_id":"cffd859d-42bd-4770-a9e8-8ee144e2d0fe","html_url":"https://github.com/missingfaktor/akar","commit_stats":{"total_commits":240,"total_committers":7,"mean_commits":"34.285714285714285","dds":0.03749999999999998,"last_synced_commit":"66403b735cafab4e9fb971b4bf56e899ee84962f"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/missingfaktor/akar","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/missingfaktor%2Fakar","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/missingfaktor%2Fakar/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/missingfaktor%2Fakar/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/missingfaktor%2Fakar/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/missingfaktor","download_url":"https://codeload.github.com/missingfaktor/akar/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/missingfaktor%2Fakar/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32278249,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-25T18:29:39.964Z","status":"ssl_error","status_checked_at":"2026-04-25T18:29:32.149Z","response_time":59,"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":["clojure","functional-programming","pattern-matching"],"created_at":"2024-11-23T00:14:11.197Z","updated_at":"2026-04-25T22:02:46.062Z","avatar_url":"https://github.com/missingfaktor.png","language":"Clojure","funding_links":[],"categories":["Pattern Matching"],"sub_categories":[],"readme":"# Akar\n\n[![Clojars Project](https://img.shields.io/clojars/v/london.rahul/akar.svg)](https://clojars.org/london.rahul/akar)\n[![Clojars Project](https://img.shields.io/clojars/v/london.rahul/akar-core.svg)](https://clojars.org/london.rahul/akar-core)\n[![Clojars Project](https://img.shields.io/clojars/v/london.rahul/akar-exceptions.svg)](https://clojars.org/london.rahul/akar-exceptions)\n[![Clojars Project](https://img.shields.io/clojars/v/london.rahul/akar-commons.svg)](https://clojars.org/london.rahul/akar-commons)\n\n\u003cimg src=\"assets/logo.png\" width=\"300\"\u003e\n\n\u003e \\[Speech] \u003cbr/\u003e\n\u003e Queen: Hmm... \u003cbr/\u003e\n\u003e \u003cbr/\u003e \n\u003e *Who's been painting my roses red?* \u003cbr/\u003e\n\u003e *Who's been painting my roses red?* \u003cbr/\u003e\n\u003e \u003cbr/\u003e \n\u003e *Who dares to taint with vulgar paint* \u003cbr/\u003e\n\u003e *the royal flower bed?* \u003cbr/\u003e\n\u003e \u003cbr/\u003e \n\u003e *For painting my roses red* \u003cbr/\u003e\n\u003e *someone will lose his head.* \u003cbr/\u003e\n\u003e \u003cbr/\u003e \n\u003e \\[Spoken] \u003cbr/\u003e\n\u003e **Three:** Oh no, your majesty, please, it's all his fault! \u003cbr/\u003e\n\u003e **Two:** Not me, Your Grace. The Ace! The Ace! \u003cbr/\u003e\n\u003e **Queen:** You? \u003cbr/\u003e\n\u003e **Ace:** No, Two! \u003cbr/\u003e\n\u003e **Queen:** The Deuce, you say? \u003cbr/\u003e\n\u003e **Two:** Not me, the Tres! \u003cbr/\u003e\n\u003e **Queen:** That's enough! **Off with their heads!** \u003cbr/\u003e\n\nAkar is a [pattern matching](https://en.wikibooks.org/wiki/Haskell/Pattern_matching) library for Clojure, with focus on simplicity and abstraction. \n\nAkar patterns are first-class values (just functions, actually), that can be manipulated, composed, abstracted over, like any other values. In fact, this is exactly how various pattern operations, such as guards, alternation, and views are implemented in Akar.\n\nThe library also features a syntactic layer that makes common use cases convenient, but at the same time stays true to the first-class spirit of the core model. \n\nAkar (IPA: \\[ɑkɑɾ], Devanagari: आकार) is a Sanskrit/Marathi word for shape. The logo is a [Saraswati](https://en.wikipedia.org/wiki/Saraswati) [Kolam](https://en.wikipedia.org/wiki/Kolam), a diagrammatic representation of Hindu goddess of wisdom.\n \nTo learn more, read the [Akar tutorial](TUTORIAL.md) and [FAQs](FAQs.md).\n\n## Example\n\n```clojure\n(ns your.app\n  (:require [akar.syntax :refer [match]]\n            [clojure.data.xml :as xml]))\n\n; Example borrowed from https://wiki.scala-lang.org/display/SYGN/Xml-pattern-matching\n(defn italics [xml-node]\n  (match xml-node\n         {:tag :i :content (:seq [contents])} (println contents)\n         {:tag :node :content nodes}          (doseq [child nodes] (italics child))\n         :_                                   nil))\n\n(def xml-doc\n  (xml/parse (java.io.StringReader.\n               \"\u003cnode\u003e\n                  \u003cnode\u003eThis is \u003ci\u003esome\u003c/i\u003e text content.\n                    \u003cnode\u003eThis is \u003ci\u003edeeper\u003c/i\u003e stuff.\u003c/node\u003e\n                  \u003c/node\u003e\n                  \u003cnode\u003eI am some text.\n                    \u003ctitle\u003eI am \u003ci\u003ea title\u003c/i\u003e.\u003c/title\u003e\n                    This is a sentence with an \u003ci\u003eitalicized\u003c/i\u003e entry.\n                  \u003c/node\u003e\n                \u003c/node\u003e\")))\n\n(italics xml-doc)\n\n; prints:\n;   some\n;   deeper\n;   italicized\n```\n \n## Contributing\n\nDo you wish to contribute to Akar? Splendid! Get started [here](CONTRIBUTING.md). \n \n## License\n\nCopyright © 2017-2026 Rahul Goma Phulore\n\nDistributed under Apache License 2.0.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmissingfaktor%2Fakar","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmissingfaktor%2Fakar","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmissingfaktor%2Fakar/lists"}