Elm Package Catalog: Explore Elm packages and find the package you need

One of the things I’ve seen people remark on is that it can be difficult to figure out whether there’s a package that does what you need. Is there a UI framework? What’s the best way to do CSS? What about a date picker?

Especially when you’re starting out with Elm, it can be a frustrating process of fumbling around in the dark. Not only you’re learning the language, but you also have to find the relevant packages. If I want to animate the UI, are the packages to help me? Or should I roll my own? What do I search for, and where? Package index, Google, GitHub, Discourse? And which packages are the most popular?

I thought, what if there was a catalog that simply organised packages into categories? That would make it easier to find what you need!

So I rolled my sleeves up, and with the help of my favourite Elm package, mdgriffith/elm-ui, set it up:

Elm Package Catalog

Another thing I was interested in is making it easier to find gaps in the package ecosystem. If somebody is looking for a project, they can easily find something that’s not already been done. For example, is there a package that helps you work with the Google Maps API? No, there doesn’t seem to be one in the Maps section – that was easy!

I’ve only included ~260 packages in the catalog so far, which is a small portion of all the published packages (~1400 I believe). Nonetheless, it shows there’s already quite a lot of different categories covered: from UI widgets to text processing packages.

But how do I choose the best package?

Inevitably, the question of metrics comes up. When there are multiple packages that parse CSVs, for example, how do I choose the best one? Wouldn’t it be nice if there was a metric of package quality, so that popular and well supported packages float up to the top?

The obvious idea is to start pulling in star counts, release information, issue activity and so on from GitHub. However, metrics may also promote certain behaviours from package authors, and I’m wary of recreating the NPM rat race in Elm.

For example, if the latest release date was used as a proxy signal for package quality, it might encourage authors to make more releases. I think a valuable aspect of Elm is that it’s sort of the frontend programming equivalent of the “slow food” movement, and we should be careful not to disrupt it. (Mind you, I don’t know if it’s ultimately the way to go about software development, but it’s certainly a worthy experiment.)

So for now I’m thinking about what metrics might be useful, and whether it’s still OK to do without them.

Comments or questions? I’m @alexkorban on Twitter.

Looking for the nuts-and-bolts guide to creating non-trivial real world apps in Elm?

My book, Practical Elm for a Busy Developer, skips the basics and gets right into explaining how to do practical stuff. Things like building out the UI, communicating with servers, parsing JSON, structuring the application as it grows, testing, and so on. No handholding — the focus is on giving you more substance.

It’s up to date with Elm 0.19.

Pop in your email to get a sample chapter.

(You will also get notifications of new posts along with other mailing list only freebies.)

Book cover