npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

ielm

v2.1.0

Published

Interactive Elm

Downloads

16

Readme

I, Elm.

iElm — In action, video @ vimeo.

First run

Install Elm globally using npm install -g elm.

Then istall iElm and node-simplehttpserve: npm install -g ielm node-simplehttpserver;

Run ielm and then open http://localhost:8080 in your browser.

Try entering code from examples.

To compile, press Shift+Enter (Keystrokes could be changed or added in next versions).

You may use the local install as well, then run node ./node_modules/ielm/cli.js from your project directory.

If you have a copy of iElm from Github or elsewhere, you may provide a path to its directory with path=/path/to/ielm.

Clean run

You may run npm run clean-start to force cleaning elm-stuff in the ouput directory and re-installing even those Elm packages which were already installed.

Adding a package

Just install additional package to your project, as you usually do it with elm-package install.

Development

The commands described above start the simplehttpserver to host the compiled ielm.js, so if you want to do some development, you need to start webpack-dev-server instead — so just go to the package directory and do npm run dev-start.

Adding local flag as a parameter allows you to start everything from the local directory instead of some external project. It is appended to npm run dev-start by default.

Building ielm.js

Just execute npm run build in a package directory.

CLI

  • npm start is the same as doing node ./cli run.
  • npm run clean-start is the same as doing node ./cli clean-run.
  • npm run dev-start is the same as doing node ./cli dev-run local.
  • npm run clean-dev-start is the same as doing node ./cli clean-dev-run local.
  • npm run build is the same as doing node ./cli build.

Terminology

  • Chunk is a callable line of Elm code, an expression; it is not allowed to define such expressions on the top level (i.e. w/o indentation) in a common Elm file, but in case of IElm — it is the only way to actually evaluate this expression;
  • Screen combines two concepts in one: a block of code with Elm-style imports, Elm-style definitions and "Chunks", and preview of this code, where all these chunks are evaluated and could be observed and controlled;
  • Cell is the result of single Chunk evaluation, i.e. the result of the expression;