webctx
v0.1.1
Published
Pure Go web search and browsing CLI using Brave, Tavily, Exa, and Firecrawl
Downloads
218
Maintainers
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 themread-link: returns clean markdown for a single URL using a GitHub raw-content path, a.mdfast path, and Firecrawl scraping fallbackmap-site: returns a sitemap-style list of URLs and metadata from Firecrawl
Install
Global npm install:
npm i -g webctx
webctx --helpBuild from source:
git clone https://github.com/amxv/webctx.git
cd webctx
make build
./dist/webctx --helpCommands
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.comEnvironment variables
The CLI loads .env.local when present and reads provider credentials from the environment.
Quick start:
cp .env.local.example .env.localRequired by command:
searchBRAVE_API_KEYTAVILY_API_KEYEXA_API_KEY
read-linkFIRECRAWL_API_KEYfor non-GitHub / non-.mdURLs
map-siteFIRECRAWL_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:
- runs Go and Node quality checks
- builds cross-platform binaries
- creates a GitHub Release with those assets
- publishes the npm package using the tag version
Project layout
cmd/webctx/main.go: CLI entrypointinternal/app/: CLI parsing, search, ranking, scrape, and Firecrawl queue logicinternal/buildinfo/: build-time version plumbing for--versionbin/webctx.js: npm shim that invokes the packaged native binaryscripts/postinstall.js: downloads the release binary on install and falls back to localgo build.github/workflows/release.yml: tag-driven release pipelineAGENTS.md: guidance for coding agentsCONTRIBUTORS.md: maintainer/release notes
See AGENTS.md and CONTRIBUTORS.md for repo-specific implementation and maintenance details.
