# Jsr Javascript Registry Scraper (`coder_zoro/jsr-javascript-registry-scraper`) Actor

This Actor collects JavaScript and TypeScript package listings and metadata from JSR (the JavaScript Registry) based on search queries, scopes, or package names. It extracts package scopes, names, descriptions, versions, runtime compatibility, dependencies, and repository links

- **URL**: https://apify.com/coder_zoro/jsr-javascript-registry-scraper.md
- **Developed by:** [Zoro](https://apify.com/coder_zoro) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.99 / 1,000 results

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

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

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
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.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## 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.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

### JSR JavaScript Registry Scraper — Search and Collect JavaScript Packages

![JSR JavaScript Registry Scraper cover](https://images.bigibyte.com/cdn-cgi/image/width=1260,height=540,fit=cover,format=webp/apify-actors-covers/jsr-javascript-registry-scraper-cover.png)

JSR JavaScript Registry Scraper collects publicly available package search results from JSR. Search by keyword to discover JavaScript and TypeScript packages, review package scores, explore runtime compatibility, and collect version and dependency information in a structured dataset.

### What It Does

The scraper searches JSR packages using your chosen keyword and collects matching package records across multiple result pages. It captures package scopes, names, descriptions, repository details, runtime compatibility, scores, version counts, and timestamps.

You can control the maximum number of records collected per run and export the results for package research, registry monitoring, and data analysis.

### Features

- Search JSR packages using keywords.
- Collect package scopes and names.
- Retrieve package descriptions and GitHub repository details.
- Capture browser, Deno, Node.js, Workerd, and Bun compatibility.
- Collect package scores and latest versions.
- Retrieve version, dependency, and dependent counts.
- Capture package creation and update timestamps.
- Support paginated search results.
- Skip duplicate packages using scope and name.
- Set a maximum number of records to collect.
- Export results in JSON, CSV, Excel, and other supported formats.

### Search Mode

**Search:** Searches JSR packages using the supplied keyword and collects matching package records across available result pages.

### Input Parameters

| Parameter | Description |
|---|---|
| `mode` | Search mode. Use `search`. |
| `query` | Keyword or phrase used to find JSR packages. |
| `maxItems` | Maximum number of package records to collect, up to 1,000. |
| `requestDelayMs` | Delay between requests in milliseconds. Default: `1000`. |

### Input Example

```json
{
  "mode": "search",
  "query": "python",
  "maxItems": 50,
  "requestDelayMs": 1000
}
```

### Output Fields

| Field | Description |
|---|---|
| `scope` | JSR package scope. |
| `name` | Package name. |
| `packageDescription` | Description of the package. |
| `githubRepository` | GitHub repository information, including owner and repository name. |
| `runtimeCompat` | Runtime compatibility information for browser, Deno, Node.js, Workerd, and Bun. |
| `updatedAt` | Date and time when the package was last updated. |
| `createdAt` | Date and time when the package was created. |
| `versionCount` | Total number of available package versions. |
| `dependencyCount` | Number of package dependencies. |
| `dependentCount` | Number of packages depending on this package. |
| `score` | Package search score. |
| `latestVersion` | Latest available package version. |
| `scrapedAt` | Date and time when the record was collected. |

### Output Example

```json
{
  "scope": "denosaurs",
  "name": "python",
  "packageDescription": "This module provides a seamless integration between JavaScript (Deno/Bun) and Python by integrating with the Python/C API.",
  "githubRepository": {
    "owner": "denosaurs",
    "name": "deno_python"
  },
  "runtimeCompat": {
    "browser": false,
    "deno": true,
    "node": false,
    "workerd": false,
    "bun": true
  },
  "updatedAt": "2024-02-26T11:26:52.626377Z",
  "createdAt": "2024-02-05T15:05:32.075336Z",
  "versionCount": 4,
  "dependencyCount": 0,
  "dependentCount": 0,
  "score": 94,
  "latestVersion": "0.4.6",
  "scrapedAt": "2026-10-26T00:00:00+00:00"
}
```

### Use Cases

- **Package Research:** Find JavaScript and TypeScript packages related to a specific technology or topic.
- **Registry Monitoring:** Refresh package search results to track changes in scores, versions, and package information.
- **Package Catalogs:** Build structured catalogs of JSR packages for offline research.
- **Dependency Discovery:** Identify packages with relevant dependencies and dependent counts.
- **Runtime Compatibility Research:** Compare package compatibility across different JavaScript runtimes.
- **Dashboard Feeds:** Use package search results in reporting and data analysis workflows.

### Exporting Data

All collected records are stored in an Apify dataset. You can export the results in:

- JSON
- CSV
- Excel
- Other supported Apify dataset formats

### FAQ

**Who can use this scraper?**

JavaScript and TypeScript developers, researchers, package maintainers, and analysts interested in the JSR ecosystem.

**Can I search for specific packages or technologies?**

Yes. Enter a keyword or phrase in the `query` parameter to find matching packages.

**Does it collect GitHub repository information?**

Yes. Available repository details, including the owner and repository name, are included in the results.

**Does it show runtime compatibility?**

Yes. The results can include compatibility information for browser, Deno, Node.js, Workerd, and Bun.

**Does it support multiple result pages?**

Yes. The scraper retrieves paginated search results until it reaches the item limit or there are no more results.

**Can I run it on a schedule?**

Yes. You can use Apify schedules to refresh package search results periodically.

**How many packages can it collect per run?**

You can collect up to 1,000 records using `maxItems`.

### Is Web Scraping Legal?

Collecting information that is already public is generally legal. There is no single law that bans all forms of web scraping. The limits are the usual ones: do not break into accounts, do not take private or confidential data, and be careful with personal data and copyrighted works. A site's terms can also restrict how you access it. Facts such as a public name, price, or rating are not the same as republishing someone's article or photo.

This actor collects information from public pages. It does not log in and it does not bypass access controls.

For a longer explanation, see Apify's article [Is web scraping legal?](https://blog.apify.com/is-web-scraping-legal/).

# Actor input Schema

## `mode` (type: `string`):

What to fetch. Search queries JSR packages with scores.

## `query` (type: `string`):

Optional search query. Leave empty to retrieve the broader JSR package listing.

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

Stop after this many successful rows. Hard max is 1000.

## `requestDelayMs` (type: `integer`):

Milliseconds to wait between requests. Raise if you see 429.

## `userAgent` (type: `string`):

User-Agent header sent with each request.

## `timeoutSecs` (type: `integer`):

Overall run budget in seconds.

## `requestTimeoutSecs` (type: `integer`):

Per-request timeout in seconds.

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

Optional proxy. Leave off unless you need it.

## Actor input object example

```json
{
  "mode": "search",
  "query": "",
  "maxItems": 100,
  "requestDelayMs": 1000,
  "userAgent": "ActorResearch/1.0",
  "timeoutSecs": 300,
  "requestTimeoutSecs": 30,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

# Actor output Schema

## `overview` (type: `string`):

Dataset rows in the overview table.

## `dataset` (type: `string`):

Full dataset for this run.

## `items` (type: `string`):

Dataset items as JSON.

# 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 = {
    "query": ""
};

// Run the Actor and wait for it to finish
const run = await client.actor("coder_zoro/jsr-javascript-registry-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 = { "query": "" }

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

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

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

```

## CLI example

```bash
echo '{
  "query": ""
}' |
apify call coder_zoro/jsr-javascript-registry-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,coder_zoro/jsr-javascript-registry-scraper"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/VhaMZEulEiIhboSCj/builds/jreLXRvcawLCjkB4Q/openapi.json
