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

readwhitepaper-embed

v1.0.0

Published

Embed ReadWhitepaper widgets — blockchain whitepaper cards, glossary terms, search. Zero dependencies, Shadow DOM, 4 themes.

Readme

readwhitepaper-embed

npm License: MIT Zero Dependencies

Embed ReadWhitepaper widgets on any website. Display blockchain whitepaper cards, glossary terms, guides, and search on your blog, documentation, or wiki. 4 widget types, zero dependencies, Shadow DOM style isolation, 4 built-in themes (light, dark, sepia, auto), 2 styles (modern, minimal), and live data from readwhitepaper.com.

ReadWhitepaper is a blockchain whitepaper database featuring 30 whitepapers (Bitcoin, Ethereum, Solana, Cardano, Polkadot, and more), 163 glossary terms covering blockchain fundamentals, DeFi protocols, consensus mechanisms, and cryptographic primitives, all available in 15 languages.

Every widget includes a "Powered by ReadWhitepaper" backlink directing readers to the full reference.

Try the interactive widget builder at widget.readwhitepaper.com

Table of Contents

Quick Start

<!-- Place widget div where you want it to appear -->
<div data-readwhitepaper="entity" data-slug="bitcoin" data-theme="light"></div>

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

That's it. The widget fetches data from the ReadWhitepaper API and renders with full style isolation.

Widget Types

| Type | Usage | Description | |------|-------|-------------| | entity | <div data-readwhitepaper="entity" data-slug="..."></div> | Whitepaper card — title, authors, year, category, abstract excerpt | | glossary | <div data-readwhitepaper="glossary" data-slug="..."></div> | Blockchain glossary term with cross-references | | guide | <div data-readwhitepaper="guide" data-slug="..."></div> | Guide summary card with description | | search | <div data-readwhitepaper="search" data-slug="..."></div> | Search box linking to the full whitepaper database |

Widget Options

| Attribute | Values | Default | Description | |-----------|--------|---------|-------------| | data-readwhitepaper | entity, glossary, guide, search | required | Widget type | | data-slug | e.g. "bitcoin", "proof-of-work" | -- | Entity or term slug from ReadWhitepaper | | data-theme | light, dark, sepia, auto | light | Visual theme (auto follows OS preference) | | data-styleVariant | modern, minimal | modern | Widget design style | | data-size | default, compact, large | default | Widget max-width (280/420/720px) | | data-placeholder | any string | "Search Whitepapers..." | Search box placeholder text | | data-no-snippet | true | -- | Disable DefinedTerm JSON-LD injection |

Themes

<!-- Light (default) — clean white background -->
<div data-readwhitepaper="entity" data-slug="bitcoin" data-theme="light"></div>

<!-- Dark — dark background for dark-mode sites -->
<div data-readwhitepaper="entity" data-slug="bitcoin" data-theme="dark"></div>

<!-- Sepia — warm paper-like tones -->
<div data-readwhitepaper="entity" data-slug="bitcoin" data-theme="sepia"></div>

<!-- Auto — follows OS dark/light preference via matchMedia -->
<div data-readwhitepaper="entity" data-slug="bitcoin" data-theme="auto"></div>

Styles

<!-- Modern (default) — gradient accent header, rounded corners, spacious -->
<div data-readwhitepaper="entity" data-slug="ethereum" data-styleVariant="modern"></div>

<!-- Minimal — monospace font, thin border, flat design for dev docs -->
<div data-readwhitepaper="entity" data-slug="ethereum" data-styleVariant="minimal"></div>

Web Components (Custom Elements)

As an alternative to data-* attributes, use native HTML custom elements:

<readwhitepaper-entity slug="bitcoin" theme="dark"></readwhitepaper-entity>
<readwhitepaper-glossary slug="proof-of-work"></readwhitepaper-glossary>
<readwhitepaper-search placeholder="Search whitepapers..."></readwhitepaper-search>

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

Use style-variant (not style) to avoid conflicts with the HTML reserved style attribute.

Examples

Whitepaper Card

<!-- Bitcoin whitepaper card with dark theme -->
<div data-readwhitepaper="entity" data-slug="bitcoin" data-theme="dark"></div>
<script src="https://cdn.jsdelivr.net/npm/readwhitepaper-embed@1/dist/embed.min.js"></script>

Blockchain Glossary Term

<!-- Proof of Work definition with DefinedTerm JSON-LD injection -->
<div data-readwhitepaper="glossary" data-slug="proof-of-work" data-theme="light"></div>
<script src="https://cdn.jsdelivr.net/npm/readwhitepaper-embed@1/dist/embed.min.js"></script>

Search Box

<div data-readwhitepaper="search" data-placeholder="Search blockchain whitepapers..."></div>
<script src="https://cdn.jsdelivr.net/npm/readwhitepaper-embed@1/dist/embed.min.js"></script>

CDN Options

jsDelivr (recommended)

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

Specific version (production stability)

<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/embed.min.js"></script>

npm (for bundlers)

npm install readwhitepaper-embed
import 'readwhitepaper-embed';

What You Can Embed

Blockchain Whitepapers

ReadWhitepaper hosts the foundational documents that define the blockchain ecosystem. Each whitepaper card displays the document title, authors, publication year, category, and an abstract excerpt:

  • Bitcoin (2008) -- Satoshi Nakamoto's original peer-to-peer electronic cash system paper
  • Ethereum (2013) -- Vitalik Buterin's proposal for a programmable blockchain with smart contracts
  • Solana (2017) -- Proof of History consensus for high-throughput transactions
  • Cardano (2017) -- Peer-reviewed, evidence-based blockchain platform
  • Polkadot (2016) -- Heterogeneous multi-chain framework for cross-chain interoperability
  • Chainlink (2017) -- Decentralized oracle network bridging on-chain and off-chain data

Blockchain Glossary

163 terms covering the full spectrum of blockchain technology:

  • Consensus mechanisms: Proof of Work, Proof of Stake, Delegated PoS, BFT
  • DeFi protocols: AMM, liquidity pools, yield farming, flash loans, impermanent loss
  • Cryptographic primitives: hash functions, Merkle trees, digital signatures, zero-knowledge proofs
  • Network architecture: nodes, validators, sharding, layer 2, sidechains, rollups
  • Token standards: ERC-20, ERC-721, ERC-1155, BEP-20

Guides

In-depth guides explaining blockchain concepts, protocol comparisons, and technical deep dives.

Technical Details

  • Shadow DOM: Complete style isolation -- no CSS conflicts with your site
  • Zero dependencies: No jQuery, React, or any external library
  • 2 styles: Modern (accent gradients) and Minimal (monospace, flat design)
  • 4 themes: Light, Dark, Sepia, Auto (OS preference detection with matchMedia listener)
  • CORS: ReadWhitepaper API has CORS enabled for all origins
  • MutationObserver: Works with dynamically added elements (SPAs, React, Vue)
  • IntersectionObserver: Lazy loading -- widgets only fetch when entering viewport (200px margin)
  • Rich Snippets: DefinedTerm JSON-LD injected for glossary widgets (opt-out via data-no-snippet)
  • sessionStorage cache: 5-minute TTL reduces API calls on page navigation

Learn More About Blockchain Whitepapers

Visit readwhitepaper.com -- ReadWhitepaper is a comprehensive blockchain whitepaper database with full-text access, glossary, and multi-language translations.

License

MIT -- see LICENSE.

Built by dobestan.