# Fettlework: Website Launch Check (`voyagi/fettlework`) Actor

Checks a website before launch and returns a plain report of what to fix: security headers, secret keys left in public code, search and sharing basics, legal pages, builder leftovers, broken links and accessibility basics.

- **URL**: https://apify.com/voyagi/fettlework.md
- **Developed by:** [Taranity](https://apify.com/voyagi) (community)
- **Categories:** Developer tools, SEO tools
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $50.00 / 1,000 full reports

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

## Fettlework: Website Launch Check

Give it a website address. It returns a plain report of what to fix before launch, in the order to fix it, with what was seen and how to fix each problem.

It is made for sites built quickly, often with an AI app builder, where the same few problems ship again and again: a secret key left in the public code, search engines told to stay away, the builder's placeholder text and preview image, no privacy policy, broken links.

### What it checks

| Area | Checks |
|---|---|
| Security | HTTPS, HTTP forwarding to HTTPS, HSTS, Content Security Policy, nosniff, framing, referrer policy, secret keys in the page and its scripts (Stripe, Supabase service_role, OpenAI and Anthropic, GitHub, AWS, Slack, SendGrid, private keys, database addresses with passwords), public source maps, insecure files on a secure page |
| Search and sharing | noindex tags and headers, robots.txt blocking everything, sitemap, title, description, preview image and text, phone viewport, canonical address, main heading, pages drawn only by JavaScript |
| Legal and trust | privacy policy, terms, contact or company details, tracking scripts without a consent tool |
| Builder leftovers | the builder's editor script, author tag, placeholder text, example addresses, calls to a local development address |
| Working order | the page's status, how long the HTML takes to arrive, compression, broken links to other pages of the site, missing pages answering "200 OK" |
| Accessibility basics | page language, images without a text alternative, form fields without a label, buttons and links without a readable name |

### Two ways to run it

- **Full report**, charged per site checked: every problem with what was seen and how to fix it, plus what looked fine. Up to 100 sites per run.
- **Free quick check**: the score, the verdict, the top three problems and how many parts could not be checked, for one site.

A site that cannot be reached, or whose home page turns the checker away (bot protection, a rate limit or a login), gets a row saying why, and is never charged. Pages, links and files that turn the checker away are listed under what could not be checked, never as broken.

### Input

| Field | Meaning |
|---|---|
| Website addresses | One home page per line. `https://` is added when missing. |
| Report | Full report or free quick check. |
| Links to test on each page | How many links to other pages of the same site are opened, 0 to 100 (default 25). |
| Look for secret keys in the page's JavaScript | On by default. |

### Output

One row per site: the score (0 to 100), the verdict, the number of high, medium and small problems, each problem with its area, what was seen and how to fix it, what passed, what could not be checked and why, and the whole report as plain text in `reportText`. The Overview table shows one line per site, with how many parts could not be checked beside the score.

Secret keys are never printed whole: the report shows the kind of key, the file and the first few characters.

### What it does not do

It reads only what any visitor's browser downloads: the page, up to eight of its script files (the site's own first, the common analytics scripts left out), robots.txt, the sitemap, the links on the page and one made-up address to see how missing pages answer. It does not log in, submit forms, guess hidden files or test for vulnerabilities, and it refuses addresses on private networks.

Pages drawn entirely by JavaScript are read as their HTML and their own scripts, without running them. The report says so, and names the checks that could not run on such a page.

### Development

```bash
npm install
npm test
npm run verify:ship        # tests, lint, the .env.example check, then the fault roster below
node scripts/mutants.mjs   # plants faults one at a time in a copy and checks the tests catch each
npm run gate:env:mutants   # slow: proves the .env.example check's own tests can fail
```

Local run: put an input in `storage/key_value_stores/default/INPUT.json` and run `node src/main.js`. The results land in `storage/datasets/default/`.

# Actor input Schema

## `urls` (type: `array`):

The home page of each site to check, one address per line. The full report checks up to 100 sites per run. The free quick check covers the first one.

## `reportType` (type: `string`):

The full report lists every problem with what we saw and how to fix it, charged per site. The free quick check shows the score and the top three problems for one site.

## `maxLinksToCheck` (type: `integer`):

How many links on the page, to other pages of the same site, are opened to find broken ones.

## `scanScripts` (type: `boolean`):

Downloads the page's own script files and looks for keys that should never reach a browser, like a Stripe secret key or a Supabase service_role key. Keys are never shown in full. The consent-tool check, and on a page drawn by JavaScript the legal links and leftovers, read these files too, so with this off those are not fully judged.

## Actor input object example

```json
{
  "urls": [
    "https://taranity.com"
  ],
  "reportType": "full",
  "maxLinksToCheck": 25,
  "scanScripts": true
}
```

# Actor output Schema

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

No description

## `overview` (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 = {
    "urls": [
        "https://taranity.com"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("voyagi/fettlework").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 = { "urls": ["https://taranity.com"] }

# Run the Actor and wait for it to finish
run = client.actor("voyagi/fettlework").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 '{
  "urls": [
    "https://taranity.com"
  ]
}' |
apify call voyagi/fettlework --silent --output-dataset

```

## MCP server setup

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

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/wgoxhT1hABFK3D48S/builds/vqMaszBjccT3vgkab/openapi.json
