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 🙏

© 2025 – Pkg Stats / Ryan Hefner

@intuned/browser

v0.1.7

Published

runner package for intuned functions

Readme

Intuned Browser SDK (TypeScript)

Intuned's TypeScript/JavaScript SDK for browser automation and web data extraction, designed to work seamlessly with the Intuned platform.

Installation

Using Yarn (Recommended)

yarn add @intuned/browser

Using npm

npm install @intuned/browser

Features

The Intuned Browser SDK provides a comprehensive set of tools for browser automation and data extraction:

🤖 AI-Powered Extraction

  • Structured Data Extraction - Extract structured data from web pages using AI with extractStructuredData()
  • Smart Page Loading Detection - Determine when pages have fully loaded with isPageLoaded()
  • Schema Validation - Validate extracted data against JSON schemas

🌐 Web Automation Helpers

  • Navigation - Advanced URL navigation with goToUrl()
  • Content Loading - Scroll to load dynamic content with scrollToLoadContent()
  • Network Monitoring - Wait for network activity with withNetworkSettledWait()
  • DOM Monitoring - Wait for DOM changes with waitForDomSettled()
  • Click Automation - Click elements until exhausted with clickUntilExhausted()

📄 Content Processing

  • HTML Sanitization - Clean and sanitize HTML with sanitizeHtml()
  • Markdown Extraction - Convert HTML to markdown with extractMarkdown()
  • URL Resolution - Resolve relative URLs with resolveUrl()
  • Date Processing - Parse and process dates with processDate()

📁 File Operations

  • File Downloads - Download files with downloadFile()
  • S3 Integration - Upload and save files to S3 with uploadFileToS3() and saveFileToS3()

✅ Data Validation

  • Schema Validation - Validate data structures with validateDataUsingSchema()
  • Empty Value Filtering - Filter empty values with filterEmptyValues()

⚡ Optimized Extractors

  • High-Performance Extractors - Pre-built optimized extractors for common use cases
  • Available via @intuned/browser/optimized-extractors

Quick Start

import {
  extractMarkdown,
  sanitizeHtml,
  goToUrl,
  withNetworkSettledWait,
} from "@intuned/browser";

// Example: Extract and process web content
async function extractContent(page: Page) {
  // Navigate to URL
  await goToUrl(page, "https://example.com");

  // Wait for network to settle
  await withNetworkSettledWait(page, async () => {
    // Your actions here
  });

  // Get and sanitize HTML
  const html = await page.content();
  const cleanHtml = sanitizeHtml(html);

  // Extract markdown
  const markdown = extractMarkdown(cleanHtml);

  return markdown;
}

AI-Powered Data Extraction

import { extractStructuredData } from "@intuned/browser/ai";
import type { JsonSchema } from "@intuned/browser/ai";

// Define your data schema
const schema: JsonSchema = {
  type: "object",
  properties: {
    title: { type: "string" },
    price: { type: "number" },
    description: { type: "string" },
  },
  required: ["title", "price"],
};

// Extract structured data using AI
async function extractProductData(page: Page) {
  const result = await extractStructuredData({
    page,
    schema,
    prompt: "Extract product information from this page",
  });
  return result;
}

Module Exports

The SDK provides multiple import paths for different features:

// Main helpers
import { goToUrl, sanitizeHtml /* ... */ } from "@intuned/browser";

// AI functions
import { extractStructuredData, isPageLoaded } from "@intuned/browser/ai";

// Optimized extractors
import /* extractors */ "@intuned/browser/optimized-extractors";

Documentation

For detailed documentation on all functions and types, see the documentation.

Building from Source

# Install dependencies
yarn install

# Build the project
yarn build

# Run tests
yarn test

# Run tests with UI
yarn test:dev

Support

For support, questions, or contributions, please contact the Intuned team at [email protected].

About Intuned

Intuned provides powerful tools for browser automation, web scraping, and data extraction. Visit intunedhq.com to learn more.