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

@embedpdf/viewer-svelte

v3.3.0

Published

A complete PDF viewer as a Svelte component: toolbars, annotations, forms and signatures, with the PDF engine built in.

Readme

@embedpdf/viewer-svelte

A complete PDF viewer as a Svelte component: toolbars, annotations, forms and signatures, with the PDF engine built in.

Quick start

This guide adds the viewer to your app, then makes it yours in four small steps. Each step works on its own, so stop whenever it's enough.

1. Install

npm install @embedpdf/viewer-svelte

The package brings everything: the toolbar and panels, the PDF engine, and its WebAssembly, which your build serves from your own site.

2. Show a PDF

Give the viewer a document and a height:

first.svelte

<script lang="ts">
  import { PDFViewer } from '@embedpdf/viewer-svelte';
</script>

<PDFViewer src="https://www.embedpdf.com/pdfs/welcome.pdf" style="height: 100vh" />

The viewer fills the box you give it, so it needs a height: a fixed one, 100vh, or the rest of a flex layout. People can now scroll, zoom, search, select text, annotate, fill in forms, sign and download.

All features

Most features are on from the start; measuring, redaction, building forms and snapshots wait until you turn them on. Turn features on or off with features, by the name in the first column:

{ features: { measurement: true, redaction: true, comments: false } }

| Feature | What people can do | On from the start | Settings | | :------------ | :------------------------------------------------------------------------------------------- | :---------------- | :--------------------------------------------------------------------------------------------------------- | | annotations | Highlight, underline and strike out text; draw; add notes, text boxes and callouts | yes | Annotations | | shapes | Draw rectangles, circles, lines, arrows and polygons | yes | Annotations | | comments | Comment on annotations and reply, in a panel with every thread | yes | Annotations | | stamps | Place stamps: the standard ones, their own, or images | yes | Annotations | | signatures | Draw, type or upload a signature; sign fields; check signatures | yes | Forms & signatures | | forms | Fill in forms; build them in the Form mode | Filling only | Forms & signatures | | redaction | Mark text and areas, then remove them from the file for good | no | Annotations | | measurement | Measure distances, perimeters and areas at the drawing's scale | no | Annotations | | pages | Rotate, move, insert, duplicate and delete pages in the thumbnails panel, each step undoable | yes | Panels | | attachments | See, save, attach and remove files inside the PDF | yes | Panels | | search | Find text, with every match highlighted and listed | yes | plugins.search | | text | Select and copy text | yes | plugins.selection | | snapshots | Copy or save part of a page as a picture | no | Documents | | thumbnails | A picture of every page, to jump around | yes | Panels | | outline | The document's table of contents | yes | Panels | | documents | Open other files (with the local engine), download, print, several documents in tabs | yes | Documents |

Documentation

  • Quick start: Install the viewer, show a PDF, give it your color and your own button, put your own component in the toolbar, and talk to it from code.
  • Setup: Sizing, server-side rendering, the engine, and several viewers on a page.
  • Layout: Toolbars at the bottom, on the side, floating, or several at once.
  • Theming: Your colors, light and dark, and the look of every part.

License

Apache-2.0