In short.
brave-search helps AI assistants and developers find web sources and read page text, but search requires API access and page extraction cannot replace interactive browsing. Its Node.js scripts request up to 20 results, support country and freshness options, and optionally retrieve page content. Search-mode extraction is capped at 5,000 characters per result; the separate URL extractor has no equivalent output cap. Nothing was executed, so installation, retrieval quality and runtime reliability are untested, while current API costs are unknown.
Researched and written by an AI model and checked by a second AI model. How it works
Covers the complete selected brave-search folder: .gitignore, SKILL.md, content.js, search.js, package.json and package-lock.json, together with the repository-root LICENSE at revision 90bb51cae36515a648515b633a81c0c6efc8c74d. Other repository folders, assistant host implementations, installed dependency source, live provider terms and fetched webpages are outside this scope. The lockfile supplies dependency metadata rather than dependency implementation evidence. No commands, installations, API requests or extraction runs were executed.
The overview
Identity
brave-search is a skill folder in badlogic/pi-skills containing SKILL.md, two JavaScript commands and npm dependency files. package.json names Mario Zechner as the author and declares package version 1.0.0. The supplied implementation performs search and extraction; it does not generate answers.
The original folder at the captured revision is available at [https://github.com/badlogic/pi-skills/tree/90bb51cae36515a648515b633a81c0c6efc8c74d/brave-search]. It uses the Brave Search API, but the evidence does not establish official Brave authorship or endorsement.
Practical fit
The implementation suits documentation lookup, fact finding and collecting readable text from ordinary HTML pages. Search and page reading are separate commands, so a known URL can be read without making a Brave search request.
Its usefulness depends on whether labeled text output and article-focused extraction fit the surrounding assistant or developer tooling. No measured search accuracy, extraction fidelity, speed or host compatibility is established.
Who it suits
Beginners need enough terminal familiarity to install dependencies, set an environment variable and invoke a script. Developers can incorporate the commands into an assistant or other local tooling.
Results are printed with labels such as Title, Link and Snippet rather than returned as JSON. Automated consumers need to parse that text or adapt the scripts. Assistant-specific registration instructions and a compatibility matrix are not supplied.
Capabilities
search.js requests five results by default and caps the API count at 20. Its country option defaults to US and uppercases supplied values. Freshness options documented in SKILL.md include past day, week, month, year and custom date ranges. Each result includes a title, URL, snippet and an age field when available.
Adding --content attempts to retrieve each result page. content.js separately accepts one URL and extracts readable content as Markdown, including a page title when available. That standalone command does not require BRAVE_API_KEY.
Using it
Requirements
The commands need Node.js, installed npm dependencies and network access. Search additionally requires a Brave Search API account and BRAVE_API_KEY in the script's environment; standalone page extraction does not.
The lockfile records Readability 0.6.0, jsdom 27.0.1, Turndown 7.2.2 and turndown-plugin-gfm 1.0.2. jsdom declares Node.js >=20, while the locked lru-cache dependency declares Node.js 20 or >=22. The top-level package supplies no engine constraint, and runtime compatibility was not tested.
How it works
search.js sends the query, count, country and optional freshness value to [https://api.search.brave.com/res/v1/web/search], authenticating through the X-Subscription-Token header. Queries go to Brave; optional content requests go directly to result websites. The shown code sends the API key only to the Brave endpoint.
Page extraction parses fetched HTML with jsdom, identifies article content with Mozilla Readability and converts it with Turndown and its GitHub-flavored Markdown plugin. If article extraction fails, both commands remove common navigation elements and try main-content selectors or the page body. Search-mode fallback produces plain text; standalone fallback converts HTML to Markdown.
Setup
Obtain the complete brave-search folder, then run npm install inside it as documented. For search, create a Brave Search API key and set BRAVE_API_KEY in the environment used by the command or assistant. SKILL.md describes adding that variable to a shell profile.
The documented command paths use {baseDir} as a placeholder for the local skill directory. How a particular assistant discovers this folder, invokes its scripts or inherits shell variables is not established by the supplied files.
Example use
After setup, an illustrative invocation from the skill folder is: node search.js "rust programming" -n 3 --content --freshness pw --country DE
This requests up to three results using the Germany country option and past-week filter, then attempts to extract their page content. Output is intended to contain labeled result metadata and extracted text or a page-fetch error message. This example was not executed, and no returned results are established.
Assessment & evidence
Limitations
Search-mode page extraction truncates each successful result to 5,000 JavaScript string characters. Standalone extraction has no equivalent output cap. Both operate on fetched HTML and provide no browser interaction, login workflow or JavaScript-rendering step. Article extraction should not be assumed to preserve a complete page.
Search-mode page fetches run sequentially with a 10-second timeout each; standalone extraction uses 15 seconds. The Brave API request has no explicit timeout or retry logic. Numeric, country and freshness inputs receive limited validation.
A failed search API request exits with an error. Individual page failures during --content instead appear inside the result text and do not stop the remaining page attempts. Consumers cannot treat successful command completion as proof that every page was retrieved.
Tradeoffs
The main practical benefit is combining source discovery and readable text retrieval through small local commands. Separating content.js from search.js also allows known-page retrieval without a search subscription.
The 5,000-character search-mode limit bounds the amount of text returned to an assistant, but it can omit relevant material later in a long document. Standalone extraction removes that particular limit, while still applying article and main-content extraction. The evidence supports these implementation tradeoffs, not claims of superior accuracy, speed or price.
Alternatives
For a known URL, the included content.js avoids the search step. Developers needing structured search data could work directly with the Brave API JSON response that search.js already consumes, while taking responsibility for authentication and error handling.
Browser tooling is a different approach when a task requires clicks, sessions or rendered page behavior. No alternative browser product, search provider or extraction library was assessed, so comparative quality and cost remain unknown.
Evidence and confidence
The supplied source includes SKILL.md, search.js, content.js, package.json, package-lock.json and .gitignore, plus the repository-root LICENSE. These establish the documented interface, implementation and declared dependencies. .gitignore excludes node_modules; installed dependency implementations are not included.
Nothing was executed. No installation results, live search responses, extraction samples or benchmarks are supplied. Installation success, real API compatibility, retrieval quality, extraction fidelity and operational reliability remain unassessed.
Access & freshness
Costs
SKILL.md describes a free subscription named Free AI, says a credit card is required and states that users will not be charged. Those are repository documentation claims; current plan availability, billing conditions, quotas, rate limits and paid prices are unknown.
The search path makes one Brave API request before optional page fetches. content.js makes no Brave API request. Neither script estimates costs or enforces a spending limit, and actual usage cost is unknown.
Rights and licensing
The repository LICENSE grants MIT permissions, including modification, redistribution and commercial use, subject to preserving the copyright and permission notice in copies or substantial portions. It identifies copyright 2024 Mario Zechner and disclaims warranties. package.json also declares MIT.
Dependencies have separate licenses recorded in the lockfile, including Apache-2.0, BSD variants, MIT-0, BlueOak-1.0.0 and CC0-1.0. Their individual obligations were not assessed. The software license does not establish reuse rights for search results or fetched webpages; provider terms and page-specific permissions are not supplied.
Source freshness
The supplied snapshot was captured on 2026-11-15 at 18:13:56.685 UTC and is pinned to revision 90bb51cae36515a648515b633a81c0c6efc8c74d. package.json declares version 1.0.0; that value does not establish a latest published release.
Changes after this revision, current Brave subscription terms and current API compatibility are unknown. The lockfile describes captured dependency resolutions, not current dependency releases or assessed security status.
Before adoption
Confirm current Brave account and billing requirements, choose a Node.js runtime compatible with the locked dependencies and obtain the complete original folder. Check that the intended assistant can invoke the scripts and receive BRAVE_API_KEY.
Start with a small result count and inspect source pages for material omitted by extraction or truncation. For automation, handle inline page errors as well as process exit codes. If an agent supplies URLs, apply appropriate URL restrictions in its integration and treat returned page text as untrusted material; these scripts implement neither URL allowlists nor filtering of embedded instructions.
