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

iframely

v2.6.0

Published

Self-hosted URL engine behind Iframely. Turns links into metadata, previews and embeds using oEmbed, Open Graph, Twitter Cards and domain parsers.

Readme

Iframely URL engine for previews and embeds

This is the engine behind the Iframely service. Give it a URL and it returns the metadata: title, description, thumbnails, author, canonical URL. If allowed, and if the provider supports it, you also get embed HTML for videos, posts, maps, slideshows, etc.

This engine has powered Iframely in production since 2013. Use it if you’d like to self-host rather than rely on the cloud version.

How it works

Iframely uses two kinds of parsers.

Custom domain plugins handle specific providers, from YouTube to Google Maps. You'll find them in the /plugins/domains folder.

Generic parsers read standard markup like oEmbed, Open Graph, Twitter Cards and JSON-LD.

Domain plugins work for the providers they cover. For everything else, the generic parsers only return rich media embeds for providers on the allowlist. We maintain that list for both the open-source and cloud versions, and it's synced to your instance by default. If you'd rather curate your own, you can swap in your own allowlist.

Any other URL still returns metadata and thumbnails, if available.

Some additional plugins are private and only used in the cloud. You can write your own for your instance.

API

There are two endpoints. Both take url and return JSON:

  • {your.server}/iframely?url= returns the Iframely format. It looks like the <head> of a page: meta for data, links for media.
  • {your.server}/oembed?url= returns a simplified oEmbed version of the same data. It's an adapter, so the engine does the same work for both endpoints.

There's also a visual debugger at {your.server}/debug.

Sample responses from the cloud API: Iframely format and the same URL as oEmbed.

Getting started

You'll need Node.js 20.19.3 or later.

Start with the install and configuration guide. Then see link rels and types and meta semantics for what comes back.

Coming from a version before 2.0.0? Here are the migration steps.

Open source vs. cloud

The Iframely cloud Preview APIs run on the same parsers and the same allowlist, so responses match apart from minor differences. If you keep the default allowlist, coverage is almost the same, apart from the private plugins.

The cloud also adds:

  • Hosted iframe rendering in the html field: preview cards, GIF support, player events, AMP and more.
  • Per-URL options, predictive sizing to reduce layout shift, lazy-loading and media allowlists by type.
  • The Data API, for apps that process URLs automatically (assistants, search, AI). It builds on the preview data and adds entities, excerpts and full text where the provider allows it.

Contributing

Issues and pull requests are welcome. Please open PRs against develop. Everything lands there before it goes to master. Contributions are under the same MIT license. Questions: [email protected].

License

MIT License. © 2012–2026 Itteco Software Corp. Nazar Leush, Ivan Paramonau and the contributors.