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

autogram-sdk

v0.1.0

Published

SDK for Autogram signer

Downloads

47

Readme

Autogram SDK - use Autogram signer from web

Autogram SDK is a TS/JS library that allows you to use the Autogram signer family (Autogram, Autogram V Mobile) from web. Not only does it provide an API to sign documents, but it also adds a UI for a consistent process of choosing the signer process (desktop/mobile).

UI is implemented using lit-element and lit-html, so it's lightweight and easy to customize and thanks to shadow DOM, it's encapsulated and it won't interfere with your styles.

Installation

npm install autogram-sdk

Usage (module import)

import { CombinedClient } from ".";

const client = await CombinedClient.init();

const { content, issuedBy, signedBy } = await client.sign(
  {
    content: "hello world",
    filename: "hello.txt",
  },
  {
    level: "XAdES_BASELINE_B",
    container: "ASiC_E",
  },
  "text/plain",
  true
);

Usage on web (script tag)

<script src="dist/index.global.js"></script>
<script>
  const client = await AutogramSDK.CombinedClient.init();

  const { content, issuedBy, signedBy } = await client.sign(
    {
      content: "hello world",
      filename: "hello.txt",
    },
    {
      level: "XAdES_BASELINE_B",
      container: "ASiC_E",
    },
    "text/plain",
    true
  );
</script>

Advanced usage

Because Autogram SDK is used in Autogram Extension and in extension we UI is implemented in content context and signing process is in worker context, because of security reasons, the library is designed to support this case.

That's why SDK has "channel" concept. CombinedClient is combining UI and singing process for both desktop and mobile. `Channel

Development

Build

npm run build:release
# or
npm run build:watch

using npm run build:watch is usefult when developing using npm link

Generate types

npm run generate-autogram-api-types
npm run generate-avm-api-types

Autogram Desktop types are generated from local app running on default port. AVM types are generated from server.

Generate docs

npm run generate-docs

Using with npm link

  1. Run npm run build:watch in the autogram-sdk directory
  2. Run npm link in the autogram-sdk directory
  3. Run npm link autogram-sdk in the project where you want to use autogram-sdk

Sometimes the link breaks and you need to do whole process again.

Demo

npm run demo

This will start a demo server on port 8080. You can access it at http://localhost:8080. Demo has 2 html documents demo1.html and demo2.html. demo1.html is file input where you can try any file, lib is used as typescript import in demo.ts. demo2.html automatically starts signing process with example file, lib is used as javascript global (script tag). Build the lib before running the demo.