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

webctx

v0.1.1

Published

Pure Go web search and browsing CLI using Brave, Tavily, Exa, and Firecrawl

Downloads

218

Readme

webctx

webctx is a pure Go CLI for agent-friendly web search and page extraction.

What it does

  • search: combines Brave, Tavily, and Exa search results, deduplicates them, and re-ranks them
  • read-link: returns clean markdown for a single URL using a GitHub raw-content path, a .md fast path, and Firecrawl scraping fallback
  • map-site: returns a sitemap-style list of URLs and metadata from Firecrawl

Install

Global npm install:

npm i -g webctx
webctx --help

Build from source:

git clone https://github.com/amxv/webctx.git
cd webctx
make build
./dist/webctx --help

Commands

webctx --help
webctx --version
webctx search <query> [--exclude domain1,domain2] [--keyword phrase]
webctx read-link <url>
webctx map-site <url>

Examples:

webctx search "next.js server components"
webctx search "react hooks" --exclude youtube.com,vimeo.com
webctx search "drizzle orm" --keyword "migration guide"
webctx read-link https://docs.example.com/guide
webctx map-site https://example.com

Environment variables

The CLI loads .env.local when present and reads provider credentials from the environment.

Quick start:

cp .env.local.example .env.local

Required by command:

  • search
    • BRAVE_API_KEY
    • TAVILY_API_KEY
    • EXA_API_KEY
  • read-link
    • FIRECRAWL_API_KEY for non-GitHub / non-.md URLs
  • map-site
    • FIRECRAWL_API_KEY

Release and distribution

This repo publishes in two ways:

  • GitHub Releases for native binaries
  • npm for npm i -g webctx

The release workflow triggers on v* tags and does the following:

  1. runs Go and Node quality checks
  2. builds cross-platform binaries
  3. creates a GitHub Release with those assets
  4. publishes the npm package using the tag version

Project layout

  • cmd/webctx/main.go: CLI entrypoint
  • internal/app/: CLI parsing, search, ranking, scrape, and Firecrawl queue logic
  • internal/buildinfo/: build-time version plumbing for --version
  • bin/webctx.js: npm shim that invokes the packaged native binary
  • scripts/postinstall.js: downloads the release binary on install and falls back to local go build
  • .github/workflows/release.yml: tag-driven release pipeline
  • AGENTS.md: guidance for coding agents
  • CONTRIBUTORS.md: maintainer/release notes

See AGENTS.md and CONTRIBUTORS.md for repo-specific implementation and maintenance details.