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

@paperspace/client-sdk

v0.1.7

Published

Paperspace SDK for client-side browser environments

Downloads

28

Readme

@paperspace/client-sdk

Paperspace SDK for client-side browser environments

Install module

The module is published as a node_module under the same name @paperspace/client-sdk on NPM. You can install it like so:

$ yarn add @paperspace/client-sdk

Run example

This will run the build and serve an example page with some examples on it:

$ yarn
$ yarn start

Build for development

If you are developing this repository in conjunction with another or just want to test it as you develop, you can preferrably run the development build, which gives you a version that is easier to debug:

$ yarn
$ yarn build:dev

Build for production

If you are looking to try out the production build, you can run the production build like this:

$ yarn
$ yarn build:prod

Environment variables

You can set the host the client points to by running it with the following environment variable:

$ STREAM_HOST=http://localhost:3002 yarn start

Developing in conjunction with another repository

If you are developing this repository in conjunction with another, you can yarn link your local version of the @paperspace/client-sdk into the host repository:

$ yarn link # In a separate terminal window from your (development) build

After this, you want to run yarn link @paperspace/client-sdk in the host repository to activate it.

NB: Remember to yarn unlink @paperspace/client-sdk in the host repository and yarn unlink in the root of this repository when you are done developing client-sdk! This link will otherwise stay active, even if you switch branches or pull changes.

NBB: Yarn does not work very well with passphrase prompts - it basically ignores them - so if you use that for you ssh-key, please use ssh-add to remember your authentication for the given session.

Publish a new version

This repository is set up to publish a new version on a new tag. To publish a new version follow these steps, where X.Y.Z is the new version you are about to publish:

Pro-tip: use --patch, --minor or --major flags for yarn version to automatically increment the version. You can also use a pre-release version before you release an actual version change.

$ git pull --rebase
$ git checkout -b release_vX.Y.Z
$ yarn version # This will create a tag, run `preversion` and `postversion` scripts and push the tag to remote
info Current version: 1.0.0
question New version: X.Y.Z # Do not prefix with 'v'!
...
✨ Successfully released version vX.Y.Z! The tag build process will publish it ✨

CircleCI will pick up on the newly created tag and automatically publish the version.

Now push your branch to remote and create a PR to see the status of the publish build and get your version change merged back into development:

$ git push --set-upstream origin release_vX.Y.Z
$ open https://github.com/Paperspace/client-sdk/compare/release_vX.Y.Z

That's it! You can now install this module with either yarn add @paperspace/client-sdk@latest or yarn add @paperspace/[email protected].

NB: Even if the version number is lower than a previously released version, it will be installed as the latest version!

NBB: You cannot publish over an existing version. The best way to handle this situation is to release a new patch or minor version.