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

habitica-cli

v1.5.0

Published

An immersive command line interface for Habitica

Downloads

5

Readme

habitica-cli

An immersive command line interface for Habitica which features built-in emoji support, command history and tab completion!

Demo

Introduction

Built on top of vorpal, this Habitica CLI is an interactive one that provides an array of functionality including the following:

  • [x] Built-in emoji support :fire::zap:
  • [x] Listing, scoring, creating, deleting habits, tasks and todos
  • [x] Scoring habits, tasks and todos
  • [x] Creating/Deleting habits, tasks and todos
  • [x] Accessing the rewards shop and buying gear/rewards
  • [x] Casting spells
  • [x] Fighting bosses
  • [x] Showing quest progress
  • [x] Command history
  • [x] Tab completion
  • [x] Short aliases for power users :fire::fire:

This project was summoned with :heart: by @charlespwd.

Getting started

Quick start

Install habitica-cli on your computer:

npm install -g habitica-cli

Create a file ~/.config/habitica/auth.cfg (you may need to create the folder(s) and file) with the following contents:

[Habitica]
login = USER_ID
password = API_KEY

Replace USER_ID and API_KEY with the corresponding tokens from your Habitica settings>API page.

Once that's done, all you have to do is start habitica from the command line:

$ habitica

Great! You're in the CLI! You can now list your tasks:

habitica $ habits
habitica $ dailies
habitica $ todos

You can also check them off:

habitica $ habits score 1 2 3
habitica $ habits score --down 1 2 3
habitica $ dailies complete 1 2 3
habitica $ todos complete 1 2 3

Or create new ones!

habitica $ new habit
habitica $ new todo
habitica $ new daily

In fact, most of the information you need on how to use any of those commands is available through the very VERY helpful help command. (We're not talking Windows Help here. We're talking about a no fluff list of everything you can do and their multiple aliases).

habitica $ help

  Commands:

    help [command...]                    Provides help for a given command.
    exit                                 Exits application.
    status                               List your stats.
    habits list                          List your habits.
    /* ... truncated for brevity ... */

habitica $ help todos list

  Usage: todos list [options]

  Alias: todos | t

  List your todos.

  Options:

    --help                 output usage information
    -f, --filter [filter]  List filter type (all | dated | completed).

User Guide

For more in-depth examples of every single commands, you can check out the Wiki! Although it's a work in progress.

Contributing

Help and PR's are extremely welcome :)

License

MIT.