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 🙏

© 2025 – Pkg Stats / Ryan Hefner

@nosto/search-js

v3.24.1

Published

Nosto Search JS is an implementation of Nosto Search. In addition to the base search functionality, it also provides the following features:

Downloads

1,583

Readme

Search JS

Nosto Search JS is an implementation of Nosto Search. In addition to the base search functionality, it also provides the following features:

  • Currency formatting: Format prices based on Nosto settings.
  • Product thumbnails: Thumbnail resizing.
  • Retry logic: Retry failed search queries automatically.
  • Preact components: Build modern search interfaces.
  • Autocomplete: Fast and responsive autocomplete tools.
  • Category search: Display and filter by categories.
  • SERPs: Build search result pages with sorting and pagination.
  • Utilities: Helpers for common tasks like array or object merging and equality checks.
  • Infinite scroll: Loads more components upon scrolling to the end of results.

Installation

To install the package, use your preferred package manager:

yarn add @nosto/search-js
# or
npm install @nosto/search-js --save

Documentation

Read Nosto Techdocs for more information on how to use the library.

Library TypeDoc page includes detailed library helpers documentation and examples.

Packages

core

The core package provides the foundational functionality for interacting with Nosto Search. It includes utilities for managing search queries, applying decorators, and handling search results.


currencies

The currencies package provides utilities for formatting monetary values and decorating search results with price information.


preact packages

preact/autocomplete

The preact/autocomplete package helps you add autocomplete functionality to your search interface.

preact/category

The preact/category package provides tools to show and interact with category-based search results.

preact/common

The preact/common package includes shared components that are used across other preact packages.

preact/hooks

The preact/hooks package offers hooks to manage state and actions in your search app.

preact/serp

The preact/serp package provides tools to create Search Engine Results Pages (SERPs) with features like pagination, sorting, and displaying results.

preact/legacy

The preact/legacy package is designed to provide backward compatibility for existing Search Template implementations.

The components included in this package are intended solely for compatibility purposes. They are not recommended for use in new development or as active components in modern applications.

thumbnails

The thumbnails package helps you resize thumbnails. It supports different formats, including Shopify and Nosto-specific ones.


utils

The utils package includes handy tools for common tasks like array or object merging, checking equality, and generating unique values.

Development

Setup

To set up the development environment:

# Install dependencies
npm ci

# Install dev app dependencies
cd dev/preact && npm ci && cd ../..

Building

# Build all packages
npm run build

This compiles TypeScript, bundles with Vite, and generates documentation in the docs/ directory.

Testing

# Run all tests with coverage
npm test

# Run tests in watch mode
npm run test:watch

Linting

# Check code style
npm run lint

# Auto-fix linting issues
npm run lint-fix

Development Server

# Start development environment (library watch + dev app)
npm run dev

The development app runs at http://localhost:8000/ and provides a testing environment for the library components.