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

esign-ts

v0.0.1

Published

A comprehensive TypeScript SDK for Indonesian e-signature services with type-safe validation schemas and client implementations for both API v1 and v2.

Readme

esign-ts

TypeScript SDK for Indonesian e-signature services with type-safe validation schemas for API v1 and v2.

Features

  • 🔒 Type-safe - Full TypeScript support
  • 📋 Validation - Built-in Valibot schemas
  • 🌐 Dual API - v1 and v2 support
  • 🎯 Tree-shakeable - Modular imports
  • 📦 Lightweight - ~5.6kB bundle

Quick Start

npm install esign-ts
import { EsignClient } from 'esign-ts';

const client = new EsignClient({
  baseURL: 'https://api.esign.service.com',
  username: 'your-username',
  password: 'your-password',
});

// API v1 - Sign PDF
const signResponse = await client.signPDFV1({
  file: pdfFile,
  nik: '1234567890123456',
  passphrase: 'your-passphrase',
  tampilan: 'visible',
});

// API v2 - Advanced features
const signResponse = await client.signPDFV2({
  nik: '1234567890123456',
  passphrase: 'your-passphrase',
  signatureProperties: [{
    tampilan: 'VISIBLE',
    page: 1,
    originX: 100,
    originY: 200,
  }],
  file: ['base64-content'],
});

Modular Imports

// Full library
import { EsignClient } from 'esign-ts';

// Only client
import { EsignClient } from 'esign-ts/client';

// Only schemas
import { NIKSchema } from 'esign-ts/schemas';

// Only utilities
import { validateNIK } from 'esign-ts/utils';

API Methods

v1 API

  • signPDFV1() - Sign PDF with File objects
  • downloadDocumentV1() - Download signed document
  • verifyPDFV1() - Verify signatures

v2 API

  • signPDFV2() - Sign with base64 content
  • checkUserStatus() - Check certificate status
  • registerUser() - User registration
  • verifyPDFV2() - Enhanced verification

Browser Utilities

import { BrowserUtils } from 'esign-ts';

const base64 = await BrowserUtils.fileToBase64(file);
const blob = BrowserUtils.base64ToBlob(base64);
BrowserUtils.downloadBlob(blob, 'signed.pdf');

Validation

import { validateNIK, validateEmail } from 'esign-ts';

if (validateNIK('1234567890123456')) {
  // Valid 16-digit NIK
}

Documentation

License

MIT © mikeyxmomo