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

@lyyyuna/milvus-lite

v2.5.102

Published

Node.js wrapper for milvus-lite - embedded vector database

Downloads

46

Readme

milvus-lite (Node.js)

Node.js/TypeScript wrapper for milvus-lite — an embedded vector database.

The pre-built milvus binary is bundled in platform-specific npm packages. npm install automatically picks the right one for your platform — no runtime downloads needed.

Install

npm install @lyyyuna/milvus-lite @zilliz/milvus2-sdk-node

Usage

import { start } from "@lyyyuna/milvus-lite";
import { MilvusClient, DataType } from "@zilliz/milvus2-sdk-node";

const server = await start("./milvus.db");

const client = new MilvusClient({ address: server.addr });

await client.createCollection({
  collection_name: "demo",
  fields: [
    { name: "id", data_type: DataType.Int64, is_primary_key: true, autoID: true },
    { name: "vector", data_type: DataType.FloatVector, dim: 128 },
  ],
});

await server.stop();

How it works

@lyyyuna/milvus-lite                     ← main package (pure JS)
├── optionalDependencies:
│   ├── @lyyyuna/milvus-lite-darwin-arm64    ← macOS Apple Silicon binary
│   ├── @lyyyuna/milvus-lite-darwin-x64      ← macOS Intel binary
│   ├── @lyyyuna/milvus-lite-linux-x64       ← Linux amd64 binary
│   └── @lyyyuna/milvus-lite-linux-arm64     ← Linux arm64 binary

npm automatically installs only the package matching your platform. At runtime, start() requires the platform package to get the binary path, then spawns it as a subprocess.

API

start(dbFile, options?)

Starts a milvus-lite server.

  • dbFile — Path to the local database file (e.g., "./milvus.db")
  • options.address — gRPC address (default: random port on localhost)
  • options.logLevel"INFO" or "ERROR" (default: "ERROR")

Returns { addr: string, stop: () => Promise<void> }

Supported platforms

| OS | Arch | npm package | |----|------|-------------| | macOS | arm64 (Apple Silicon) | @lyyyuna/milvus-lite-darwin-arm64 | | macOS | amd64 (Intel) | @lyyyuna/milvus-lite-darwin-x64 | | Linux | amd64 | @lyyyuna/milvus-lite-linux-x64 | | Linux | arm64 | @lyyyuna/milvus-lite-linux-arm64 |

API compatibility

All milvus-lite supported APIs work with the official Node.js SDK:

  • Collection: Create, Drop, Has, List, GetStatistics
  • Index: Create (FLAT, IVF_FLAT), Describe, Drop
  • Data: Insert, Upsert, Delete
  • Search: Search (with filters), Query
  • Load: Load, Release, GetLoadState

Known issues

describeCollection may throw — The Node.js SDK v2.6+ reformats the response in a way that's incompatible with milvus-lite's minimal response. Use listCollections for collection discovery.

Unsupported features (same as milvus-lite limitations):

  • Partitions
  • RBAC (users/roles)
  • Aliases

License

Apache 2.0