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

waffler-the-revenge

v0.2.2

Published

Another take on EDA waffler

Downloads

29

Readme

Waffler: The Revenge

Harvest READMEs from one repository and post them as issues on another, for use in curriculum delivery via Waffle.io.

Usage

WTR works using separate directories whose names bear a prefix with a version number. Currently, only major and minor versions are supported.

Post an entire major version

Given the directories:

1.0-introduction
1.1-overview
1.2-details
1.3-conclusion

the command

$ wtr push -s 1 -c foo-bar

will push one issue for each directory, for all users of team foo-bar from GitHub organisation foo-bar on repository foo-bar. The body of the first issue will be drawn from 1.0-introduction/README, and the title of the issue will be taken from the first line of the same README.

Titles are taken from the first line of the README

WTR will attempt to post the issues in reverse order, so that the highest version number shows up last when viewed.

Post a minor version

Posting individual version numbers works too, just specify the minor version:

# Post a single issue for each member of foo-bar
$ wtr push -s 1.0 -c foo-bar

Post to a single assignee

To push issues to only one person, use the -a or --assign flag:

$ wtr push -s 1 -c foo-bar -a richchurcher

This works with both major (all 1.x) and minor (e.g. 1.3 only) versions. It can also be a comma-separated list of assignees (no spaces though).

Exclude an assignee

To post to all but one assignee, use the -e or --exclude flag:

$ wtr push -s 1 -c foo-bar -e richchurcher

This too can be a comma-separated list. Note that if a login appears in both -e and -a lists, exclude wins (the account will not be assigned anything).

Source READMEs

Currently, the source location is hardwired to dev-academy-programme org, curriculum-private repo, assignments folder.

Authentication

WTR looks for the environment variable WTR_ACCESS_TOKEN. Export any GitHub personal access token:

$ export WTR_ACCESS_TOKEN=1234567890

The token must have the repo and org:read permissions for the target organisation/repo and repo permissions for the source repo. Although you could use one of your own, if you're reading this and are on the EDA teaching staff, ask in the Phase 0 chat for someone to add a token for you.

Rate limiting

GitHub has a 5000 request/hour limit for authenticated users, but they also have rate limit abuse guidelines. To avoid falling foul of these, WTR inserts a delay between each POST request which can make execution a little slow for large issue batches.

Credits

Pete Jacobson wrote the original Waffler tool. Pete is awesome.