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 🙏

© 2026 – Pkg Stats / Ryan Hefner

getto-elm_tools

v0.2.8

Published

development tools for elm

Readme

getto-elm_tools

development tool for elm

npm run livereload # start web server with livereload and watch src to build elm
Table of Contents

Requirements

  • npm : 10.4.1

elm packages are not include in dependencies

  • elm : 0.18.0
  • elm-test : 0.18.12

Usage

directories

  • src : Elm sources
  • src/EntryPoint/**/*.elm : entry point modules
  • public/dist/app/**/*.js : build artifacts
  • public/**/*.html : html pages
  • templates/page.html : html template
  • templates/page.elm : elm template
  • config/routes.yml : list pages

livereload

  • reload + watch

reload

npm run reload -d ./public -w ./public/dist -p 8000

watch

  • getto-watch-compile + getto-watch-make + getto-watch-routes

getto-watch-compile

  • build file if src/**/*.elm file changed
  • ignore EntryPoint

getto-watch-make

  • build all src/EntryPoint/**/*.elm if tmp/build.txt touched
  • abort if tmp/app directory exists

getto-watch-routes

  • create src/EntryPoint/**/*.elm and public/**/*.html if config/routes.yml modified

build

  • build and uglify src/EntryPoint/**/*.elm files

install

npm install getto-elm_tools --save-dev

add below scripts to your package.json

"scripts": {
  "build": "getto-build",
  "livereload": "npm run reload & npm run watch",
  "reload": "reload -d ./public -w ./public/dist -p 8000",
  "watch": "npm run watch:compile & npm run watch:make & npm run watch:routes",
  "watch:routes": "getto-watch-routes",
  "watch:make": "getto-watch-make",
  "watch:compile": "getto-watch-compile",
  "elm-install": "elm-install",
  "test": "elm-test"
}

Examples

config/routes.yml

# config/routes.yml
global:
  css: 0.2.36

entries:
  - name: index
    title: ホーム

  - name: auth
    entries:
      - name: profile
        title: プロフィール

from config/routes.yml above, create elm and html files below

  • public/index.html
  • public/auth/profile.html
  • src/EntryPoint/Index.elm
  • src/EntryPoint/Auth/Profile.elm

template receive entry data like below

{
  "global": {
    "css": "0.2.36"
  },
  "entry": {
    "name": "profile",
    "title": "プロフィール"
  },
  "info": {
    "path": "auth/profile",
    "module": "Auth.Index"
  }
}

templates/page.html

<!doctype html>
<html lang="ja">
<head>

<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title><%= entry.title %></title>
<script src="/dist/app/<%= info.path %>.js"></script>
<link rel="stylesheet" href="https://css.getto.systems/<%= global.css %>/getto.css">
</head>
<body>

<div id="app"></div>
<div id="error" style="display:none">
  <div class="LoginLayout">
    <article>
      <header>
        <p>
        <small id="company"><%= global.app.company %></small>
        <br>
        <span id="title"><%= global.app.title %></span>
        <br>
        <small id="sub-title"><%= global.app.sub %></small>
        </p>
      </header>
      <section>
        <form method="get" action="/">
          <footer>
          <p>
          <em class="badge is-danger"><i class="fa fa-exclamation-triangle"></i> システムエラーが発生しました</em>
          </p>
          <p>
          <a href="?reset"><i class="fa fa-refresh"></i> リセット</a>
          </p>
          </footer>
        </form>
      </section>
    </article>
    <footer>
      <span id="project"><%= global.app.project %></span>
      <span id="version">version : 2.0.20</span>
    </footer>
  </div>
</div>

<script defer>
window.config = {
  page: "<%= info.module %>",
  path: "<%= info.path %>.html"
};
</script>
<script defer src="/dist/page.js"></script>
</body>
</html>

templates/page.elm

module EntryPoint.<%= info.module %> exposing (main)

import Html exposing (Html)
import <%= global.package %>.Version as Version
import <%= global.package %>.Page.<%= info.module %> as Page

opts =
  { version = Version.version
  , authRequired = True
  }
main =
  Html.programWithFlags
    { init = Page.init opts
    , view = Page.view
    , update = Page.update
    , subscriptions = Page.subscriptions
    }

License

getto-elm_tools is licensed under the MIT license.

Copyright © since 2018 [email protected]