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

@linkeq/sdk

v0.6.0

Published

Minimal TypeScript client for the LinkEQ API

Readme

LinkEQ SDK

TypeScript client for the LinkEQ API. Fewer tokens than raw HTTP for agents.

npm i @linkeq/sdk

Default base URL: https://api.linkeq.co
Override for local: new LinkEQ({baseUrl: 'http://127.0.0.1:8787'})

Auth

All authenticated calls use Authorization: Bearer lq_….

API key (steady state)

  1. Copy lq_… from the LinkEQ landing page
  2. Set LINKEQ_API_KEY or pass apiKey to the constructor
import {LinkEQ} from '@linkeq/sdk'

const linkeq = new LinkEQ() // uses LINKEQ_API_KEY

OTP bootstrap (first-time / agent)

When the human only has email access:

const linkeq = new LinkEQ()
await linkeq.auth.otp('[email protected]')
const {api_key} = await linkeq.auth.verify('[email protected]', '123456')
// save api_key → LINKEQ_API_KEY for next runs

verify returns the key once and stores it on the client. No device-code flow.

SDK surface

| | | |---|---| | auth.otp(email) | send 6-digit code | | auth.verify(email, code) | → api_key | | accounts.me() | current account | | accounts.regen() | rotate key | | sites.create({domain, verifiedMethod, includePaths?, excludePaths?}) | register site (dns | file) | | sites.verify(id) / sites.list() / sites.get(id) | verify & read (status is a string) | | sites.pages(id) / sites.ingest(id, url) / sites.unindex(id, url) | page inventory | | sites.update(id, {includePaths?, excludePaths?, status?}) | pause (inactive) or crawl paths | | sites.recrawl(id) / sites.delete(id) | recrawl / remove | | sites.internalLinks(id, {url?, urls?, limit?, direction?}) | main helper — url or urls (max 50). Prefer urls → {ready, pages:[{source_url\|target_url, ready, links}]}. Single url → {ready, links: [{source_url, target_url, suggested_anchor, relevance}]}. direction: 'inbound' = who should link here; ready: false (202) if embeddings not ready | | matches.list(siteId, {url?, min_relevance?, limit?, category?, min_dr?, language?}) | partners; url → partner pages | | exchanges.create({requester_site_id, target_site_id, mode?, requester_url?, target_url?}) | reciprocal only; 400 if pair already open | | exchanges.list({status?, site_id?, role?}) / get(id) / accept(id) / reject(id) | manage (cancelled is a status) | | exchanges.cancel(id) | requester, pending → cancelled | | exchanges.placement(id) | HTML/anchor for your side | | exchanges.verify(id, placement_url) | live <a href> to destination; both sides | | exchanges.health(id) | re-check; may set failed |

Agent happy path (internal links)

import {LinkEQ} from '@linkeq/sdk'

const linkeq = new LinkEQ()
const siteId = 1
await linkeq.sites.ingest(siteId, 'https://example.com/article')
const {ready, pages} = await linkeq.sites.internalLinks(siteId, {
  urls: ['https://example.com/article', 'https://example.com/other'],
})
if (!ready) { /* retry later — embeddings not ready */ }
// place <a href={pages[0].links[0].target_url}>{pages[0].links[0].suggested_anchor}</a> on pages[0].source_url

// single page (same shape as before):
const {source_url, links} = await linkeq.sites.internalLinks(siteId, {
  url: 'https://example.com/article',
})

// who should link here:
await linkeq.sites.internalLinks(siteId, {
  url: 'https://example.com/article',
  direction: 'inbound',
})

Same flow as https://api.linkeq.co/llms.txt — the SDK is the typed wrapper around those routes.