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

sniper-link

v0.0.6

Published

Create sniper-links to deep link users to emails

Downloads

127

Readme

npm npm GitHub Sponsors

sniper-link (under development)

What is a sniper link? Let growth.design explain:

A Sniper Link is a special link that makes it easier for new users to confirm their email after a signup. It typically simulates an inbox search, which minimizes distractions while leading users to the inbox of their email service provider detected on signup.

With Sniper Links, your new users will only see YOUR confirmation email in their inbox, nothing else. It works even if you landed in their spam.

This onboarding technique was coined by Dan Benoni in 2019.

Feature Support Table

| | Gmail | Outlook | Yahoo | Proton | iCloud | | ------------------ | ----- | ------- | ----- | ------ | ------ | | Account scope | ✅ | ✅ | | | | | From filter | ✅ | | ✅ | ✅ | | | Spam piercer | ✅ | | ✅ | ✅ | | | Time frame (days) | ✅ | | ✅ | ✅ | | | Time frame (hours) | ✅ | | | ✅ | |

Legend:

  • ✅ = Supported by this provider and the script
  • *️⃣ = Supported by the provider, but not by the script as yet

Installation

Using the node package manager of your choice, either

yarn add sniper-link or npm install sniper-link

Usage

Subject to change while this script is in an alpha version. Currently it builds three versions:

  • A node version in dist/node/index.js
  • Web esm for React/Svelte etc dist/web/esm.js
  • Web IIFE for native and legacy js dist/web/iife.js

Feature Support Table

| | Expects | Required? | Notes | | ------------------ | --------------- | --------- | ----- | | email | String (email) | ✅ Yes | User's email inbox to search. | | from | String | | Sender's email address. Can be an email, or partial match. | | forceProvider | String ('google', 'yahoo', 'microsoft', 'proton', 'icloud') | | Optional override to skip email provider being detected from the provided string. Useful for when you already know [email protected] is using G-Suite under the hood, possibly via a MX lookup. | | daysAgo | Number | | Sent within the last 'x' days | | hoursAgo | Number | | Sent within the last 'y' hours. See note below. |

  • You cannot use a combination of daysAgo and hoursAgo. If hoursAgo are specified, they will be used in preference.
  • Yes, you could use forceProvider to make [email protected] to open mail.google.com -- that's on you.

Example

A node.js example

const buildUrl = require('sniper-link/dist/node');

console.log(
  buildUrl({
    email: '[email protected]',
    from: '@userfront.com',
    daysAgo: 1,
  }),
);

// Logs the following
// {
//   provider: 'google',
//   link: 'https://mail.google.com/mail/u/[email protected]/#search/from%3A(@userfront.com)+in%3Aanywhere'
// }

Roadmap

  • Return Android and iOS links with app protocols?
  • Add a subject/keyword filter (very low priority)?
  • Consider more popular non-western email providers

Development

Run either npm run build or yarn build to output to the dist folder

Testing

Run npm run test or yarn test to run tests via Jest. --watch flag supported.


Disclaimer

I am in no way affiliated with the team at growth.design, I am merely a fan. All credit goes to Dan Benoni for the idea.