{"id":18275276,"url":"https://github.com/artemeff/hex_mini","last_synced_at":"2026-04-01T20:57:36.700Z","repository":{"id":142290309,"uuid":"163050765","full_name":"artemeff/hex_mini","owner":"artemeff","description":"Self-hosted minimal hex.pm","archived":false,"fork":false,"pushed_at":"2019-01-13T16:21:43.000Z","size":56,"stargazers_count":8,"open_issues_count":1,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-05T03:31:53.331Z","etag":null,"topics":["elixir","elixir-lang","hexpm","package-management"],"latest_commit_sha":null,"homepage":"https://github.com/artemeff/hex_mini","language":"Elixir","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/artemeff.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}},"created_at":"2018-12-25T05:58:13.000Z","updated_at":"2024-06-26T09:15:07.000Z","dependencies_parsed_at":null,"dependency_job_id":"a526c25d-7d84-4903-ae5e-1686574d0775","html_url":"https://github.com/artemeff/hex_mini","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/artemeff/hex_mini","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/artemeff%2Fhex_mini","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/artemeff%2Fhex_mini/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/artemeff%2Fhex_mini/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/artemeff%2Fhex_mini/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/artemeff","download_url":"https://codeload.github.com/artemeff/hex_mini/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/artemeff%2Fhex_mini/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31013964,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-27T02:58:54.984Z","status":"ssl_error","status_checked_at":"2026-03-27T02:58:46.993Z","response_time":164,"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":["elixir","elixir-lang","hexpm","package-management"],"created_at":"2024-11-05T12:12:22.354Z","updated_at":"2026-03-27T03:15:27.082Z","avatar_url":"https://github.com/artemeff.png","language":"Elixir","funding_links":[],"categories":[],"sub_categories":[],"readme":"# HexMini — self-hosted minimal hex.pm\n\n* [Installation](#Installation)\n* [Usage](#Usage)\n* [Configuration](#Configuration)\n* [Roadmap](https://github.com/artemeff/hex_mini/projects)\n* [Contributing](#Contributing)\n\n---\n\n## Installation\n\n### Generate Keypair\n\n```bash\n$ openssl genpkey -algorithm RSA -out private_key.pem -pkeyopt rsa_keygen_bits:2048\n$ openssl rsa -pubout -in private_key.pem -out public_key.pem\n```\n\n### Start HexMini using Docker Compose\n\nCopy [`docker-compose.yml`](/docker-compose.yml) from this repo, open, configure with your keys and credentials, then run:\n\n```bash\n$ docker-compose up -d\n```\n\n---\n\n## Usage\n\n### Register private repo on your machine\n\n```bash\n$ curl http://\u003cHOST\u003e/public_key -so ~/.hex/\u003cREPO_NAME\u003e.pem\n$ mix hex.repo add \u003cREPO_NAME\u003e http://\u003cHOST\u003e --public-key ~/.hex/\u003cREPO_NAME\u003e.pem --auth-key \u003cAUTH_KEY\u003e\n```\n\n### Use it to fetch packages\n\n```elixir\ndefp deps do\n  [\n    {:package, \"~\u003e 1.0\", repo: \"\u003cREPO_NAME\u003e\"},\n  ]\nend\n```\n\n### Use it to publish packages\n\n```bash\n$ HEX_API_URL=http://\u003cHOST\u003e HEX_API_KEY=\u003cAUTH_KEY\u003e mix hex.publish package\n```\n\n---\n\n## Configuration\n\nYou can configure HexMini release with theese env variables:\n\n```bash\nHM_PUBLIC_KEY       # public key contents or path to file\nHM_PRIVATE_KEY      # private key contents or path to file\nHM_DATA_PATH        # data path, default to: /var/lib/hex_mini\nHM_CREDENTIALS_FILE # path to credentials file\n```\n\n### HM_CREDENTIALS_FILE\n\nCredentials file should follow this format:\n\n```\n\u003cusername\u003e:\u003cauth_token\u003e\n```\n\nLike:\n\n```\njohn_doe@local.dev:auth_token1\njohn_doe:auth_token2\n```\n\n---\n\n## Contributing\n\n1. Fork it\n2. Create your feature branch (`git checkout -b my-new-feature`)\n3. Commit your changes (`git commit -am 'add some feature'`)\n4. Push to the branch (`git push origin my-new-feature`)\n5. Create new Pull Request\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fartemeff%2Fhex_mini","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fartemeff%2Fhex_mini","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fartemeff%2Fhex_mini/lists"}