Ghostlink
Read the docs
Pre-release · package coming soon

Kaspa wallet login for your dApp.

Wallet login for TypeScript dApps. Vue and React components, wallet-approved login messages, and server-verified sessions — with your keys in your wallet.

Try it out Get Started
2browser wallets2UI integrationsTypeScripttyped APIs
app.ts
import { createGhostlink } from '@ghostdagger/ghostlink-core';

const client = createGhostlink({
  app: { name: 'My dApp', url: 'https://app.example' },
  network: 'mainnet',
  auth: { baseUrl: '/auth/ghostlink' },
});

// In a framework app, its provider owns initialization.
// Headless consumers acquire and later release browser activity:
const release = client.attach();

// Opens wallet selection when a UI host is mounted.
client.open();
// Release this headless owner when finished.
// release();
Configure @ghostdagger/ghostlink-server and your UI provider first. These examples use the existing public APIs.
Adapters shipped
KasWareKastleKasWare
How it works

Three steps to a verified login.

01 · choose
Choose your wallet

Choose KasWare or Kastle in your browser. Your private keys stay in your wallet.

02 · sign
Review before you sign

Review the application, account and network in the login message. Approve it in your wallet to finish signing in.

03 · verify
A server-verified session

Your backend verifies the signature and creates an application session. Sessions restore across reloads, subject to server expiry and revocation.

Why bother

Wallet login, with less to wire up.

Different wallets expose different APIs. Ghostlink brings supported wallets into one typed login flow, with Vue and React components and a Node verification backend.

One typed controller for supported wallet login flows.
Browser wallet detection for KasWare and Kastle.
Errors you can handle, with feedback already written for users.
Vue and React components backed by the same public APIs.
Rolling your own
With Ghostlink
Connect to different browser wallet APIs
One typed wallet controller
Handle wallet discovery and availability
Browser wallet detection and install guidance
Create and verify login challenges
Node verification backend
Check and restore application sessions
Server-verified session restoration
Build each framework’s login interface
Native Vue and React components
Wallet support

Adapters, not rewrites.

Connect with the KasWare or Kastle browser extension. Both use wallet-approved login messages and server-verified sessions.

KWKasWareBrowser extension · loginSupported
KSKastleBrowser extension · loginSupported
In the box

Boring where it counts.

Typed end to end

Typed methods, networks and errors help you integrate confidently. Runtime capability checks handle the operations each wallet actually supports.

Headless, then themed

Use the controller to build your own UI, or use the Vue and React components. Scoped CSS variables let you adapt their fonts, colors and surfaces.

Errors you can handle

Rejected signatures, expired messages, network mismatches and verification failures have typed errors and clear feedback in the login flow.

Sessions restore on reload

The client checks your backend for a valid session when it starts. Authentication can persist without a live wallet connection, until expiry or sign-out.

Live demo

Try the real login flow.

Choose a browser wallet, review a login message, and try a protected backend request in the Vue example.

Wallet login previewpreview
KWKasWareExtension
KSKastleExtension

Building on Kaspa? Start here.

Pre-release, built for wallet login, and ready to try in the working example.

Read the docs