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

@lynx-js/devtool-connector

v0.16.2

Published

`@lynx-js/devtool-connector` is the standalone device and command layer shared by public and internal Lynx tools. It supports Android, iOS, Desktop, Peertalk, HDT and a persistent loopback daemon. Use Node 22.12+ or Node 24 for source development.

Downloads

13,306

Readme

Lynx DevTool Connector

@lynx-js/devtool-connector is the standalone device and command layer shared by public and internal Lynx tools. It supports Android, iOS, Desktop, Peertalk, HDT and a persistent loopback daemon. Use Node 22.12+ or Node 24 for source development.

import { Connector } from "@lynx-js/devtool-connector";
import { HttpCommandClient } from "@lynx-js/devtool-connector/command";
import { DaemonTransport } from "@lynx-js/devtool-connector/transport";

const connector = new Connector([new DaemonTransport()]);
const clients = await connector.listClients();
const client = clients[0];
if (!client) throw new Error("No Lynx clients found");
const commands = new HttpCommandClient();
const sessions = await commands.execute("list-sessions", {
  clientId: client.id,
});

The daemon owns physical connections; requests subscribe to them rather than opening a competing DebugRouter connection. Successful daemon/HDT discovery, including an empty result, is authoritative. Lifecycle conflicts never fall back to direct connections.

Product adapters

The public exports include DaemonLifecycle, DevtoolDaemon, StaticServer, InspectorAssetProvider and DebugMetadataLoader. A product may subclass the lifecycle to resolve its own entry and environment, bind its own daemon identity/command core/assets, and override the command client's and daemon transport's protected lifecycle method. HDT uses the shared implementation directly; it needs no discovery policy injection.

ActionCore accepts a metadata loader; source-info acquisition, caching and remapping remain shared. Android adapters may override getKnownApp for product-specific labels and activity names. Private integrations are not required to install or run this package.

The GET/OPTIONS version endpoint allows arbitrary origins (*) for discovery. Command, shutdown and WebSocket control remain restricted to same-origin loopback requests. The public Inspector uses the public Lynx DevTool frontend; it does not advertise the internal browser Preview protocol.

Migration from 0.13.2

The implementation now includes the 0.16.2 command, ReactLynx, lifecycle and HDT capabilities. Existing source export paths remain available. DaemonManager is now the default DaemonLifecycle instance (its ensureRunning/kill call shape is unchanged). Product adapters should extend DaemonLifecycle, not duplicate the manager. Daemon metadata's product is a string and browserPreviewProtocol is optional because it describes actual product capability.

Development

Run pnpm build, pnpm test and pnpm format:check in this package. Tests use node:test; device-independent tests are in test/, explicitly configured device tests in e2e/. The package retains its imported dprint source style to keep mechanical moves reviewable; the rest of the public repository uses Biome.