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

@todoforai/linkedin-api

v1.0.0

Published

LinkedIn Voyager API CLI — raw wrapper for LinkedIn's internal Voyager API via cookie auth.

Readme

linkedin-api

LinkedIn Voyager API CLI — raw wrapper for LinkedIn's internal Voyager API via cookie auth.

Status

Working commands:

  • auth — save/show credentials
  • whoami — current authenticated user
  • profile — fetch profile by public ID or URL
  • messages — list conversations
  • message-read — read one conversation by URN, thread ID, profile ID, or URL
  • message-send — send a DM to a person

TODO:

  • search-people, connections, connect
  • feed, post, comment, react
  • invitations, invitation-reply, company, school

Auth

Cookie-based auth. Credentials stored in ~/.config/linkedin-api/credentials.json.

# Extract cookies from browser DevTools → Application → Cookies → linkedin.com
linkedin-api auth <li_at> <jsessionid>
linkedin-api whoami

Reference Projects

Projects we draw from when building this CLI:

Core — Voyager API knowledge

| Project | Lang | ⭐ | What we take | |---------|------|----|-------------| | nsandman/linkedin-api | Python | 143 | Primary Voyager API reference. Endpoints for profiles, search, messaging (send_message), connections (add_connection), invitations. Fork of original tomquirk/linkedin-api. 7 years of endpoint mapping. | | frizynn/linkedin-cli | Python | 28 | CLI UX + read/write patterns. Feed, profile, search, post, react, comment, save. Cookie auth + browser extraction. JSON output. No messaging. | | ggfevans/endorse | Go | 12 | Messaging implementation. Real-time messaging TUI via SSE. Read+write DMs. Uses mautrix-linkedin bridge approach. |

Secondary — additional patterns

| Project | Lang | ⭐ | What we take | |---------|------|----|-------------| | Linked-API/linkedin-cli | TS | 8 | Command structure reference (person fetch, message send, connection invite). SaaS-dependent — won't use their infra. | | peggyrayzis/li | TS | 4 | Bird-inspired CLI design. Cookie extraction via @steipete/sweet-cookie. Connections, search, messages read. | | adunne09/suit | TS | 1 | Minimal Voyager CLI — feed, search, profile, messages. Clean TypeScript patterns. | | trieb-work/linkedin-voyager-sdk | TS | 17 | TypeScript Voyager SDK — profile/company scraping with cookie auth. | | swiftlysingh/lnk | Go | 2 | Go Voyager CLI — post, read, search, messaging. |

Key Voyager API details

  • Base: https://www.linkedin.com/voyager/api
  • Auth: li_at cookie + JSESSIONID cookie (used as csrf-token header)
  • Endpoints: REST-style, returns JSON with LinkedIn-specific URN identifiers
  • Rate limiting: LinkedIn throttles aggressively — need delays between requests

Dev

cd linkedin-api && bun install && bun link
linkedin-api --help