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

lighthouse-private-markets-sdk

v1.1.5

Published

Lighthouse SDK for accessing Lighthouse API

Downloads

31

Readme

Lighthouse JS SDK

Lighthouse is an AI-powered platform that automates the entire venture capital deal flow cycle—from sourcing to due diligence. Our platform empowers investors with real-time insights and seamless workflows, helping VCs identify and evaluate high-potential startups more efficiently. Visit us at https://trylighthouse.vc to learn more.

Installation

Using npm:

npm i lighthouse-private-markets-sdk

Using yarn:

yarn add lighthouse-private-markets-sdk

Quick Start

JavaScript (CommonJS)

const { Lighthouse } = require('lighthouse-private-markets-sdk');

// Initialize the client
const lighthouse = new Lighthouse('your-api-key');

// Simple query example
async function getStartups() {
    try {
        const { data, error } = await lighthouse
            .from('startups')
            .select('*')
            .limit(10);
        
        if (error) throw error;
        console.log('Startups:', data);
    } catch (err) {
        console.error('Error:', err.message);
    }
}

JavaScript (ES Modules)

import { Lighthouse } from 'lighthouse-private-markets-sdk';

// Initialize the client
const lighthouse = new Lighthouse('your-api-key');

// Using async/await with try/catch
async function getStartup() {
    try {
        const { data, error } = await lighthouse
            .from('startups')
            .select('name, valuation, founded_date')
            .eq('id', 123)
            .single();
        
        if (error) throw error;
        console.log('Startup:', data);
    } catch (err) {
        console.error('Error:', err.message);
    }
}

Common Query Examples

Select Single Record

// Get a specific startup
const { data, error } = await lighthouse
    .from('startups')
    .select('*')
    .eq('id', 123)
    .single();

Filter Records

// Get all startups valued over $1M
const { data, error } = await lighthouse
    .from('startups')
    .select('name, valuation')
    .gte('valuation', 1000000)
    .order('valuation', { ascending: false });

Select with Relationships

// Get startups with their founders
const { data, error } = await lighthouse
    .from('startups')
    .select('name, founders (name, role)');

Pagination

// Get 10 records with offset
const { data, error } = await lighthouse
    .from('startups')
    .select('*')
    .range(0, 9);

Full Text Search

// Search startups by name
const { data, error } = await lighthouse
    .from('startups')
    .select('*')
    .textSearch('name', 'tech');

Available Methods

Basic Filters

  • select(*columns: str): Choose specific fields to return
  • single(): Request a single record
  • eq(column: str, value: Any): Equal to filter
  • neq(column: str, value: Any): Not equal to filter
  • gt(column: str, value: Any): Greater than filter
  • lt(column: str, value: Any): Less than filter
  • gte(column: str, value: Any): Greater than or equal to filter
  • lte(column: str, value: Any): Less than or equal to filter
  • is(column: str, value: Any): 'IS' filter
  • in(column: str, values: Array<Any>): 'IN' filter for array of values

Text Search

  • like(column: str, pattern: str): Pattern matching (case sensitive)
  • ilike(column: str, pattern: str): Pattern matching (case insensitive)
  • textSearch(column: str, query: str): Full text search

Array/JSON Operations

  • contains(column: str, value: Array<Any> | string | Object): Check if array/json contains value
  • containedBy(column: str, value: Array<Any> | string | Object): Check if contained by value
  • overlaps(column: str, values: Array<Any>): Overlaps with values

Result Modification

  • order(column: str, options: { ascending: boolean }): Sort results
  • limit(size: number): Limit number of rows
  • range(start: number, end: number): Get a range of rows
  • offset(size: number): Set the starting row index

Logical Operations

  • not(): Negate the next filter
  • or(filters: string): OR condition
  • match(query: Object): Match multiple columns
  • filter(column: str, operator: str, value: Any): Apply a custom filter

Output Format

  • csv(): Return results as CSV
  • explain(): Get query explanation

Error Handling

const { data, error } = await lighthouse
    .from('startups')
    .select('*');

if (error) {
    console.error('Error:', error);
}

// Process your data
console.log(data);