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 🙏

© 2025 – Pkg Stats / Ryan Hefner

@arwen/arwen-cli

v0.1.6

Published

arwen-cli

Readme

Get started

Arwen has some interesting abilities that could be used for project management in front-end. Typically, arwen now could completely handle a vue project based on h_ui component library.

Get started with a simple command arwen create h_ui-demo.
Need more help, try arwen --help.

Installation

Prerequisites: Node.js (>=10.x, 10.15.3 preferred), npm version 3+.

 $ npm install -gd @arwen/arwen-cli

Usage

For now, arwen has 5 simple but powerful commands including create serve build deploy push.

arwen create h_ui-demo

arwen create could be used for generating a project based on h_ui template. It is gonna take care of the building process properly. Yarn is extremely recommend in this command. If you never use or hear about it, give it a shot. By running this comand, after it finished without surprise, a directory named h_ui-demo with following structures will be generated.

./h_ui-demo/
├── README.md
├── index.html
├── sysconfig.js
├── src
│   ├── App.vue
│   ├── main.js
│   ├── api
│   ├── assets
│   ├── components
│   ├── directive
│   ├── mixins
│   ├── mock
│   ├── router
│   ├── store
│   ├── style
│   ├── utils
│   └── views
└── package.json

As you can see, it is extremely similar with the demo project supplied by h_ui, if you are familiar with it.

arwen serve -h 127.0.0.1 -p 3001

arwen serve could be used for launching a server in development mode with minimal config. Generally, it is necessary for business development. A magic feature called HMR (Hot Module Replacement) is embedded, any change happened inside the src directory will trigger a hot reload in broswer.

arwen build --debug --zip --package-name h_ui-demo

arwen build could be used for compiling and building in production mode. Not like build in development mode, arwen will build to create better user experience in optimized way.

If you specify --debug, build process will be a little different. Source map switch will open in production mode, this could be useful for test, you could simply debug with dev tool in broswer.

if you specify --zip --package-name h_ui-demo, a zip file named h_ui-demo will be created. That could be useful for sharing or remoting deployment.

arwen deploy ./build

Mostly, after the project build, we wanna know if it is gonna work as we expected or not. arwen deploy could simply serve a static directory in local, it is almost like running in real production environment. If something goes wrong, you could locate and fix it quickly and run build again. In the future, arwen may support remote deployment in server-side like nginx.

The process management by arwen is through the --signal option. For now, valid choices include start list stop. When you run arwen deploy -s list, a table including all apps running in local will be printed, it looks like

┌─────────┬────────────┬────┬───────┬──────────┬────────────┬────────┬───────────────┐
│ (index) │    name    │ id │  pid  │  status  │    path    │  port  │  created_at   │
├─────────┼────────────┼────┼───────┼──────────┼────────────┼────────┼───────────────┤
│    0    │ './build/' │ 0  │ 92747 │ 'online' │ './build/' │ '8080' │ 1555134009451 │
└─────────┴────────────┴────┴───────┴──────────┴────────────┴────────┴───────────────┘

Column Id could be used for arwen deploy -s stop --app-id 0 command. And please note that, specifying an explicit app id is highly recommended, if not, all apps running locally will be destroyed.

arwen push development

Besides deploy in local, deploy in remote server is more common. arwen push <env> allows you pushing static files to a specified remote environment by ssh. The environment is configured in package.json like shown below.

"arwen": {
  "type": "h_ui",
  "push_env": {
    // you could specify multiple remote environment
    "development": {
      // example SSH authentication object. For more auth options look
      // here: https://github.com/mscdex/ssh2#client-methods
      "auth": {
        "host": "192.168.39.31", // hostname or IP address
        "port": "22", // by default is set to 22
        "username": "kawhi",
        "password": "kawhi"
      },
      "localFiles": "./build/**/*", // glob string
      "remotePath": "/home/kawhi/testtest", // path on remote server
      "prePush": ["rm -rf testtest"], // array of commands to be executed on remote server before files push
      "postPush": ["ls -l ./testtest"], // array of commands to be executed on remote server after files push
      "silent": true // disable logging to console, by default is set to false
    }
  }
}

That's all for now, issues and good ideas are both welcomed, just put here https://github.com/kawhi66/arwen/issues