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

@tsproxy/api

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/api

HonoJS proxy server for Typesense with caching, rate limiting, and ingestion queue

latest
Source
npmnpm
Version
0.2.0
Version published
Weekly downloads
0
-100%
Maintainers
1
Weekly downloads
 
Created
Source

@tsproxy/api

HonoJS proxy server for Typesense with caching, rate limiting, and a BullMQ ingestion queue.

This project is in early release — APIs are stabilizing.

Install

npm install @tsproxy/api

Usage

Create a tsproxy.config.ts:

import { defineConfig } from "@tsproxy/api";

export default defineConfig({
  typesense: {
    host: "localhost",
    port: 8108,
    apiKey: "your-api-key",
  },
  server: { port: 3000, apiKey: "your-ingest-secret" },
  cache: { ttl: 60, maxSize: 1000 },
  queue: { concurrency: 5, maxSize: 10000 },
  rateLimit: { search: 100, ingest: 30 },
  collections: {
    products: {
      fields: {
        name: { type: "string", searchable: true },
        price: { type: "float", sortable: true },
        category: { type: "string", facet: true },
      },
    },
  },
});

Endpoints

MethodPathAuthDescription
POST/api/searchNoInstantSearch-compatible multi-search
GET/api/healthNoHealth check (Typesense + Redis)
POST/api/ingest/:collection/documentsYesUpsert document
POST/api/ingest/:collection/documents/importYesBulk import
PATCH/api/ingest/:collection/documents/:idYesPartial update
DELETE/api/ingest/:collection/documents/:idYesDelete document
GET/api/ingest/queue/statusYesQueue stats

Features

  • LRU cache with configurable TTL (error-aware — never caches failures)
  • Per-IP rate limiting
  • BullMQ queue (Redis) with in-memory fallback
  • Computed fields during ingestion
  • Multilingual collection routing
  • Config file with defineConfig

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