Skip to content

Latest commit

 

History

3 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Transgate-Extension-SDK-Examples

Examples and tutorials for integrating the zkPass SDK into your own Chrome extensions.

These examples target @zkpass/transgate-extension-sdk — a library that runs zkPass zkTLS verification entirely inside a Chrome MV3 background service worker, with no external extension or backend required.

Examples

# Directory What it shows
01 01-minimal/ The smallest possible extension that calls runZKTLS. One side-panel button → service worker runs the verification → result is dumped as JSON.
02 02-login-site/ Realistic integration against a login-gated site (Twitter / X follow schema). Side panel with live progress + history, categorized error handling, full proof display.

Documentation

File What's inside
Integration Guide Tutorial: from npm install to a working runZKTLS call. Covers data flow, the onListening trigger hook, login-gated sites, error categorization, common patterns, and troubleshooting.
API Reference Full public API surface: class TransGateExtensionCore, RunZKTLSOptions (options table), RunResult, the 12 ErrorCode values, STATUS_MSG constants, VERSION.

For the canonical SDK package, see @zkpass/transgate-extension-sdk on npm.

Quick start

cd <example-dir>           # e.g. 01-minimal or 02-login-site
npm install                # installs @zkpass/transgate-extension-sdk + esbuild
npm run build              # esbuild bundles the SW into dist/, copies manifest + sidepanel files
# then in Chrome:
#   chrome://extensions → Developer mode → "Load unpacked" → select the dist/ directory

License

Apache 2.0

About

Examples and tutorials for integrating the zkPass SDK into your own Chrome extensions.

Resources

Stars

3 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages