# Elm Alternative Package (Mirror) Live

**URL:** <https://discourse.elm-lang.org/t/elm-alternative-package-mirror-live/8131>\
**Category:** Show and Tell\
**Created:** [February 3, 2022, 12:17pm UTC](https://discourse.elm-lang.org/t/elm-alternative-package-mirror-live/8131 "2022-02-03T12:17:11Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![rupert](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.elm-lang.org/rupert/32/1775_2.png) [@rupert](https://discourse.elm-lang.org/u/rupert)\
**Post date:** [February 3, 2022, 12:17pm UTC](https://discourse.elm-lang.org/t/elm-alternative-package-mirror-live/8131/1 "2022-02-03T12:17:11Z")

</div>

As part of my work on an alternative package manager for Elm, I have updated its package index.

You should be able to run a build through it by doing the following:

```auto
> mv ~/.elm ~/.elm-old
> mitmdump --ssl-insecure -M '|https://package.elm-lang.org/|https://package.eco-elm.org/v1/'
> https_proxy=http://127.0.0.1:8080 elm make src/Main.elm

```

There is also a step needed to whitelist the mitmdump certificate authority on your local box to allow it to proxy an https endpoint - you can find instructions on how to do that here [https://docs.mitmproxy.org/stable/concepts-certificates/](https://docs.mitmproxy.org/stable/concepts-certificates/). This is not something you should do without considering the security implications - I am ok doing it on my dev box, but not on CI through to production.

Moving your current ELM\_HOME folder `~/.elm` out of the way is recommended (or set a different value for ELM\_HOME), since the .zip files on my package server are different again to the ones GitHub serves. They have been stripped of everything except `src/**/*.elm` + `README.md` + `LICENSE` + `elm.json`. That is why I put (Mirror) in brackets, because it is not an exact mirror.

Currently running on a minimal AWS infrastructure, so it is not very responsive, so don’t hit it too hard.

I would be interested in hearing if anyone else is able to get it to work? or what errors you encounter when trying.

Removing the need to use `mitmdump` would require hacking the Elm compiler, since it hard codes [https://package.elm-lang.org/](https://package.elm-lang.org/). I will try and publish a hacked compiler soon (with the `publish` CLI option disabled), to make reaching this package mirror simpler.

---

_[View the full topic](https://discourse.elm-lang.org/t/elm-alternative-package-mirror-live/8131)._
