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 🙏

© 2026 – Pkg Stats / Ryan Hefner

sprd-design-upload

v1.0.8

Published

Automatically upload designs to Spreadshirt and get URLs to use them.

Readme

Sprd-Design-Upload

Prompted by a Tweet it made sense to explore the Spreadshirt API a little bit more.

In particular it's a pitty that there was no simple way to upload a design with a commission and be able to redirect people to a product with such a design.

This project aims to provide the means to:

  • Upload a design to a spreadshirt shop
  • Place metadata and a commission on the design
  • Publish the design in a users shop
  • Provide an URL where a user can buy the design on a product like a t-shirt or a mug.

This project is intended for use with node, and relies on the fs API to read and stat files.

This project is published on npmjs.com.

Example usage

Example usage is documented in src/example.ts, which can be executed using npm start. It uses environment variables that can be read from .env which should be structured like the provided .env.example.

example.ts mainly performs two steps:

  1. It calls sessionFetch to create a fetch function that works similarly to node-fetch but also handles authentication as required by the API.
  2. It calls publishAndLink with a fetch function and the data necessary to upload and publish a design.

Project support

The question came up whether this project has continuous support. Currently aims are:

  • Dependencies should be updated from time to time.
  • PRs should be reacted to in a few days.
  • If something breaks an effort will be made to repair it.
    • There will be no monitoring of library stability so please feel free to alert of breakages either by creating an issue or by contacting @sicarius on Twitter.
  • No big effort will be made to actively increase the feature set.
    • If there are PRs with new features or adjustments that's fine.
    • This project is a commitment to a simple tool/package, but it is done in spare time and so may not the most exciting thing to attend to.

Project history

  • Initially we tried the outdated but public SpreadShirt API Documentation.
    • With this we had no luck because:
      • Uploading with an image pointer is no longer supported for security reasons.
      • Setting a commission in a shop context doesn't work any more.
  • Next we tried the current SpreadShirt T-Shirt Designer: Sketchomat.
  • We also had a look at the source of zufallsshirt.de as included in the site.
    • Alas a short look didn't offer a solution.
  • Therefore we looked at the partner area which does solve this problem, and REd the necessary API calls.