Browser Extension Generator avatar

Browser Extension Generator

Pricing

from $49.00 / new extension

Go to Apify Store
Browser Extension Generator

Browser Extension Generator

Describe the Chrome or Edge extension you need and receive it as a ready-to-install ZIP (Manifest V3, plain JavaScript). Run again with the same name to update it.

Pricing

from $49.00 / new extension

Rating

0.0

(0)

Developer

Tin

Tin

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

a day ago

Last modified

Categories

Features

Limited permissions

Share

Actor #1 - Customer Actor

Deployed as extension-generator. Customers run this Actor in their own Apify account. It sends their request to the private generator Actor (Actor #2) in your account, waits for the generated browser extension, and copies the resulting ZIP into the customer's run storage.

Required environment variables

  • TOKEN: your private Apify token (secret). It must be able to run Actor #2, read its storage, and write to the generated-extensions key-value store in your account.
  • GENERATOR_ACTOR_ID: Actor #2 ID. Default dtrungtin/extension-generator-backend.
  • INBOX_STORE_NAME (optional): named store in your account used to hand previous ZIPs to Actor #2. Default generated-extensions, the same store Local Codex archives to.

Input

FieldRequiredDescription
extensionNameyesName of the extension, as it appears in the browser. Reusing the name of an earlier successful run turns the request into a revision.
requirementsyesWhat the extension should do. For a revision, only the change.
exampleUrlnoA page where the extension should work. It is given to the generator and opened in the browser test.
notesnoExtra information for the generator.
errorLognoProblem report: the error text the browser shows for the extension (secrets removed).
stepsnoProblem report: what the customer did, expected and saw.
failedUrlnoProblem report: the page where the extension does not work.
browsernoProblem report: browser and version, for example "Edge 142 on Windows 11".

Page addresses are passed on only when they are http or https URLs.

Flow

  1. The customer starts this Actor with the generation requirements.
  2. The Actor looks at the customer's own earlier runs of this Actor (see Revisions below).
  3. It creates a separate ApifyClient using process.env.TOKEN and calls Actor #2 in your account.
  4. Actor #2 stores the request and waits for Local Codex to upload GENERATED_EXTENSION_ZIP into its default key-value store.
  5. When Actor #2 succeeds, this Actor reads the ZIP with your token and stores it as GENERATED_EXTENSION_ZIP in its own default key-value store, plus an OUTPUT record with the generator run ID, extension name and the ZIP's record URL (zipUrl). The log and the final status message show that URL, for example https://api.apify.com/v2/key-value-stores/<storeId>/records/GENERATED_EXTENSION_ZIP.
  6. The customer downloads GENERATED_EXTENSION_ZIP from that URL (key-value store record URLs are readable without a token) or from the run's Storage tab, unzips it, and loads the folder with "Load unpacked" on chrome://extensions or edge://extensions. The log prints these steps. The same ZIP can be uploaded to the Chrome Web Store and Edge Add-ons.
  7. The same result is pushed as one item into the run's default dataset (status, extensionName, requestType, zipUrl, size, hash, version, billing tier and label, amount charged, requestId, timestamps, message), so it appears as a table in the Dataset tab (.actor/dataset_schema.json) and can be exported or read through the API. A run that fails writes a FAILED item with the error message; a run stopped by the spending-cap pre-check writes NOT_STARTED. The item never mentions how the extension is produced.

The example request

The input form is prefilled with "Page Word Counter" and one sentence of requirements (SAMPLE_REQUEST in src/main.js, mirrored in .actor/input_schema.json and in Actor #2). A run with exactly that input skips the spending-cap pre-check, because Actor #2 answers it at once with a ready-made sample extension and marks the delivery as free. The log tells the customer it is the example and how to order their own.

Revisions

Revisions are detected automatically; there is no extra input. A request whose extensionName matches an extension already delivered to the same customer (compared case-insensitively, ignoring punctuation) is a revision of it. Two lookups exist:

  1. From the customer's runs (needs full permissions). Using the run's own token, the Actor lists the customer's SUCCEEDED runs of this Actor, picks the newest one with a matching INPUT.extensionName and a delivered ZIP, downloads that ZIP, uploads it into the generated-extensions store in your account as inbox-<runId>.zip (Actor #2 cannot read the customer's private storage) and passes the record URL to Actor #2 as previousZipUrl with its SHA-256 and the previous run IDs. Apify runs new Actors with limited permissions, whose token cannot list the user's runs, so this lookup fails with "Insufficient permissions" unless you switch the Actor to full permissions in Console (Settings > Actor permissions). Customers then have to approve that access explicitly. The failure is logged and is not fatal.
  2. From your delivery records (default, no customer permissions needed). Actor #2 checks the per-customer delivery index that Local Codex writes on every upload (index-<customerUserId>.json in the generated-extensions store, keyed by normalised extension name). The customer's user ID comes from the APIFY_USER_ID environment variable of this run. A match makes Actor #2 stage the original delivery from your own storage, which is trusted by construction.

OUTPUT.revision reflects Actor #2's decision. To generate a brand-new extension instead, use a different extensionName.

Reporting a problem with a generated extension

When an extension the customer received does not work, the evidence is in their browser and cannot be read from here. The customer therefore fills in the "Report a problem" section of the input (errorLog, steps, failedUrl, browser), keeping the same extensionName so the request becomes a revision. The Actor bundles them as problemReport (the error text is capped at 200,000 characters, keeping the tail where errors appear; the steps at 20,000), forwards it to Actor #2 and logs only what kinds of evidence were attached, never their content. Local Codex saves the evidence next to the request, opens the reported page with the previous version loaded to look for the failure, and the fix is delivered as a new version. The input description asks customers to remove secrets first.

Pricing

Built for pay per event (src/pricing.js holds the rules). When monetisation is enabled in Console with the events extension-generated-standard, extension-generated-advanced and extension-revision:

  1. At start the run must be able to pay for extension-generated-standard; otherwise it exits with a status message asking the customer to raise the run's maximum total charge, before the generator is contacted. The example request is exempt.
  2. The customer's cap and the prices are forwarded in customerContext.billing; Local Codex decides the tier automatically from the delivered extension (complexity), the size of the change against the previous version and the 7-day warranty for problem reports (counted from the last billable delivery of that extension, so free fixes do not extend it), and records it with a label in GENERATED_EXTENSION_META.
  3. After the ZIP is copied, the event for that tier is charged: extension-revision for updates, extension-generated-standard or extension-generated-advanced for new extensions and major reworks (advanced falls back to standard if the cap is too low); free deliveries charge nothing. The customer sees the amount and the label, e.g. "Charged $19.00 for this delivery (update of an existing extension)". OUTPUT.charge records the result.

Without monetisation the Actor charges nothing and runs as pay per usage.

Failure reporting

Errors go through Actor.fail(), so a failed run is marked FAILED and the reason is shown as its status message. Calling Actor.exit() in a finally block would exit with code 0 and hide the failure.