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

node-vine

v0.0.1

Published

Vine API for node.js

Downloads

2

Readme

node-vine

Vine API for node.js

About

The Vine API is undocumented and not publicly available. However, it has a lot of great content. I noticed that there are a few python wrappers, so I wanted to create a node.js one. I also plan to do a few mobile web experiments with the Vine API, so this will come in handy for my next project. Have fun!

API

All of Vine's API calls are authenticated, so you'll need to login first. You can add VINE_USERNAME and VINE_PASSWORD to your environment variables to hide them from being passed in the clear.

.login(username, password[, callback(err, response)])

Only supports e-mail address authentication. Twitter OAuth authentication to come later.

vine.login("[email protected]", "p@ssw0rd", function(err, response) {
  // Logged in!  Now you can use any other authenticated API... Like fetching your timeline or the most popular videos.
});

.timeline([ callback(err, response)])

Returns a user's timeline

vine.timeline(function(err, response) {
  // response contains a list of Vines in your timeline
});

.popular([ callback(err, response)])

Returns a list of the most popular Vines

vine.popular(function(err, response) {
  // response contains a list the most popular Vines
});

.promoted([ callback(err, response)])

Returns a list of promoted Vines

vine.promoted(function(err, response) {
  // response contains a list of promoted Vines
});

.tags(query[, callback(err, response)])

Performs a search for Vines with an associated tag

vine.tags("lolcats", function(err, response) {
  // response contains a list of lolcats Vines
});

.search(query[, callback(err, response)])

Performs a search for Vine users

vine.search("dave", function(err, response) {
  // response contains a list of Vine users matching "dave"
});

.settings([ callback(err, response)])

Returns a user's settings

vine.settings(function(err, response) {
  // response contains a user's Vine account settings
});

Notes

Inspired by vino, a python app that displays a wall of popular Vines.

License

MIT