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

@swiftcomplete/component

v0.1.0-alpha.6

Published

Custom web component <swiftcomplete> - a simple search field with a spinner.

Downloads

129

Readme

Swiftcomplete Web Component

Address and what3words search in a single custom element: <swiftcomplete-search>. Type to get suggestions, select to fill your form or handle the result in JavaScript.

Features

  • Address search - Postcodes, street names, full addresses.
  • what3words search - Enable via API to search by three-word addresses.
  • Device location - Optional biasing of results by user’s location.
  • Styling - CSS variables, size/theme/variant attributes, and overridable UI. Automatically follows prefers-color-scheme by default.
  • Accessible - ARIA, keyboard navigation, listbox semantics.
  • Framework-agnostic - Plain HTML + script or any JS framework.

Quick start

<swiftcomplete-search
  api-key="YOUR_API_KEY"
  placeholder="Search address or postcode"
></swiftcomplete-search>

<script type="module" src="https://cdn/path/to/swiftcomplete.es.js"></script>
<script nomodule src="https://cdn/path/to/swiftcomplete.js"></script>
<script type="module">
  window.swiftcomplete.runWhenReady((api) => {
    api.setApiKey('YOUR_API_KEY'); // or set via attribute above
  });
</script>

Get an API key from Swiftcomplete.

Documentation

| Topic | Description | | ---------------------------------------------- | --------------------------------------------------------------------- | | Getting started | Installation, script vs npm, declarative and imperative usage | | Attributes | api-key, placeholder, country, variant, size, theme, etc. | | Styling | CSS variables, variants, sizes, themes, and overriding icons | | what3words search | Enabling and using what3words in the same search | | Device location | Biasing results by the user’s location | | Events | Search and field events and payloads | | Populate fields | Mapping selected results into your form fields | | Advanced | Wrapping an existing input, service API, runWhenReady |

Browser support

Modern browsers with custom elements and Shadow DOM. Use the ES module script where supported and the nomodule script as fallback.