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

a11yisimportant

v1.0.0

Published

[![Travis CI](https://img.shields.io/travis/AnandChowdhary/a11yisimportant.svg)](https://travis-ci.org/AnandChowdhary/a11yisimportant) [![Coverage Status](https://coveralls.io/repos/github/AnandChowdhary/a11yisimportant/badge.svg?branch=master)](https://c

Downloads

3

Readme

🐦 @a11yisimportant

Travis CI Coverage Status GitHub Vulnerabilities Twitter Follow

@a11yisimportant is a Twitter bot which follows smart people tweeting about #a11y and retweets mentions. Written in Typescript and hosted on Oswald Labs Platform.

⭐ How it works

/follow

The follow endpoint follows users tweeting with the hashtag #a11y. It runs every hour, powered by IFTTT and a webhook:

  1. Find (mixed) tweets with hashtag #a11y
  2. Like all those tweets
  3. Make a list of users (unique)
  4. Remove any users @a11yisimportant already follows
  5. Follow everyone from this list

/retweet

The retweet endpoint retweets tweets that @a11yisimportant is tagged in. It runs every hour, powered by IFTTT and a webhook:

  1. Find (recent) tweets with mention @a11yisimportant
  2. Remove any tweets written by self
  3. Remove any tweets which are already retweeted
  4. Like every tweet in this list
  5. If this tweet is a reply, get the original tweet instead
  6. Remove any duplicates (unique array)
  7. Remove any "Thanks for the follow!" tweets
  8. Retweet every tweet in this list

Interfaces

This package also exposes the following Typescript interfaces:

  • SearchResult for the result from a standard search using the Twitter API
  • SearchMeta for the metadata in a search result
  • User for a user's profile
  • Tweet for a tweet object

You can use them like this:

import { Tweet } from "a11yisimportant/interfaces" 
const tweet: Tweet = {
  id_str: "1106516296085188609",
  text: "Accessibility is important",
  user: {
    id_str: "1106514269758214144",
    screen_name: "a11yisimportant"
  }
  // . . .
};

In each interface, longint strings are preferred since JavaScript natively doesn't support such large integers (e.g., id_str instead of id).

🛠️ Development

Install dependencies:

yarn

Compile Typescript to CommonJS before running the server:

yarn build

Run local server:

yarn start

✅ Todo

  • [x] Auto follow
  • [x] Auto retweet
  • [x] Retweet CC original tweets
  • [x] Like all mentions
  • [x] Like all #a11y tweets

📝 License

MIT