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

@telixon/web-sdk

v1.2.0

Published

DOM adapter for @telixon/core: PhoneInput driving a plain <input>, RegionList and RegionPicker behind region pickers, and a flag sprite for every region.

Readme

@telixon/web-sdk

The DOM adapter for @telixon/core, shipping three headless widgets. PhoneInput drives a plain <input>, RegionList feeds the region picker, and RegionPicker drives the picker's trigger and list.

conformance benchmarks initial bundle downloads

Documentation · Playground

Install

npm install @telixon/core @telixon/web-sdk

Quick start

createPhoneInput turns a plain <input> into a phone field, handling the events, the caret, and the history:

import { ensureEngineReady } from '@telixon/core';
import { createPhoneInput } from '@telixon/web-sdk';

await ensureEngineReady(); // once per process; createPhoneInput throws until it resolves

const phone = createPhoneInput({
  mode: 'international',
  input: document.querySelector<HTMLInputElement>('#phone')!,
});

phone.subscribe((state) => {
  // After typing +442071838750:
  // state.value            '44 20 7183 8750'
  // state.region           'GB'
  // state.validationError  null
});

createRegionList feeds a region picker, with search, sorting, and pinned rows already applied:

import { createRegionList, regionToFlagEmoji } from '@telixon/web-sdk';

const regions = createRegionList({
  prioritize: ['US', 'CA', 'GB'],
  dataFactory: ({ region }) => regionToFlagEmoji(region),
});

regions.getState().options[0];
// { region: 'US', callingCode: '1', displayName: 'United States', data: '🇺🇸' }

regions.search('united');
regions.getState().options.map((option) => option.region); // ['US', 'GB', 'AE']

createRegionPicker holds the open state, the row the arrow keys highlight (the keyboard cursor that Enter picks), and the selection. Bound to a phone, it follows the phone's resolved region:

import { createRegionPicker } from '@telixon/web-sdk';

const picker = createRegionPicker({ regions, phone });

picker.open();
picker.search('can');
picker.select(picker.getState().active!); // phone.setRegion('CA')
picker.close();

attachRegionPicker wires a trigger, a popup with a search field, and a listbox to the picker. It handles the clicks, the keys, outside presses, the ARIA attributes, and the row rendering. bindRegionPicker wires the same behavior where a framework already renders the rows.

@telixon/web-sdk/flags ships a sprite sheet with a flag for every region. A cell is two elements. The stylesheet carries the sheet:

<span class="tlx-flag" aria-hidden="true"><span class="tlx-flag__image"></span></span>

The transform selects the region's cell:

import '@telixon/web-sdk/flags/flags.css';
import { flagTransform } from '@telixon/web-sdk/flags';

const image = document.querySelector<HTMLElement>('.tlx-flag__image')!;
image.style.transform = flagTransform('US'); // 'translate(-18.75%, -87.5%)'

Highlights

  • Full input controller. Live formatting on every keystroke with a stable caret, across mid-string edits, deletions, and paste.
  • Controlled history. Undo and redo restore the exact prior value and selection.
  • Headless. No styles, no rendering. Binds a plain <input> in React, Vue, Angular, Svelte, or vanilla JS.

Support

Questions belong in Discussions. Bugs and feature requests belong in Issues. Vulnerabilities follow SECURITY.md.

Contributing

Setup, workflow, and the engineering standards are in CONTRIBUTING.md.

License

Apache-2.0 © Martsin Labs