{"id":15455935,"url":"https://github.com/jaredly/esyi","last_synced_at":"2025-09-07T06:35:35.407Z","repository":{"id":66952725,"uuid":"119635795","full_name":"jaredly/esyi","owner":"jaredly","description":null,"archived":false,"fork":false,"pushed_at":"2018-03-27T23:36:09.000Z","size":201,"stargazers_count":13,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-09-07T06:34:57.072Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"OCaml","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/jaredly.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2018-01-31T04:42:48.000Z","updated_at":"2019-11-11T00:11:00.000Z","dependencies_parsed_at":"2023-05-15T18:30:33.001Z","dependency_job_id":null,"html_url":"https://github.com/jaredly/esyi","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/jaredly/esyi","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jaredly%2Fesyi","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jaredly%2Fesyi/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jaredly%2Fesyi/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jaredly%2Fesyi/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jaredly","download_url":"https://codeload.github.com/jaredly/esyi/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jaredly%2Fesyi/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":274005335,"owners_count":25205934,"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-09-07T02:00:09.463Z","response_time":67,"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-01T22:21:37.096Z","updated_at":"2025-09-07T06:35:35.395Z","avatar_url":"https://github.com/jaredly.png","language":"OCaml","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Esy Install\n\nBut in ocaml this time. With a real solver, so we get good dependencies.\n\n## Status: self-hosting! Also can install reason-wall-demo\n\n## Completed\n\n- [x] parsing opam files \u0026 mostly converting the dependencies (I bail on the more complex boolean operations, pretending they are \"any\")\n- [x] parsing package.json files\n- [x] talking to the npm registry\n- [x] looking in a local copy of the opam registry\n- [x] using MCCS (a SAT solver) to find a valid assignment of dependencies!\n- [x] tracking buildDependencies separately\n- [x] sharing resolved buildDependencies when possible\n- [x] generating a lockfile! (it's yojson at the moment, so don't expect anything fancy)\n- [x] fetching all the things, with some opam -\u003e package.json conversion\n- [x] write out override files\n- [x] get the files from opam too tho\n- [x] handle override patches too\n- [x] add a `_resolved` field\n- [x] opam conversion\n    - [x] incorporate `esy-opam-overrides`\n- [x] get jbuilder building\n- [x] get [the test repository] building!\n- [x] handle opam versions correctly `(\u003e= 1.2.0 \u0026 \u003c 1.3.0)`\n- [x] respect the \"available\" flag in `opam`\n- [x] get tsdl building ok\n- [x] get reason-wall-demo building!\n- [x] be able to install its own deps!\n- [x] ~ should resolve before the empty string in opam land\n- [x] make the \"fetch\" step not depend on having `opam-repository` around\n- [x] grab \u0026 update esy-opam-overrides and opam-repository automatically\n\n## After that\n\n- [ ] be able to process normal npm dependencies -- first by trying to do it without conflicts, and then relaxing the requirement and doing an after-pass to remove unneeded duplicates.\n- [ ] output a nice \"esy.resolved\" file that `esy b` can then read to know where dependencies live.\n\n## Needed less urgently\n\n- [ ] use Lwt! So we can parallelize a ton of things\n- [ ] actually validate checksums\n- [ ] deciding what we want to do with devDependencies (currently they're dumped into build dependences)\n- [ ] make the generated lockfile a nicer format (maybe yaml/toml?)\n- [ ] parallelize some things, but make sure not to compromise reproducability\n- [ ] handle the not-fresh case\n    - [ ] inflate from lockfile\n    - [ ] check staleness\n    - [ ] add/remove/upgrade deps\n\n## Needed for cross-platform\n\n- [ ] use Cohttp instead of shelling out to curl\n- [ ] maybe use an ocaml git client? instead of shelling out to git\n- [ ] use an ocaml decompression library instead of shelling out to tar\n- [ ] audit for \"/\" vs Filename.concat\n\n## Later on\n\n- [ ] maybe fetch tarballs from the opam mirror directly\n- [ ] maybe use a global cache for fetched things? currently using a project-local cache\n- [ ] support multiple architecture targets!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjaredly%2Fesyi","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjaredly%2Fesyi","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjaredly%2Fesyi/lists"}