🎩 You're Invited:Meet the Socket team at Black Hat in Las Vegas, August 3-6.RSVP
Sign In

@tsproxy/js

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@tsproxy/js

InstantSearch-compatible searchClient adapter for tsproxy

latest
Source
npmnpm
Version
0.2.0
Version published
Maintainers
1
Created
Source

@tsproxy/js

InstantSearch-compatible searchClient adapter for tsproxy.

This project is in early release — APIs are stabilizing.

Install

npm install @tsproxy/js

Usage

import { createSearchClient } from "@tsproxy/js";

const searchClient = createSearchClient({
  url: "http://localhost:3000",
  locale: "en",  // optional
  cache: true,   // optional (default: true)
});

With react-instantsearch

import { InstantSearch } from "react-instantsearch";
import { createSearchClient } from "@tsproxy/js";

const searchClient = createSearchClient({ url: "http://localhost:3000" });

<InstantSearch searchClient={searchClient} indexName="products">
  {/* widgets */}
</InstantSearch>

Standalone

const results = await searchClient.search([
  { indexName: "products", params: { query: "keyboard", hitsPerPage: 10 } },
]);

API

createSearchClient(options)

OptionTypeDefaultDescription
urlstringProxy server URL (required)
localestringLocale for multilingual search
cachebooleantrueEnable client-side result caching

Documentation

tsproxy.akshit.io

License

MIT

Keywords

typesense

FAQs

Package last updated on 15 Apr 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts