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

@jtsnowball/snowsign-editor-react

v0.1.0

Published

React and Next.js SnowSign PDF field editor SDK.

Readme

SnowSign Editor React SDK

React and Next.js field placement SDK for external ERP/groupware integrations.

The SDK does not store or receive SnowSign API keys. Your server should create an upload session with POST /public/v1/uploads, receive the exported payload, and call SnowSign Public API from the server.

For preview, pass either pdfFile from a browser file input or pdfUrl from your own preview endpoint. When pdfFile is used, the SDK creates and revokes the browser object URL internally.

Install

npm install @jtsnowball/snowsign-editor-react

React

import { SnowSignFieldEditor } from '@jtsnowball/snowsign-editor-react';
import '@jtsnowball/snowsign-editor-react/style.css';

function createMultipartRequest(payload: unknown, pdfFile?: File) {
  if (!pdfFile) throw new Error('PDF file is required.');
  const formData = new FormData();
  formData.append('payload', JSON.stringify(payload));
  formData.append('file', pdfFile);
  return formData;
}

<SnowSignFieldEditor
  pdfFile={pdfFile}
  participants={['근로자']}
  onSubmit={async (payload, { pdfFile }) => {
    // Your ERP server creates the SnowSign upload session, uploads pdfFile,
    // and calls the contract creation API with document_upload_id.
    return fetch('/erp/snowsign/contracts', {
      method: 'POST',
      body: createMultipartRequest(payload, pdfFile),
    });
  }}
/>;

DOM Mount

<div id="snowsign-editor"></div>
<script type="module">
  import { mount } from '@jtsnowball/snowsign-editor-react';
  import '@jtsnowball/snowsign-editor-react/style.css';

  function createMultipartRequest(payload, pdfFile) {
    if (!pdfFile) throw new Error('PDF file is required.');
    const formData = new FormData();
    formData.append('payload', JSON.stringify(payload));
    formData.append('file', pdfFile);
    return formData;
  }

  const editor = mount('#snowsign-editor', {
    pdfFile,
    participants,
    onSubmit(payload, { pdfFile }) {
      return fetch('/erp/snowsign/contracts', {
        method: 'POST',
        body: createMultipartRequest(payload, pdfFile),
      });
    },
  });
</script>

Build

npm run build

Publish

The editor packages depend on @jtsnowball/snowsign-signature-fields-core, so publish the core package first.

cd ../../packages/snowsign-signature-fields-core
npm publish --access public

cd ../../sdk/snowsign-editor-react
npm publish --access public

cd ../snowsign-editor
npm publish --access public