{"id":16651186,"url":"https://github.com/dpassen/malapropism","last_synced_at":"2025-04-30T22:28:10.342Z","repository":{"id":39031291,"uuid":"458664604","full_name":"dpassen/malapropism","owner":"dpassen","description":"Malli-backed configuration library","archived":false,"fork":false,"pushed_at":"2025-04-01T22:20:55.000Z","size":122,"stargazers_count":38,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-04-13T09:54:43.724Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Clojure","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/dpassen.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}},"created_at":"2022-02-12T23:33:53.000Z","updated_at":"2025-04-01T22:20:58.000Z","dependencies_parsed_at":"2024-01-16T23:43:51.997Z","dependency_job_id":"74a392fc-c1dc-4b72-afa1-676fe48009ce","html_url":"https://github.com/dpassen/malapropism","commit_stats":{"total_commits":137,"total_committers":3,"mean_commits":"45.666666666666664","dds":"0.021897810218978075","last_synced_commit":"91e20465e2192d3c78b25c0051adb6b4c12d23f0"},"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dpassen%2Fmalapropism","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dpassen%2Fmalapropism/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dpassen%2Fmalapropism/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dpassen%2Fmalapropism/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dpassen","download_url":"https://codeload.github.com/dpassen/malapropism/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251791160,"owners_count":21644355,"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","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":[],"created_at":"2024-10-12T09:24:04.831Z","updated_at":"2025-04-30T22:28:10.324Z","avatar_url":"https://github.com/dpassen.png","language":"Clojure","funding_links":[],"categories":["Clojure"],"sub_categories":[],"readme":"# malapropism\n\n[![test](https://github.com/dpassen/malapropism/actions/workflows/test.yaml/badge.svg)](https://github.com/dpassen/malapropism/actions/workflows/test.yaml)\n[![lint](https://github.com/dpassen/malapropism/actions/workflows/lint.yaml/badge.svg)](https://github.com/dpassen/malapropism/actions/workflows/lint.yaml)\n[![check](https://github.com/dpassen/malapropism/actions/workflows/check.yaml/badge.svg)](https://github.com/dpassen/malapropism/actions/workflows/check.yaml)\n[![editorconfig](https://github.com/dpassen/malapropism/actions/workflows/editorconfig.yaml/badge.svg)](https://github.com/dpassen/malapropism/actions/workflows/editorconfig.yaml)\n[![downloads](https://img.shields.io/clojars/dt/org.passen/malapropism.svg?color=opal)](https://clojars.org/org.passen/malapropism)\n\nAn [omniconf](https://github.com/grammarly/omniconf) inspired config library\nusing [malli](https://github.com/metosin/malli)\n\n## Latest version\n\nmalapropism is deployed to [Clojars](https://clojars.org)\n\n[![Clojars Project](https://img.shields.io/clojars/v/org.passen/malapropism.svg)](https://clojars.org/org.passen/malapropism/)\n\n## Rationale\n\nConfiguration is one of the peripheries of our systems.\nIt's a good place to ensure correctness.\nEnter [malli](https://github.com/metosin/malli), a library that I've really\ngrown to appreciate.\n\nConfiguration should be flexible. Most solutions in this space assume too much.\n\nWith malapropism,\n\n- Stick it in an [atom](https://clojuredocs.org/clojure.core/atom)? Yeah!\n- Put it in a [delay](https://clojuredocs.org/clojure.core/delay)? Okay\n- Keep it behind [core.cache](https://github.com/clojure/core.cache) or\n  [core.memoize](https://github.com/clojure/core.memoize)? Sure, why not?\n- Deliver it to a [promise](https://clojuredocs.org/clojure.core/promise)?\n  I could see it\n- Re-compute it each and every time? I wouldn’t\n- Have a single configuration? Yeah, that makes sense\n- Have more than one? No one's going to stop you\n\n## Usage\n\n```clojure\n(require '[org.passen.malapropism.core :as malapropism])\n\n(def config-schema\n  [:map\n   [:env-key :keyword]\n   [:scm-rev :string]\n   [:port :int]\n   [:prefix\n    {:default \"/api\"}\n    :string]])\n\n(-\u003e (malapropism/with-schema config-schema)\n    (malapropism/with-values-from-env)\n    (malapropism/with-values-from-system)\n    (malapropism/with-values-from-map\n      {:env-key :dev\n       :scm-rev \"923345\"\n       :port    8080\n       :prefix  \"/web\"})\n    (malapropism/verify! :verbose? true))\n```\n\n## Consumers\n\nThese companies use malapropism. Feel free to add your company to the list.\n\n- [Splash Financial](https://www.splashfinancial.com/)\n\n## License\n\nCopyright © 2022-2023 Derek Passen\n\nReleased under an MIT license.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdpassen%2Fmalapropism","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdpassen%2Fmalapropism","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdpassen%2Fmalapropism/lists"}