# JSR Packages Scraper - JavaScript Registry Search & Metadata (`klondikeking/jsr-packages-scraper`) Actor

Search and extract package metadata from JSR (JavaScript Registry): scope, name, description, GitHub repo, runtime compatibility, version count, score, and latest version.

- **URL**: https://apify.com/klondikeking/jsr-packages-scraper.md
- **Developed by:** [Pierrick McD0nald](https://apify.com/klondikeking) (community)
- **Categories:** Developer tools, E-commerce
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

$1.00 / 1,000 package extracteds

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

Learn more: https://docs.apify.com/platform/actors/running/actors-in-store#pay-per-event

## What's an Apify Actor?

Actors are web data automations that power AI and operations. They run on the Apify platform to scrape websites, process data, connect APIs, and automate workflows.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.
Actors are written with capital "A".

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.
The best way to integrate Actors is as follows.

- **AI agents and MCP clients** — the [Apify MCP server](https://docs.apify.com/integrations/mcp.md) at `https://mcp.apify.com` (remote, streamable HTTP, OAuth on first use).
- **Agentic workflows and local Actor development** — [Agent Skills](https://apify.com/.well-known/agent-skills/index.json) with the [Apify CLI](https://docs.apify.com/cli/docs.md): `npm install -g apify-cli`, then `apify login`.
- **JavaScript/TypeScript projects** — the official [JS/TS client](https://docs.apify.com/api/client/js/docs.md): `npm install apify-client`.
- **Python projects** — the official [Python client](https://docs.apify.com/api/client/python/docs.md): `pip install apify-client`.
- **Any other language** — the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).

# README

## JSR Packages Scraper - JavaScript Registry Search & Metadata

Extract package metadata from [JSR](https://jsr.io) (JavaScript Registry), the modern package registry for JavaScript and TypeScript runtimes. This Actor searches JSR by keyword and returns structured data for every matching package, including scope, name, description, GitHub source, runtime compatibility, version count, quality score, and latest version. It is built for developers, market researchers, and automation workflows that need clean, up-to-date data from the JSR ecosystem.

### Use Cases

- **Competitor research** — Map packages in a specific JSR niche and compare their scores, version counts, and GitHub presence.
- **Dependency auditing** — Build inventories of available packages for Deno, Node.js, Bun, Cloudflare Workers, and browser runtimes.
- **Catalog generation** — Feed JSR package data into internal tools, documentation sites, or market intelligence dashboards.
- **Ecosystem monitoring** — Track new releases, archived packages, and runtime support trends across the JSR registry.

### Input

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `searchQueries` | Array | Yes | Keywords to search on JSR (e.g., `oak`, `hono`, `deno`). Empty input falls back to a curated list of popular queries. |
| `maxItems` | Number | Yes | Maximum number of packages to extract across all queries (default: 100). |
| `proxyConfiguration` | Object | No | Apify proxy configuration. Included by default for reliable cloud runs. |

### Output

The Actor outputs a dataset with the following fields for each JSR package:

```json
{
  "scope": "oak",
  "name": "oak",
  "fullName": "oak/oak",
  "description": "A middleware framework for handling HTTP with Deno, Node.js, Bun and Cloudflare Workers.",
  "githubUrl": "https://github.com/oakserver/oak",
  "runtimes": "deno, node, bun, workerd",
  "versionCount": 32,
  "dependencyCount": 0,
  "dependentCount": 0,
  "score": 94,
  "latestVersion": "17.2.0",
  "isArchived": false,
  "updatedAt": "2024-03-01T04:23:01.583Z",
  "createdAt": "2024-01-11T06:10:03.496Z",
  "jsrUrl": "https://jsr.io/oak/oak",
  "error": ""
}
```

### Pricing

Pay per event: **$0.001 per package extracted**. Charges are calculated only for successful extractions, so you pay for data you can use. Pricing is designed to be competitive with other package registry scrapers on the Apify Store while covering compute and proxy costs.

### Limitations

- JSR search results are subject to the JSR public API. Very large result sets may require multiple queries.
- Runtime compatibility is derived from the JSR API response; packages without declared compatibility will return empty values.
- GitHub URLs are only available when the package author has linked a repository.

### FAQ

**Q: Can I scrape all packages without a search query?**
A: The Actor uses the JSR search API. Leave `searchQueries` empty to use a curated set of popular queries, or provide specific keywords to target a niche.

**Q: Does the Actor support proxies?**
A: Yes. Apify proxy is enabled by default to ensure reliable access from cloud runs.

**Q: What runtimes are reported?**
A: The Actor reports any combination of `deno`, `node`, `bun`, `browser`, and `workerd` based on the package metadata.

### Changelog

- **v1.0.0** — Initial release: JSR search, package metadata extraction, and pay-per-event pricing.

***

Built by P. McD0nald for the Apify Store. Open an issue on this Actor's Apify page for support or feature requests.

# Actor input Schema

## `searchQueries` (type: `array`):

List of search keywords to query JSR (JavaScript Registry). Leave empty to scrape a curated set of popular packages.

## `maxItems` (type: `integer`):

Maximum number of JSR packages to extract across all queries.

## `proxyConfiguration` (type: `object`):

Configure proxy for scraping. Apify proxy is included by default.

## Actor input object example

```json
{
  "searchQueries": [
    "oak",
    "hono",
    "deno"
  ],
  "maxItems": 10,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

# Actor output Schema

## `results` (type: `string`):

No description

## `stats` (type: `string`):

No description

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "searchQueries": [
        "oak",
        "hono",
        "deno"
    ],
    "maxItems": 10,
    "proxyConfiguration": {
        "useApifyProxy": true
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("klondikeking/jsr-packages-scraper").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {
    "searchQueries": [
        "oak",
        "hono",
        "deno",
    ],
    "maxItems": 10,
    "proxyConfiguration": { "useApifyProxy": True },
}

# Run the Actor and wait for it to finish
run = client.actor("klondikeking/jsr-packages-scraper").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "searchQueries": [
    "oak",
    "hono",
    "deno"
  ],
  "maxItems": 10,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}' |
apify call klondikeking/jsr-packages-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.apify.com/?tools=klondikeking/jsr-packages-scraper",
                "--header",
                "Authorization: Bearer <YOUR_API_TOKEN>"
            ]
        }
    }
}

```

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/7DBxfjLF9vWBlcM9V/builds/sqmLkV8PgQ9g3wkuW/openapi.json
