npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

nexract

v2.0.0

Published

Nexract — Web Intelligence API SDK. Extract, analyze, and monitor any webpage. Built-in OpenAI, Claude, and LangChain integrations.

Readme

Nexract — Web Intelligence API SDK

Extract, analyze, and monitor any webpage with one API call.

npm version

Features

  • Extract clean markdown from any public URL
  • AI Analysis — summary, sentiment, entities, categories (powered by Claude)
  • Batch Extract — up to 10 URLs in one request
  • Schema Extraction — custom JSON schema for structured data
  • OpenAI Tool — built-in function calling definition
  • Claude Tool — built-in Anthropic tool definition
  • Content Filtering — max_words, no_links, first_paragraphs
  • Retry Logic — automatic exponential backoff for 429/503
  • TypeScript — full type definitions included
  • Arabic Intelligence — dialect detection, bilingual analysis

Install

npm install nexract

Quick Start

const { Nexract } = require('nexract');

const nx = new Nexract('SK-LAB-YOUR-KEY');

// Basic extraction (1 credit)
const result = await nx.extract('https://example.com/article');
console.log(result.data);       // Clean markdown
console.log(result.title);      // Article title
console.log(result.wordCount);  // Word count

// With AI analysis (+2 credits)
const ai = await nx.extract('https://bbc.com/article', { ai: true });
console.log(ai.summary);        // AI-generated summary
console.log(ai.sentiment);      // positive/negative/neutral

// Batch extract (up to 10 URLs)
const batch = await nx.batchExtract([
  'https://site1.com', 'https://site2.com', 'https://site3.com'
]);
console.log(`${batch.successful} succeeded, ${batch.failed} failed`);

// Check balance
const bal = await nx.balance();
console.log(`Credits: ${bal.balance}`);

OpenAI Integration

const OpenAI = require('openai');
const { Nexract } = require('nexract');

const nx = new Nexract('SK-LAB-YOUR-KEY');
const openai = new OpenAI();

const response = await openai.chat.completions.create({
  model: 'gpt-4o',
  messages: [{ role: 'user', content: 'Summarize https://example.com' }],
  tools: [nx.openaiTool()],  // One line!
});

for (const call of response.choices[0].message.tool_calls || []) {
  const content = await nx.handleToolCall(JSON.parse(call.function.arguments));
  console.log(content);
}

Claude Integration

const Anthropic = require('@anthropic-ai/sdk');
const { Nexract } = require('nexract');

const nx = new Nexract('SK-LAB-YOUR-KEY');
const claude = new Anthropic();

const response = await claude.messages.create({
  model: 'claude-sonnet-4-20250514',
  max_tokens: 1024,
  tools: [nx.claudeTool()],  // One line!
  messages: [{ role: 'user', content: 'Extract https://example.com' }],
});

for (const block of response.content) {
  if (block.type === 'tool_use') {
    const content = await nx.handleToolCall(block.input);
    console.log(content);
  }
}

API Reference

| Method | Description | |--------|-------------| | nx.extract(url, options?) | Extract a webpage (1 credit) | | nx.batchExtract(urls, options?) | Extract multiple URLs (1 credit each) | | nx.balance() | Check credit balance | | nx.openaiTool() | OpenAI function calling definition | | nx.claudeTool() | Anthropic Claude tool definition | | nx.handleToolCall(args) | Handle AI tool call → returns content string |

Options

nx.extract(url, {
  format: 'markdown',    // 'markdown' | 'html' | 'text'
  ai: false,             // Enable AI analysis (+2 credits)
  schema: null,          // Custom extraction schema (+2 credits)
  language: 'auto',      // 'auto' | 'ar' | 'en' | etc.
  selector: 'auto',      // CSS selector for targeted extraction
});

Links

License

MIT