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

capshare

v0.1.0

Published

Automatic image uploads to an s3 bucket then add url to clipboard

Downloads

2

Readme

CapShare

Capshare is a really fast way to share a screencapture. It's a background daemon for OS X so once you set it up it's always running.

How it works

The CapShare daemon watches a specified folder on your machine. When a file is added to that folder it immediately uploads the file to an s3 bucket and copies the https link to your clipboard.

Because it's just a folder it will also work if you drag or copy an image to that folder.

Dependencies

  • Node.js
  • An s3 bucket
  • OS X

Setup

First install the capshare binary.

npm install -g capshare

Next thing you will want to do is change the folder where your screen captures are saved.

defaults write com.apple.screencapture location ~/Pictures/capshare && killall SystemUIServer

Here I am using ~/Pictures/capshare.

Then you will want to setup the launchd config:

curl http://raw.githiub.... > ~/Library/LaunchAgents/com.bhelx.capshare.plist

Edit these fields in that file:

    <key>ProgramArguments</key>
    <array>
      <string>/usr/local/bin/capshare</string>
      <string>{{absolute_path_to_capshare_folder}}</string>
      <string>{{bucket_name}}</string>
      <string>{{s3_access_id}}</string>
      <string>{{s3_secret}}</string>
    </array>

You might want to ensure the capshare binry is where I think it is with:

which capshare

You also may want to consider creating a user in s3 for specifically accessing your bucket so it will be easy to revoke.

Now to laucnh the daemon

launchctl load ~/Library/LaunchAgents/com.bhelx.capshare.plist

If you need to stop it at any point you can do so with unload

launchctl unload ~/Library/LaunchAgents/com.bhelx.capshare.plist

Done

Now if you take a screencap you will almost immediately have an https link in your copy buffer so you can paste to whoever you need to share with.