{"id":16447182,"url":"https://github.com/junekelly/clj-omni","last_synced_at":"2025-12-12T01:23:23.068Z","repository":{"id":62433917,"uuid":"47452642","full_name":"JuneKelly/clj-omni","owner":"JuneKelly","description":"Simple, global service locator for Clojure.","archived":false,"fork":false,"pushed_at":"2016-01-09T14:46:33.000Z","size":14,"stargazers_count":6,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-07-02T20:54:07.862Z","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/JuneKelly.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}},"created_at":"2015-12-05T11:04:47.000Z","updated_at":"2022-06-17T18:08:36.000Z","dependencies_parsed_at":"2022-11-01T21:02:02.780Z","dependency_job_id":null,"html_url":"https://github.com/JuneKelly/clj-omni","commit_stats":null,"previous_names":["shanekilkelly/clj-omni"],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/JuneKelly/clj-omni","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JuneKelly%2Fclj-omni","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JuneKelly%2Fclj-omni/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JuneKelly%2Fclj-omni/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JuneKelly%2Fclj-omni/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/JuneKelly","download_url":"https://codeload.github.com/JuneKelly/clj-omni/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JuneKelly%2Fclj-omni/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":281228554,"owners_count":26465052,"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-10-27T02:00:05.855Z","response_time":61,"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":[],"created_at":"2024-10-11T09:49:58.535Z","updated_at":"2025-10-27T06:30:36.351Z","avatar_url":"https://github.com/JuneKelly.png","language":"Clojure","funding_links":[],"categories":[],"sub_categories":[],"readme":"# omni\n\nA simple, lightweight, global service locator.\nRegister values with omni, then retrieve them later.\n\n[![Clojars Project](http://clojars.org/omni/latest-version.svg)](http://clojars.org/omni)\n\n## Install\n\nFrom [clojars](https://clojars.org/omni):\n\n```clojure\n;; in project.clj dependencies\n[omni \"1.0.0\"]\n```\n\n## Usage\n\nRequire the `omni.core` namespace:\n```clojure\n(ns whatever.core\n  (:require [omni.core :as omni]))\n...\n```\n\nRegister a value you want to access throughout your application:\n```clojure\n(omni/register! :config {:debug false :app-secret \"a-terrible-secret\" ...})\n(omni/register! :db     {:connection ...})\n```\n\nRetrieve a value (or `nil`):\n```clojure\n(let [db (omni/want :db)]\n  ...)\n```\n\nInsist on getting a value, raise an exception if not found:\n```clojure\n(let [db (omni/need! :db)]\n  ...)\n```\n\n## Why use Omni instead of Component?\n\nBecause Omni is massively simpler, and doesn't require full-app buy-in.\nJust shove things into `omni`, and pluck them out later.\n\nI've got nothing against Component, it's a great tool, but sometimes you really\njust want your \"system\" to be a global lookup table, without any other baggage.\n\n\n## License\n\nCopyright © 2015 Shane Kilkelly\n\nDistributed under the MIT license.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjunekelly%2Fclj-omni","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjunekelly%2Fclj-omni","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjunekelly%2Fclj-omni/lists"}