{"id":23284203,"url":"https://github.com/agilecreativity/b12n-deps","last_synced_at":"2025-07-13T17:39:19.652Z","repository":{"id":62433754,"uuid":"262804452","full_name":"agilecreativity/b12n-deps","owner":"agilecreativity","description":"b12n-deps by agilecreativity","archived":false,"fork":false,"pushed_at":"2020-05-10T16:23:15.000Z","size":9,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-06-11T14:49:17.175Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://github.com/agilecreativity/b12n-deps","language":"Clojure","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/agilecreativity.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":"2020-05-10T14:26:21.000Z","updated_at":"2020-05-10T16:23:18.000Z","dependencies_parsed_at":"2022-11-01T21:02:02.371Z","dependency_job_id":null,"html_url":"https://github.com/agilecreativity/b12n-deps","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/agilecreativity/b12n-deps","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/agilecreativity%2Fb12n-deps","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/agilecreativity%2Fb12n-deps/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/agilecreativity%2Fb12n-deps/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/agilecreativity%2Fb12n-deps/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/agilecreativity","download_url":"https://codeload.github.com/agilecreativity/b12n-deps/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/agilecreativity%2Fb12n-deps/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265180348,"owners_count":23723655,"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-12-20T01:38:38.670Z","updated_at":"2025-07-13T17:39:19.629Z","avatar_url":"https://github.com/agilecreativity.png","language":"Clojure","funding_links":[],"categories":[],"sub_categories":[],"readme":"# b12n-deps\n\n[![Clojars Project](https://img.shields.io/clojars/v/net.b12n/deps.svg)](https://clojars.org/net.b12n/deps)\n[![Dependencies Status](https://jarkeeper.com/agilecreativity/b12n-deps/status.svg)](https://jarkeeper.com/agilecreativity/b12n-deps)\n![ClojarsDownloads](https://img.shields.io/clojars/dt/net.b12n/deps)\n\nA Clojure library designed to add dependency to your project at runtime.\nIt uses [alembic](https://github.com/pallet/alembic) behind the scene.\n\n## Usage\n\nTo add new dependency to your active REPL session at runtime try\n\nFor leiningen base project, you can add the following to your `project.clj`\n\n```clojure\n:profiles {:dev {:dependencies [[net.b12n/deps \"1.0.0\"]]}}\n```\n\nThen from your Clojure file you can then try something like\n\n```clojure\n(require '[b12n.deps.core :refer [add-depency]]')\n(require '[alembic.still :refer [distill lein load-project]])\n\n;; Add new dependency to your session without adding it to your project.clj or deps.edn\n(add-dependency :hara/io.file \"3.0.12\")   ;;=\u003e nil\n(add-dependency \"hara/io.file\" \"3.0.12\")  ;;=\u003e nil\n(add-dependency '[hara/io.file \"3.0.12\"]) ;;=\u003e nil\n\n;; Now use it in the project\n(require '[hara.io.file :as hf])\n\n;; Test that we can actually call the function of this library\n(hf/list \".\")\n\n;; Call lein task to printout the dependency tree\n(alembic.still/lein deps :tree) ;;=\u003e see your REPL\n\n;; To make your change permanent, you can add the above dependency to your `project.clj` or `deps.edn` file as appropriate.\n;; Then run the following command in your active session.\n;; See: https://github.com/pallet/alembic/blob/develop/src/alembic/still.clj#L299\n\n;; Tips: If you are using Emacs and install clj-refactor you can use this like\n;; M-x cljr-add-project-dependency\n;; Then you can use this dependency permanently in your project\n\n(load-project \"project.clj\")    ;;=\u003e see your REPL\n(alembic.still/lein deps :tree) ;;=\u003e see your REPL\n\n;; Check if we can use the new dependency\n(require '[hara.io.file :as hf])\n(hf/list \".\")\n\n;;=\u003e You should see the same result as before\n\n;; useful for check out the source\n(clojure.repl/source hf/list)\n(clojure.repl/doc hf/list)\n```\n\n## TODO\n\n- Find ways to add dependency vector to `project.clj` similar to [cljr-add-project-dependency](https://github.com/clojure-emacs/clj-refactor.el/wiki/cljr-add-project-dependency)\n\n## License\n\nCopyright © 2020 Burin Choomnuan\n\nThis program and the accompanying materials are made available under the\nterms of the Eclipse Public License 2.0 which is available at\nhttp://www.eclipse.org/legal/epl-2.0.\n\nThis Source Code may also be made available under the following Secondary\nLicenses when the conditions for such availability set forth in the Eclipse\nPublic License, v. 2.0 are satisfied: GNU General Public License as published by\nthe Free Software Foundation, either version 2 of the License, or (at your\noption) any later version, with the GNU Classpath Exception which is available\nat https://www.gnu.org/software/classpath/license.html.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fagilecreativity%2Fb12n-deps","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fagilecreativity%2Fb12n-deps","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fagilecreativity%2Fb12n-deps/lists"}