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

paperdev

v1.0.0

Published

CLI tool to automatically start and stop PaperSpace VMs

Downloads

3

Readme

paperdev

npm npm npm

Save money when running VMs in PaperSpace.

paperdev is an unofficial CLI tool that automatically starts and stops PaperSpace VMs. Only be billed for the exact amount of time you need.

Simply run paperdev to start your VM and drop you directly into SSH. When you exit your VM, paperdev will automatically stop your VM, preventing you from being billed for unused compute time. (You will still be billed for storage space, etc.)

Table of Contents

Background

A VM with 8 vCPUs and 16 GiB RAM costs US$95 per month - expensive for adhoc work. You can also run the VM for US$0.13 per hour but then you have to manually start and stop the VM in a web interface and you still get billed if you forget to turn it off.

If you run the VM for 30 hours a week, every week, for a month, at the end of the month you would be billed only US$16.77, saving you $78.23 (or more than 80%) for the above configuration. paperdev allows you to run VMs for only the hours you need with a single command.

This tools allows you to quickly spin up and spin down high powered machines (even with GPUs) for a fraction of the monthly cost.

Install

This package is distributed via NPM. To install it, you can run npm i -g paperdev

Usage

Before using paperdev, you must first enter your API Key to enable the paperdev CLI tool to communicate with PaperSpace.

paperdev auth <API Key>
# Example: paperdev auth 4da89ce88462cbf1c6cd8b49fc2476

You must also create the VM in the PaperSpace Core console. Make sure you set the Public IP option to Dynamic (preferred for cost optimization) or Static (for the IP address to not change). This is so you can connect to the VM over SSH. Once the VM is created, you must set the VM ID in paperdev.

paperdev set <VM ID>
# Example: paperdev set pkpzwrwzn

Once configured, simply run paperdev to start your VM and drop you directly into SSH. When you exit your VM, paperdev will automatically stop your VM, preventing you from being billed for the unused compute time.

Run paperdev <command> --help for help using any command.

Commands:
  paperdev auth      Set the API key for authentication
  paperdev           Connect to the PaperSpace VM                      [default]
  paperdev set <id>  Set the Virtual Machine ID
  paperdev start     Send the start command to the VM
  paperdev state     Displays the current state of the VM
  paperdev stop      Send the shut down command to the VM

Options:
  -v, --version  Show version number                                   [boolean]
  -h, --help     Show help                                             [boolean]

Demo

paperdev

Contribute

PRs are welcome!

If updating the README, please stick to the standard-readme specification.

License

MIT © Matt Reid

Twitter

Get US$10 free credit with PaperSpace using this referral link (more details).