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

@searcly/widget

v1.0.3

Published

Searcly Visual Search Widget for React

Readme

Searcly Widget

A React widget for integrating Searcly's visual search capabilities into your web applications. This widget provides a beautiful, customizable interface for users to search products by image.

Installation

npm install @searcly/widget @searcly/sdk
# or
yarn add @searcly/widget @searcly/sdk

Quick Start

import { SearclyWidget } from '@searcly/widget';

function App() {
  return (
    <SearclyWidget
      apiKey="your_api_key_here"
      theme={{
        primaryColor: '#2af28d',
        textColor: '#000000',
        backgroundColor: '#FFFFFF',
        fontFamily: 'Inter, sans-serif'
      }}
      options={{
        showFilters: true,
        layout: 'grid',
        limit: 20
      }}
      onSearch={results => console.log('Search results:', results)}
      onError={error => console.error('Search error:', error)}
    />
  );
}

Features

  • Drag and drop image upload
  • Customizable theme
  • Grid and list view layouts
  • Responsive design
  • Loading states and error handling
  • TypeScript support

Props

Required Props

| Prop | Type | Description | |------|------|-------------| | apiKey | string | Your Searcly API key |

Optional Props

Theme Options

interface Theme {
  primaryColor?: string;    // Default: '#2af28d'
  textColor?: string;       // Default: '#000000'
  backgroundColor?: string; // Default: '#FFFFFF'
  fontFamily?: string;      // Default: 'Inter, sans-serif'
}

Widget Options

interface Options {
  showFilters?: boolean;           // Default: false
  layout?: 'grid' | 'list';        // Default: 'grid'
  limit?: number;                  // Default: 20
}

Event Handlers

onSearch?: (results: any[]) => void;  // Called when search is successful
onError?: (error: Error) => void;     // Called when an error occurs

Customization Examples

Custom Theme

<SearclyWidget
  apiKey="your_api_key"
  theme={{
    primaryColor: '#FF5733',
    textColor: '#333333',
    backgroundColor: '#F5F5F5',
    fontFamily: 'Roboto, sans-serif'
  }}
/>

List Layout with Filters

<SearclyWidget
  apiKey="your_api_key"
  options={{
    showFilters: true,
    layout: 'list',
    limit: 30
  }}
/>

Development

To contribute to the widget:

  1. Clone the repository
  2. Install dependencies: npm install
  3. Make your changes
  4. Build: npm run build
  5. Submit a pull request

License

MIT License - see LICENSE file for details.

Support

For support, email [email protected] or visit our documentation.