@li-nk.me/web-sdk
v0.2.8
Published
Zero-dependency browser SDK for LinkMe deep and deferred links.
Maintainers
Readme
LinkMe Web SDK
Zero-dependency browser SDK for LinkMe deep and deferred links.
Installation
npm install @li-nk/web-sdkBasic Usage
import { configure, resolveFromUrl } from '@li-nk/web-sdk';
await configure({
appId: 'app_123',
appKey: 'lk_live_read_only_key',
debug: process.env.NODE_ENV !== 'production',
});
const initial = await resolveFromUrl();
if (initial?.path) {
// Route user
}iOS Pasteboard (Deferred Install)
Clipboard attribution on iOS is not performed by the Web SDK. It’s handled by LinkMe Edge when redirecting to the App Store:
- When a link resolves to an
apps.apple.comdestination and pasteboard is enabled for the app (ios_enable_pasteboard), Edge serves an interstitial page that attempts to write acidtoken to the clipboard before continuing to the App Store. - Store URLs may be
https://apps.apple.com/...oritms-apps://apps.apple.com/...(both should trigger the interstitial). - Modern iOS Safari often requires a user gesture (tap) for clipboard writes, so this is best‑effort and may fall back to probabilistic fingerprint matching.
For full documentation, guides, and API reference, please visit our Help Center.
License
Apache-2.0
