
Company News
AWS Security Hub Adds Socket for Supply Chain Security
Socket is now in the AWS Security Hub Extended plan. Adopt it through AWS, apply committed spend, and block malicious open source packages.
@metalift/sdk
Advanced tools
Official TypeScript/JavaScript SDK for Metalift — turn any URL into agent-ready markdown, HTML, or structured data.
import, not require()npm install @metalift/sdk
import Metalift from "@metalift/sdk";
const client = new Metalift({ apiKey: "YOUR_API_KEY" });
const result = await client.scrape({
url: "https://example.com",
formats: ["markdown"],
});
console.log(result.data.markdown);
Get an API key from the Metalift dashboard.
Search returns top 10 SERP snippets (2 credits). Scrape URLs separately when you need full content (1+ credits each):
const serp = await client.search({ query: "docker docs" });
for (const hit of serp.results) {
console.log(hit.title, hit.url);
}
const page = await client.scrape({
url: serp.results[0].url,
formats: ["markdown"],
});
console.log(page.data.markdown);
import Metalift from "@metalift/sdk";
const client = new Metalift({
apiUrl: "https://api.metalift.ai", // default
apiKey: process.env.METALIFT_API_KEY,
});
| Variable | Description |
|---|---|
METALIFT_API_URL | API base URL (default: https://api.metalift.ai) |
METALIFT_API_KEY | Bearer token for authenticated requests |
Metalift Cloud requires X-B2B-Attestation: I-confirm-B2B-use on authenticated requests. @metalift/sdk ≥ 1.0.11 sends this header automatically.
This package is ESM-only. In CommonJS projects, use dynamic import:
const { default: Metalift } = await import("@metalift/sdk");
Or add "type": "module" to your package.json, or use .mjs entry files.
FAQs
Metalift TypeScript SDK
We found that @metalift/sdk demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer 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.

Company News
Socket is now in the AWS Security Hub Extended plan. Adopt it through AWS, apply committed spend, and block malicious open source packages.

Research
/Security News
Popular npm packages keyv and cacheable compromised.

Security News
A misconfiguration gave three Anthropic models internet access, and one, believing it was in a simulation, shipped a credential-stealing package to PyPI.