# ImpactFlow – API Breaking Change Analyzer (`sabareeshsp7/impactflow-api-analyzer`) Actor

Scan public GitHub repositories for deprecated Slack APIs. Detect affected files and lines, verify official documentation, and generate actionable JSON and Markdown migration reports.

- **URL**: https://apify.com/sabareeshsp7/impactflow-api-analyzer.md
- **Developed by:** [Sabareesh SP](https://apify.com/sabareeshsp7) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

Pay per usage

This Actor is paid per platform usage. The Actor is free to use, and you only pay for the Apify platform usage, which gets cheaper the higher subscription plan you have.

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

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

## ImpactFlow — API Breaking Change & Dependency Impact Analyzer

ImpactFlow is an Apify Actor for analyzing API breaking changes and their dependency impact. The current MVP securely retrieves a bounded set of source files from a public GitHub repository, verifies official Slack documentation availability, and detects static source evidence for the retired Slack `files.upload` API. It does not execute repository code, use AI reasoning, or make paid API calls.

### Input

- `githubRepoUrl` (required): HTTPS URL in the form `https://github.com/owner/repository`.
- `provider`: Documentation provider. The only initial value is `slack`; defaults to `slack`.
- `maxFiles`: Source-file retrieval limit from 1 to 50; defaults to 20.
- `debug`: Enables verbose Actor logging; defaults to `false`.

For authenticated GitHub API requests, optionally set `GITHUB_TOKEN` in the Actor environment. The token is sent only to `https://api.github.com`, is never written to reports or logs, and is not required while unauthenticated public API capacity is available.

### Output

The Actor writes one structured record to the default Dataset and a readable `IMPACT_REPORT.md` record to the default key-value store. The report keeps repository scan coverage and live Slack documentation verification separate, and classifies the available static evidence as `confirmed_code_match`, `potential_impact`, `no_match_detected`, or `insufficient_evidence`.

The scanner never clones or executes repository code. It rejects non-GitHub URLs, does not follow redirects, and enforces request timeouts, bounded retries, per-file limits, a total-byte limit, and the `maxFiles` limit. Slack documentation collection is restricted to the two configured official `docs.slack.dev` pages. Migration guidance is deterministic and limited to Slack's external upload URL workflow.

### Run locally

Place an input object in `storage/key_value_stores/default/INPUT.json`, then run:

```bash
apify run
```

Example input:

```json
{
  "githubRepoUrl": "https://github.com/example/example-api",
  "provider": "slack",
  "maxFiles": 20,
  "debug": false
}
```

Inspect the resulting record under `storage/datasets/default/`. Local storage does not sync to the Apify platform.

### Current limitations

Only public repositories and common source extensions are supported. Binary files, common dependency/generated directories, lockfiles, oversized files, and non-UTF-8 files are skipped. Unauthenticated GitHub API rate limits apply. Static matches do not prove production execution or runtime failure, and comments, examples, fixtures, and ambiguous references are not reported as confirmed production usage. The MVP currently supports only the Slack `files.upload` deprecation case.

# Actor input Schema

## `githubRepoUrl` (type: `string`):

Public repository URL in the form https://github.com/owner/repository.

## `provider` (type: `string`):

Documentation provider to compare against. Only Slack is supported initially.

## `maxFiles` (type: `integer`):

Maximum number of eligible source files to retrieve.

## `debug` (type: `boolean`):

Enable verbose Actor logging.

## Actor input object example

```json
{
  "githubRepoUrl": "https://github.com/example/example-api",
  "provider": "slack",
  "maxFiles": 20,
  "debug": false
}
```

# Actor output Schema

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

No description

## `impactReport` (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 = {
    "githubRepoUrl": "https://github.com/example/example-api"
};

// Run the Actor and wait for it to finish
const run = await client.actor("sabareeshsp7/impactflow-api-analyzer").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 = { "githubRepoUrl": "https://github.com/example/example-api" }

# Run the Actor and wait for it to finish
run = client.actor("sabareeshsp7/impactflow-api-analyzer").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 '{
  "githubRepoUrl": "https://github.com/example/example-api"
}' |
apify call sabareeshsp7/impactflow-api-analyzer --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,sabareeshsp7/impactflow-api-analyzer"
        }
    }
}
```

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/MDYPf25badY9yRVWd/builds/qqOETaHsUphe7T77Y/openapi.json
