{"id":17996830,"url":"https://github.com/zk/habitat","last_synced_at":"2025-06-16T05:37:40.464Z","repository":{"id":66613582,"uuid":"825319","full_name":"zk/habitat","owner":"zk","description":"Environment-based configuration for Clojure projects.","archived":false,"fork":false,"pushed_at":"2010-08-08T22:35:54.000Z","size":104,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-01T17:28:18.265Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/zk.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2010-08-08T22:11:20.000Z","updated_at":"2013-11-26T09:25:57.000Z","dependencies_parsed_at":"2023-02-20T07:35:16.845Z","dependency_job_id":null,"html_url":"https://github.com/zk/habitat","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zk%2Fhabitat","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zk%2Fhabitat/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zk%2Fhabitat/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zk%2Fhabitat/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zk","download_url":"https://codeload.github.com/zk/habitat/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247128753,"owners_count":20888235,"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-29T21:16:00.081Z","updated_at":"2025-04-04T06:14:31.972Z","avatar_url":"https://github.com/zk.png","language":"Clojure","funding_links":[],"categories":[],"sub_categories":[],"readme":"# habitat\n\nEnviroment-based configuration for Clojure projects. \n\nRequires Clojure 1.2.\n\n## Leiningen\n    [habitat \"0.1.0-SNAPSHOT\"]\n\n## Getting Started\n\n1. Create a new clojure project.\n2. Add habitat to your project management file (project.clj / pom.xml / whatever).\n3. Create a habitat directory in your resources directory.\n4. Create a default.clj in your resources/habitat directory:\n        ;; Example default.clj\n        {:my-config-item \"hello world from default\"}\n\n5. Create a dev.clj in your resources/habitat directory:\n        ;; dev.clj\n        {:my-config-item :hello-world-from-dev}\n6. Update your dependencies, start a repl and run:\n        user=\u003e (require 'habitat)\n        user=\u003e (habitat/habitat)   ;defaults to :dev enviroment\n        {:my-config-item :hello-world-from-dev}\n\n7. To set the enviroment at runtime:\n        ;; other-env.clj\n        {:my-config-item :other-env}\n\t\n        % export JAVA_OPTS=\"-Dhabitat.env=other-env\"; lein repl\n        user=\u003e (require 'habitat)\n        user=\u003e (habitat/habitat)\n        {:my-config-item :other-env}\n\n8. You can also pass a keyword to habitat to manually set the environment:\n        user=\u003e (habitat/habitat :other-env)\n\n## License\n\nCopyright (C) 2010 Zachary Kim\n\nDistributed under the Eclipse Public License v1.0 [http://www.eclipse.org/legal/epl-v10.html](http://www.eclipse.org/legal/epl-v10.html)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzk%2Fhabitat","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzk%2Fhabitat","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzk%2Fhabitat/lists"}