{"id":19773210,"url":"https://github.com/mbarbin/opam-package-template","last_synced_at":"2026-03-19T11:36:54.924Z","repository":{"id":91167160,"uuid":"425939911","full_name":"mbarbin/opam-package-template","owner":"mbarbin","description":"Template for creating a new opam package repository","archived":false,"fork":false,"pushed_at":"2025-05-08T15:22:56.000Z","size":206,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-08T16:36:34.924Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Dune","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mbarbin.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGES.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,"zenodo":null}},"created_at":"2021-11-08T17:54:12.000Z","updated_at":"2025-05-08T15:23:08.000Z","dependencies_parsed_at":"2024-01-17T18:21:06.652Z","dependency_job_id":"7db9f538-cceb-42fd-bc08-d15323dfe5f2","html_url":"https://github.com/mbarbin/opam-package-template","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/mbarbin/opam-package-template","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mbarbin%2Fopam-package-template","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mbarbin%2Fopam-package-template/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mbarbin%2Fopam-package-template/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mbarbin%2Fopam-package-template/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mbarbin","download_url":"https://codeload.github.com/mbarbin/opam-package-template/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mbarbin%2Fopam-package-template/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30217425,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-07T14:02:48.375Z","status":"ssl_error","status_checked_at":"2026-03-07T14:02:43.192Z","response_time":53,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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-11-12T05:08:58.696Z","updated_at":"2026-03-07T14:31:11.903Z","avatar_url":"https://github.com/mbarbin.png","language":"Dune","funding_links":[],"categories":[],"sub_categories":[],"readme":"# opam package template\n\n[![Actions Status](https://github.com/mbarbin/opam-package-template/workflows/ci/badge.svg)](https://github.com/mbarbin/opam-package-template/actions)\n\nThis is a project template for creating a new opam package repository.\n\n## Using the template\n\n```bash\nopam spin new https://github.com/mbarbin/opam-package-template.git my-package\ncd my-package\n```\n\nYou can see an example of generated project in the [`example/`](example/) directory.\n\nIn order to see the template's github actions workflows being\nexecuted, the example generated project is also hosted as a separate\nrepo [here](https://github.com/mbarbin/opam-package-template-example).\n\n## Motivation and relationship to spin's default templates\n\nThis template is meant for personal use only. If you landed on this\npage and are looking for an OCaml project template, I recommend having\na look at:\n\n- the defaults templates provided by [spin](https://github.com/tmattio/spin)\n- and more at https://github.com/ocaml-templates\n\nI expect this template to be very close to spin's bin template,\nalthough they may differ by small details. I use this repo rather than\nspin's default to:\n\n- learn about modern practices regarding OCaml packages tooling\n- learn how to write a spin template\n\n## What's included\n\nThe templates enables:\n\n- [X] opam/dune build\n- [X] ocamlformat\n- [X] basic Makefile\n- [X] janestreet style [expect tests](https://github.com/janestreet/ppx_expect)\n- [X] linting (opam and opam-dune-lint)\n- [X] github actions for basic continuous integration\n  - [X] allows for janestreet-bleeding opam repositories dependency\n\n## Sanity checks\n\nAfter creating the project directory, you can:\n\n- [ ] Edit the long opam description\n\n- [ ] Choose an appropriate License\n\n- [ ] Check the validity of the opam file:\n```bash\nopam lint\n```\n\n- [ ] Test the various targets of the Makefile:\n```bash\nmake all\nmake test\nmake fmt\nmake lint\nmake clean\n```\n\n- [ ] Check that the installation works as intended:\n```bash\nopam pin .\nopam install .\n```\n\nMore generally, refer to [opam packaging documentation](https://opam.ocaml.org/doc/Packaging.html).\n\n## Acknowledgements\n\n- This template is very close to (and heavily inspired by) [spin's bin template](https://github.com/tmattio/spin/tree/main/template/bin).\n- `example.sh` and the CI script of the root repo is based on [spin-dream](https://github.com/ocaml-templates/spin-dream).\n- The github workflow of the template was created from examples found at [ocaml/setup-ocaml](https://github.com/ocaml/setup-ocaml).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmbarbin%2Fopam-package-template","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmbarbin%2Fopam-package-template","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmbarbin%2Fopam-package-template/lists"}