{"id":25323955,"url":"https://github.com/opshin/plutonomy-cli","last_synced_at":"2025-06-28T18:04:44.754Z","repository":{"id":130903324,"uuid":"591451561","full_name":"OpShin/plutonomy-cli","owner":"OpShin","description":"An extremely simple CLI for well-typed/plutonomy","archived":false,"fork":false,"pushed_at":"2024-03-24T16:57:57.000Z","size":32,"stargazers_count":7,"open_issues_count":1,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-13T13:15:21.577Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Haskell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/OpShin.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-01-20T19:44:08.000Z","updated_at":"2025-01-29T22:01:44.000Z","dependencies_parsed_at":"2023-12-13T23:29:56.839Z","dependency_job_id":"3beba36a-caea-4d15-84e3-f2cacce1b4c9","html_url":"https://github.com/OpShin/plutonomy-cli","commit_stats":null,"previous_names":["imperatorlang/plutonomy-cli"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OpShin%2Fplutonomy-cli","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OpShin%2Fplutonomy-cli/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OpShin%2Fplutonomy-cli/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OpShin%2Fplutonomy-cli/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/OpShin","download_url":"https://codeload.github.com/OpShin/plutonomy-cli/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":238759663,"owners_count":19525873,"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":"2025-02-14T00:55:11.279Z","updated_at":"2025-02-14T00:55:12.423Z","avatar_url":"https://github.com/OpShin.png","language":"Haskell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Plutonomy-cli\n\nA simple command-line wrapper for [Plutonomy](https://github.com/well-typed/plutonomy) -- an optimizer for UPLC.\n\nSee disclaimer notice on Plutonomy.\n\n## Getting Started\n\n### Installation instructions\n\nInstall ghc 9.2.8 (i.e. using `ghcup`). Then clone this repo, and in the repository root run\n\n```\ncabal install --overwrite-policy=always --install-method=copy plutonomy-cli\n```\n\n### Usage\n\n```\nplutonomy-cli --help\n```\n\n#### Example\n\nFirst, generate or obtain the script as hex encoded single-wrapped cbor of the flat encoding.\nThis is usually among the output of the build commands of [uplc](https://github.com/OpShin/uplc), [opshin](https://github.com/OpShin/opshin) or [aiken](https://github.com/aiken-lang/aiken).\n\n```bash\nuplc build foo.uplc\n```\n\nThen optimize the code using `plutonomy-cli`.\n\n```\nplutonomy-cli --default foo/script.cbor \u003e foo/optimized.cbor\n```\n\n### Alternatives\n\nWhile plutonomy is an extremely powerful tool, it is unfortunately not being actively maintained and may not be an adequate choice for new and upcoming projects.\nAlternatives include\n\n- the official [plutus](https://github.com/input-output-hk/plutus/releases) `uplc` binary. Run ` uplc-x86_64-linux-ghc928 optimize foo.uplc`.\n- _WIP_: [aiken](https://github.com/aiken-lang/aiken). Run `aiken shrink foo/script.cbor --cbor --hex`.\n- _WIP_: [uplc](https://github.com/OpShin/uplc). Run `uplc optimize foo.uplc`.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fopshin%2Fplutonomy-cli","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fopshin%2Fplutonomy-cli","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fopshin%2Fplutonomy-cli/lists"}