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 🙏

© 2026 – Pkg Stats / Ryan Hefner

@lite-embeds/instagram

v0.1.2

Published

Privacy-first facade web component for Instagram embeds. Renders a static placeholder; only loads the embed script when the user clicks.

Downloads

367

Readme

@lite-embeds/instagram

npm bundle license

Privacy-first facade web component for Instagram embeds. Renders a static placeholder; only loads instagram.com/embed.js when the user clicks.

Install

npm install @lite-embeds/instagram

Or via CDN:

<script type="module" src="https://unpkg.com/@lite-embeds/instagram"></script>

Usage

<lite-instagram
  shortcode="CxYzAbC123"
  username="@nasa"
  caption="A new image of the Pillars of Creation"
></lite-instagram>

Attributes

| Attribute | Required | Description | |---|---|---| | shortcode | yes | The Instagram shortcode — the segment after /p/, /reel/, or /tv/ in an Instagram URL. | | kind | optional | p (default — post), reel, or tv. Determines the URL path passed to Instagram. | | username | recommended | Author handle shown in the facade, e.g. @nasa. | | caption | optional | Caption snippet shown in the facade. Plain text — HTML is escaped. |

How it works

On insertion, the component renders a static facade in Shadow DOM using only the attributes you provide — no network calls. When the user clicks (or activates via Enter / Space), an instagram-media blockquote is inserted in light DOM (so Instagram's embed script can find it), https://www.instagram.com/embed.js loads once (deduplicated across instances), and window.instgrm.Embeds.process() upgrades the blockquote into the real iframe.

shortcode is validated against /^[A-Za-z0-9_-]+$/ and kind is validated against the closed enum, so URL injection is impossible.

License

MIT