open-web-unlocker
v0.1.5
Published
Fetch public web pages through a configurable fetch/browser pipeline and parse them into structured JSON or clean markdown.
Readme
Open Web Unlocker
Fetch web pages and search results and return either raw HTML, clean markdown, or structured JSON.
CLI
bunx open-web-unlocker fetch "https://example.com"--format markdown is the default.
bunx open-web-unlocker fetch "https://example.com/article" --format jsonbunx open-web-unlocker fetch "https://example.com/article" --format htmlbunx open-web-unlocker fetch "https://example.com/app" --timeout 45000Bun and bunx are the preferred path. The published CLI is also compatible with Node and npx.
MCP Server
bunx open-web-unlocker --mcpAdd it to Claude Code:
claude mcp add open-web-unlocker -- bunx open-web-unlocker --mcpExample MCP client config:
{
"mcpServers": {
"open-web-unlocker": {
"command": "bunx",
"args": ["open-web-unlocker", "--mcp"]
}
}
}Claude Code Skill
Install the skill to let Claude Code fetch and parse web pages:
bunx skills add https://github.com/LiranYoffe/open-web-unlocker --skill open-web-unlockerHTTP Server
bunx open-web-unlocker --http --port 3000Health check:
curl http://localhost:3000/healthzPOST /fetch
Request body:
{
"url": "https://example.com",
"format": "markdown",
"timeout_ms": 15000
}Example:
curl -X POST http://localhost:3000/fetch \
-H "content-type: application/json" \
-d '{
"url": "https://example.com",
"format": "markdown"
}'Supported format values:
htmlmarkdownjson
Install
bunx open-web-unlocker --helpbun add -g open-web-unlockerRequirements
- Bun
>= 1.3.0is the preferred runtime - Node
>= 20is also supported for the published CLI - Development in this repo should use Bun
Development
bun installbun run typecheckbun run buildbun run pack:dry-runProject Layout
src/site-config/: domain aliases, defaults, and path rulessrc/config.ts: config validation and policy resolutionsrc/unlock.ts: unlock orchestration acrossfetchandbrowsersrc/parsers/: site-specific and generic parsersscripts/: validation and parser-development tooling
CI/CD
This repo includes:
CI- install
- typecheck
- build
- Node CLI smoke test
- npm pack dry-run
Publish to npm- GitHub Actions trusted publishing with
id-token: write npm publish --provenance --access public- tag-driven release flow via
v*tags
- GitHub Actions trusted publishing with
To use trusted publishing on npm, configure this GitHub repository as a trusted publisher for the package in npm settings.
