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

widegita-embed

v1.2.0

Published

Embed WideGita scripture widgets on any website. Lightweight (~5KB gzipped), zero dependencies, Shadow DOM isolation, 3 themes (light/dark/sepia).

Readme

widegita-embed

npm License: MIT Zero Dependencies Size

Embed WideGita scripture widgets on any website. Zero dependencies, Shadow DOM style isolation, 3 built-in themes (light, dark, sepia), and automatic daily verse updates. Each widget includes a "Powered by WideGita" backlink.

Try the interactive widget builder at widget.widegita.com

Quick Start

<!-- Place widget div where you want it to appear -->
<div data-widegita="verse" data-ref="2:47" data-theme="light"></div>

<!-- Load the embed script once, anywhere on the page -->
<script src="https://cdn.jsdelivr.net/npm/widegita-embed@1/dist/embed.min.js"></script>

That's it. The widget will load, fetch the verse from the WideGita API, and render it with full style isolation.

Widget Types

| Type | Usage | |------|-------| | Verse Card | <div data-widegita="verse" data-ref="..." data-theme="light"></div> | | Chapter Card | <div data-widegita="chapter" data-ref="..."></div> | | Comparison Card | <div data-widegita="compare" data-a="..." data-b="..."></div> | | Verse of the Day | <div data-widegita="votd" data-theme="light"></div> | | Search Box | <div data-widegita="search" data-placeholder="..."></div> |

Widget Options

| Attribute | Values | Default | Description | |-----------|--------|---------|-------------| | data-widegita | verse, chapter, person, compare, votd, search | required | Widget type | | data-ref | "2:255" | — | Verse/chapter reference | | data-slug | "moses", "paul" | — | Person slug (person widget only) | | data-a | verse ref | — | First verse for comparison | | data-b | verse ref | — | Second verse for comparison | | data-theme | light, dark, sepia | light | Visual theme | | data-size | default, compact | default | Widget size | | data-translation | prabhupada, etc. | prabhupada | Translation code | | data-show-original | true, false | false | Show original language text | | data-placeholder | any string | "Search Bhagavad Gita…" | Search box placeholder |

Themes

<!-- Light (default) -->
<div data-widegita="votd" data-theme="light"></div>

<!-- Dark -->
<div data-widegita="votd" data-theme="dark"></div>

<!-- Sepia (warm, book-like) -->
<div data-widegita="votd" data-theme="sepia"></div>

CDN Options

jsDelivr (recommended — global CDN, auto-updates with npm)

<script src="https://cdn.jsdelivr.net/npm/widegita-embed@1/dist/embed.min.js"></script>

R2 CDN (widegita.com hosted)

<script src="https://cdn.widegita.com/embed.min.js"></script>

npm (for bundlers)

npm install widegita-embed
import 'widegita-embed';

Examples

Verse of the Day

<div data-widegita="votd" data-theme="light"></div>
<script src="https://cdn.jsdelivr.net/npm/widegita-embed@1/dist/embed.min.js"></script>

Verse with Original Language

<div data-widegita="verse"
  data-ref="1:1"
  data-show-original="true"
  data-theme="sepia">
</div>
<script src="https://cdn.jsdelivr.net/npm/widegita-embed@1/dist/embed.min.js"></script>

Compact Verse of the Day (sidebar use)

<div data-widegita="votd" data-theme="light" data-size="compact"></div>
<script src="https://cdn.jsdelivr.net/npm/widegita-embed@1/dist/embed.min.js"></script>

Search Box

<div data-widegita="search" data-placeholder="Search Bhagavad Gita…"></div>
<script src="https://cdn.jsdelivr.net/npm/widegita-embed@1/dist/embed.min.js"></script>

Technical Details

  • Shadow DOM: Complete style isolation — no CSS conflicts with your site
  • Zero dependencies: No jQuery, React, or any external library
  • System fonts: No Google Fonts request — loads instantly
  • CORS: WideGita API has CORS enabled for all origins
  • Caching: Verse of the Day cached in localStorage (refreshes daily)
  • MutationObserver: Works with dynamically added elements (SPAs)
  • Bundle size: ~5KB gzipped

Learn More About Bhagavad Gita

Visit widegita.com — WideGita is a comprehensive Bhagavad Gita reference with full text, translations, and study tools.

WideHoly Scripture Family

Part of WideHoly — Scripture for everyone.

| Site | Domain | Scripture | |------|--------|-----------| | WideBible | widebible.com | Bible verses, chapters, people | | WideQuran | widequran.com | Quran verses, surahs | | WideTorah | widetorah.com | Torah verses, portions | | WideGita | widegita.com | Bhagavad Gita verses | | WideSutra | widesutra.com | Buddhist sutras, teachings | | WideHoly | wideholy.com | Multi-religion scripture hub |

License

MIT — see LICENSE.

Built with ❤️ by WideHoly.