
Security News
npm Adopts OIDC for Trusted Publishing in CI/CD Workflows
npm now supports Trusted Publishing with OIDC, enabling secure package publishing directly from CI/CD workflows without relying on long-lived tokens.
Fetch an entire site and save it as a text file (to be used with AI models).
One-off usage (choose one of the followings):
bunx sitefetch
npx sitefetch
pnpx sitefetch
Install globally (choose one of the followings):
bun i -g sitefetch
npm i -g sitefetch
pnpm i -g sitefetch
sitefetch https://egoist.dev -o site.txt
# or better concurrency
sitefetch https://egoist.dev -o site.txt --concurrency 10
Use the -m, --match
flag to specify the pages you want to fetch:
sitefetch https://vite.dev -m "/blog/**" -m "/guide/**"
The match pattern is tested against the pathname of target pages, powered by micromatch, you can check out all the supported matching features.
We use mozilla/readability to extract readable content from the web page, but on some pages it might return irrelevant contents, in this case you can specify a CSS selector so we know where to find the readable content:
sitefetch https://vite.dev --content-selector ".content"
If you like this, please check out my LLM chat app: https://chatwise.app
import { fetchSite } from "sitefetch"
await fetchSite("https://egoist.dev", {
//...options
})
Check out options in types.ts.
MIT.
FAQs
Fetch an entire site and save it as a text file
The npm package sitefetch receives a total of 579 weekly downloads. As such, sitefetch popularity was classified as not popular.
We found that sitefetch demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
npm now supports Trusted Publishing with OIDC, enabling secure package publishing directly from CI/CD workflows without relying on long-lived tokens.
Research
/Security News
A RubyGems malware campaign used 60 malicious packages posing as automation tools to steal credentials from social media and marketing tool users.
Security News
The CNA Scorecard ranks CVE issuers by data completeness, revealing major gaps in patch info and software identifiers across thousands of vulnerabilities.