{"id":15062798,"url":"https://github.com/bronsa/tools.decompiler","last_synced_at":"2026-03-17T21:04:34.653Z","repository":{"id":47500964,"uuid":"97277067","full_name":"Bronsa/tools.decompiler","owner":"Bronsa","description":"A decompiler for clojure, in clojure","archived":false,"fork":false,"pushed_at":"2023-08-27T10:43:34.000Z","size":885,"stargazers_count":70,"open_issues_count":2,"forks_count":5,"subscribers_count":7,"default_branch":"master","last_synced_at":"2024-12-16T07:09:03.491Z","etag":null,"topics":["clojure","decompiler"],"latest_commit_sha":null,"homepage":"","language":"Clojure","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"epl-1.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Bronsa.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}},"created_at":"2017-07-14T22:25:17.000Z","updated_at":"2024-05-31T07:50:22.000Z","dependencies_parsed_at":"2022-09-06T07:42:33.435Z","dependency_job_id":null,"html_url":"https://github.com/Bronsa/tools.decompiler","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/Bronsa%2Ftools.decompiler","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Bronsa%2Ftools.decompiler/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Bronsa%2Ftools.decompiler/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Bronsa%2Ftools.decompiler/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Bronsa","download_url":"https://codeload.github.com/Bronsa/tools.decompiler/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":230494921,"owners_count":18235046,"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":["clojure","decompiler"],"created_at":"2024-09-24T23:46:44.723Z","updated_at":"2026-03-17T21:04:34.621Z","avatar_url":"https://github.com/Bronsa.png","language":"Clojure","funding_links":[],"categories":[],"sub_categories":[],"readme":"I gave a talk on tools.decompiler at Clojure/Conj in October 2017. Video [here](https://www.youtube.com/watch?v=2SGFeegEt9E)\n\n# Dependencies:\n\nLeiningen:\n```clojure\n[bronsa/tools.decompiler \"0.1.0-alpha1\"]\n```\n\n# Usage:\n\nUse `lein javac` to AOT compile `clojure.tools.decompiler.RetrieveClasses` then you can use `lein repl` or `clj` to launch a repl\n\nUse `decompile-classfiles `to decompile AOT compiled classes:\n\n```clojure\nuser=\u003e (require '[clojure.tools.decompiler :as d])\nnil\nuser=\u003e (d/decompile-classfiles {:input-path \"path/to/root/classes/directory\" :output-path \"path/to/src\"})\n;; with no :output-path, decompile to stdout\n[...]\n```\n\nYou can use `decompile-classes` to decompile in memory classes, but to do so you must start the JVM using the java agent provided with `tools.decompiler` (use e.g. `lein jar` to build the jar):\n\n```clojure\n[~/src/tools.decompiler] clj -J-javaagent:tools.decompiler.jar\nuser=\u003e (require '[clojure.tools.decompiler :as d])\nnil\nuser=\u003e (defn foo [a] a)\n#'user/foo\nuser=\u003e (decompile-classes {:classes #{\"user$foo\"}}) ;; optionally :output-path to decompile to disk\nDecompiling user$foo\n(fn foo\n  ([a] a)\nnil\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbronsa%2Ftools.decompiler","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbronsa%2Ftools.decompiler","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbronsa%2Ftools.decompiler/lists"}