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

biblezh.js

v0.1.3

Published

[![npm](https://img.shields.io/npm/v/biblezh.js)](https://www.npmjs.com/package/biblezh.js) ![npm bundle size](https://img.shields.io/bundlephobia/minzip/biblezh.js) ![types typescript](https://img.shields.io/npm/types/biblezh.js) ![NPM Last Update](https

Readme

biblezh.js

npm npm bundle size types typescript NPM Last Update GitHub License

Useful Web Component for displaying Bible contents. Merry Christmas!

screenshot

Including in your project

simply run

npm install biblezh.js

Or if you prefer CDN:

<script
  src="https://cdn.jsdelivr.net/npm/biblezh.js/dist/biblezh.bundled.js"
  type="module"
></script>

Usage

The <bz-bible> element generates a Bible verse on your page, with the location (in which book, chapter and verse) provided. When you click on the location text, a popup will allow you to change translations and go to several Bible websites.

<!-- Common usage, allowing to change translations -->
<bz-bible
  data='[{"version":"NIV", "text":"In the beginning God created the heaven and the earth."}, {"version":"和合本", "text":"起初, 神创造天地。"}]'
  book="Genesis"
  chapter="1"
  verse="1"
></bz-bible>

<!-- With a custom quote provided, not allowing to change translations -->
<bz-bible
  customquote="In the beginning"
  book="Genesis"
  chapter="1"
  verse="1"
></bz-bible>

You can also use this in JavaScript or TypeScript:

import Bible from "biblezh.js";
let bible = new Bible();
bible.book = "Genesis";
bible.chapter = 1;
bible.verse = 1;
bible.data = JSON.stringify([
  {
    version: "NIV",
    text: "In the beginning God created the heaven and the earth.",
  },
  { version: "和合本", text: "起初, 神创造天地。" },
]);
document.appendChild(bible);

This package also provided a useful database (available as a JavaScript array constant):

// Declaration of the database
export const BIBLE_BOOKS: BibleBooksType = {
  Gen: ["创世记", "创", "Genesis", "Gen"],
  Exo: ["出埃及记", "出", "Exodus", "Exo"],
  // remaining entries
};

// Usage
import { BIBLE_BOOKS, getBookAbbr, getBookIndex } from "biblezh.js";

BIBLE_BOOKS["Mrk"][0]; // -> "马可福音"

// get abbreviation by all 4 names
getBookAbbr("1 John"); // -> "1Jn"

// accepts English abbreviations only
getBookIndex("Mrk"); // -> 40

Configuration

This package provides a document-wide configuration option.

<!-- Set language to English (for UI) -->
<meta name="biblezh-language" content="en" />

<!-- adjust the orders and the presence of Bible websites -->
<!-- allowed values: yv bg wd zn -->
<!-- where: yv-[YouVersion] bg-[Bible Gateway] wd-[微读圣经] zn-[主内圣经] -->
<meta name="biblezh-websites" content='["yv", "bg"]' />

<!-- you can also pass the websites like this -->
<meta name="biblezh-websites" content="wd, bg" />

Development tips

Due to rollup-plugin-minify-html-literals which specifies an older version of rollup, you may need to use pnpm as package manager.