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

@signkit/core

v0.0.6

Published

Client-first Vue 3 toolkit for building PDF form templates and collecting signatures in the browser — no backend required.

Readme

@signkit/core

Client-first Vue 3 toolkit for building PDF form templates and collecting signatures — entirely in the browser, no backend required.

npm license

Live Demo · Documentation · GitHub


If this project saves you time, consider buying me a coffee on Ko-fi. It helps keep the project maintained. ☕


What it does

@signkit/core gives you two components:

  • <FormBuilder> — Load a PDF, drag and drop signature/text/date/checkbox fields onto pages, and export a reusable template JSON.
  • <Signer> — Load a PDF + template JSON, let users draw or type signatures and fill fields, then produce a signed PDF and a manifest JSON describing every field value and signing metadata.

Everything runs client-side via pdf.js for rendering and pdf-lib for PDF generation. No API keys, no servers.


Installation

npm install @signkit/core

pdfjs-dist is a peer dependency. If you don't already have it:

npm install pdfjs-dist

Vue component usage

1. Import styles

Add this once in your app entry (e.g. main.ts):

import '@signkit/core/styles.css'

2. Form Builder

Let users design a signing template by placing fields on a PDF:

<script setup lang="ts">
import { ref } from 'vue'
import { FormBuilder } from '@signkit/core'
import type { Template } from '@signkit/core'

const template = ref<Template | null>(null)
</script>

<template>
  <FormBuilder
    pdf="/your-document.pdf"
    v-model="template"
    @update:modelValue="(t) => console.log('template updated', t)"
  />
</template>

When the user clicks Export, the component emits the updated Template object via v-model. Save this JSON however your app needs — it's the input to the Signer.

3. Signer

Present the saved template to a signer and collect their signature:

<script setup lang="ts">
import { ref } from 'vue'
import { Signer } from '@signkit/core'
import type { Template, Manifest } from '@signkit/core'

const props = defineProps<{
  template: Template
}>()

const manifest = ref<Manifest | null>(null)

function onFinalize(result: { signedPdfBytes: Uint8Array; manifest: Manifest }) {
  manifest.value = result.manifest
  // result.signedPdfBytes is the signed PDF — download or send it somewhere
}
</script>

<template>
  <Signer
    pdf-src="/your-document.pdf"
    :template="props.template"
    :signer="{ name: 'Jane Smith', email: '[email protected]' }"
    @finalize="onFinalize"
  />
</template>

@finalize receives { signedPdfBytes: Uint8Array, manifest: Manifest }. The manifest is a plain JSON object — store it alongside the signed PDF for your records.


Web Component usage

If you're not using Vue, the components are also available as standard custom elements.

Script tag (CDN / vanilla HTML)

<script src="https://unpkg.com/@signkit/core/dist/pdf-sign-kit.wc.iife.js"></script>

<!-- Form Builder -->
<pdf-form-builder id="builder"></pdf-form-builder>

<!-- Signer -->
<pdf-form-signer id="signer"></pdf-form-signer>

<script>
  const builder = document.getElementById('builder')
  builder.setAttribute('pdf', '/your-document.pdf')

  builder.addEventListener('template-exported', (e) => {
    const template = e.detail
    console.log('template', template)

    // Pass template to the signer as JSON
    const signer = document.getElementById('signer')
    signer.setAttribute('pdf-src', '/your-document.pdf')
    signer.setAttribute('template', JSON.stringify(template))
  })

  document.getElementById('signer').addEventListener('finalize', (e) => {
    const { manifest, signedPdfBytes } = e.detail
    console.log('manifest', manifest)
  })
</script>

npm bundler

import '@signkit/core/webcomponents'
// then use <pdf-form-builder> and <pdf-form-signer> in your HTML/templates

Theming

Styles are driven by CSS custom properties under the --sk- prefix. Override them on :root (or any container) after importing the stylesheet:

:root {
  --sk-color-action-primary: #7b61ff;
  --sk-color-on-action: #ffffff;
  --sk-font-signature: 'Shadows Into Light', cursive;
  --sk-radius-md: 8px;
}

See the Styling Guide for the full token reference.


Key types

| Type | Description | |---|---| | Template | The form definition — fields, page sizes, metadata | | Manifest | The signing record — field values, hashes, signer info | | Field | Union of SignatureField, TextField, DateField, CheckboxField | | FormBuilderProps | Props accepted by <FormBuilder> | | SignerProps | Props accepted by <Signer> |

Full API reference at docs.signkit.dev/api.


License

Apache 2.0 — see LICENSE.