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

laterbase

v0.7.1

Published

Send a task to the laterbase !

Downloads

4

Readme

Laterbase

Have something to do later? Put it in the laterbase !

Installation

# Install the module globally
$ sudo npm -g install laterbase

# Switch to a service, see below
$ laterbase-service s3

# Configure the service, see below
$ laterbase-config key abc123
$ laterbase-config secret abc123
$ laterbase-config bucket my-laterbase
$ laterbase-config region eu-west-1

Usage

# Using laterbase
$ laterbase "Pick up eggs"

# With a name
$ laterbase "Shopping" "Buy beer and snacks"

# With a file
$ laterbase "Shopping" < shpping-list.txt

# Piping
$ echo "Sign time sheets, raise invoices" | laterbase "Work"

# Using service actions, see below
$ laterbase-action boards me

# Switching service to trello
$ laterbase-service trello

# Setting service configuration, see below
$ laterbase-config token abc123

Configuration

Configuration is performed within the file ~/.config/laterbase.json and differs depending on the service used as your laterbase.

{
    "service": "trello",
    "services": {
    }
}

Service configuration can be set or retrieved with the laterbase-config command as follows.

# Setting service configuration, see below
$ laterbase-config token abc123

# Reading service configuration.
$ laterbase-config token

Services

The following services are available, each service may optionally define additional options and actions.

Trello

Configuration

To configure trello as the laterbase service, a key and token is required, along with a list id.

  • Generate a key and token, by logging in to trello and visiting https://trello.com/1/appKey/generate
  • Obtain the list id, using the trello service actions as detailed below.
{
    "service": "trello",
    "services": {
        "trello": {
            "key": "<app key>",
            "token": "<user token>",
            "list": "<list id>"
        }
    }
}

Options

The trello service allows the following options.

| Option | Description | Example | | ------ | ------------------------- | ----------------------- | | -d | Due in ARG days from now | laterbase -d 4 "Task" | | -H | Due in ARG hours from now | laterbase -H 1 "Task" |

Actions

The trello service provides the following actions, and can be used with the laterbase-action command. These provide the actions needed to obtain the list configuration when using laterbase.

# Display boards
$ laterbase-action boards <username>

# Display lists for a board
$ laterbase-action lists <boardId>

# Set the list id configuration
$ laterbase-config list <listId>

Gist

Configuration

To configure gist as the laterbase service, a token is required.

  • Generate a personal access token, by logging in to github and visiting https://github.com/settings/tokens/new
{
    "service": "gist",
    "services": {
        "gist": {
            "token": "<access token>"
        }
    }
}

Options

The gist service does not allow any options.

Actions

The gist service does not provide any actions.

Amazon S3

Configuration

To configure Amazon S3 as the laterbase service, an IAM user is required, along with bucket and region.

  • Create an S3 bucket within the aws console.
  • Create an IAM user within the aws console, and grant putObject access to the bucket.
{
    "service": "s3",
    "services": {
        "s3": {
            "key": "<IAM user key>",
            "secret": "<IAM user secret>",
            "bucket": "<bucket>",
            "region": "<region>"
        }
    }
}

Options

The s3 service does not allow any options.

Actions

The s3 service does not provide any actions.

License: MIT

Author: Ash Brown