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

angular-instafeed

v1.8.3

Published

Grid that displays your most recent Instagram photos.

Downloads

197

Readme

Angular Instafeed

Personal Instagram Angular.js Feed

Made by Joe Karlsson - 2018

See more at www.joekarlsson.com

Basic example usage of factory method to make a request to the Instagram api to get a certain amount of images with an Angular.js switchable grid.

Update

This project has been converted into an NPM package Check it out here.

Check out a live demo of this plugin here

Reviews

"Oh yes. Absolutely spot on ... works like a charm... The cleanest plugin i've ever worked with - clean, straightforward and works out of box." - tenzopro

instfeed-demo

Installing

  • In your project directory

    $ npm i angular-instafeed --save
  • In the HTML file you want to add Instafeed, you will need to add a div with the ID "instafeed".

    <div id="instafeed"></div>
  • Next, inside the project, you need to register as a Instagram Developer to get your Client ID

  • You will be creating a Instagram feed using the Instagram API and Angular 1.5. The feed will feature a switchable grid to change the layout of the photos on the page [see Style Guide below for details].

Before you start building out your Angular web application, you will need to sign up to be an Instagram Developer:

  1. First go register as an Instagram Developer to get your Client ID.

  2. You will also need to get your user ID go run this program. To get your User ID, go to this site and enter your Instagram user name to get your user ID.

  • Note: Your User ID is different than your User Name. Your User ID is a string that looks like 12345678
  • Note: If you do not have an Instagram account, find an account that you enjoy and use their photos for your feed.
  1. Create an index.html with an HTML5 template in a new directory, and fire up http-server we will need this in order to get our auth token.
  • Start your server, and copy the URL.
  • Go to your Manage Clients on the Instagram API settings, click Manage on your project, then click on the Security Tab and enter your server URL into the Valid Redirect URIs.
  1. This is the weird step - since we are making a client side web application, we need to get a pre-approved access-token from Instagram. Here's how you do it:
  • Step One: Direct your user to our authorization URL (Be sure to replace CLIENT_ID with your client ID and REDIRECT_URI with the url you pasted in the step above)

    https://api.instagram.com/oauth/authorize/?client_id=CLIENT_ID&redirect_uri=REDIRECT_URI&response_type=token

    At this point, we present the user with a login screen and then a confirmation screen where they grant your app’s access to their Instagram data. Note that unlike the explicit flow the response type here is “token”.

  • Step Two: Receive the access_token via the URL fragment

    Once the user has authenticated and then authorized your application, Instagram redirects them to your redirect_uri with the access_token in the url fragment. It will look like this:

    ```bash
    	http://your-redirect-uri#access_token=ACCESS-TOKEN
    ```

    Simply grab the access_token off the URL fragment and you’re good to go. If the user chooses not to authorize your application, you’ll receive the same error response as in the explicit flow

  1. Once you get your user id and your access_token, try hitting this route to get your most recent Instagram photos (Be sure to replace your USER_ID with your user ID and ACCESS_TOKEN with the access token you got in the step above).

    https://api.instagram.com/v1/users/USER_ID/media/recent/?count=99&&callback=JSON_CALLBACK&access_token=ACCESS_TOKEN
  2. Now, you're ready to starting building your Instagram Feed in Angular :sparkles:

Note: If you are interested in installing this via NPM, I got cha covered. Check it out here.

Contributing

  1. Fork it!
  2. Create your feature branch: git checkout -b my-new-feature
  3. Commit your changes: git commit -am 'Add some feature'
  4. Push to the branch: git push origin my-new-feature
  5. Submit a pull request :D

See more at www.joekarlsson.com