HS.Hubert Swic
Back to projects

Developer Tool / In Development

Form Replay

Chrome-based fully configurable form automation tool for testing form inputs.

TypescriptReactTailwindGithub

Aug 2026

Overview

Form Replay is a Chrome extension I built to automate repetitive form completion using configurable workflows and reusable datasets. It runs alongside the active website in Chrome’s side panel, providing tools to map form controls, manage data and monitor execution across multiple steps and pages.

The problem

Repeatedly completing complex forms takes time and introduces opportunities for inconsistent data entry. The challenge extends beyond filling text fields: modern forms include custom dropdowns, conditional options, dynamically loaded controls and navigation between steps.

An effective solution needs to separate the sequence of interactions from the values being entered, accommodate changing page states and provide a way to recover when an action fails.

The solution

I built the extension around two concepts: Flows, which define the steps and interactions, and Packs, which hold the data used to populate them. This allows the same workflow to run with different datasets without rebuilding its configuration.

A visual element picker lets users select controls directly on the page, generating selectors and suggesting appropriate actions. The Pack editor derives its fields from the selected Flow, checking required values and data types before execution.

During a run, the side panel displays progress and exposes controls to pause, resume or stop. When something fails, users can retry the action, restart the step or skip ahead. Configurable waits accommodate dynamic interfaces, while saved execution checkpoints support continuation after page navigation.

Architecture & technical approach

The application is a Chrome Manifest V3 extension built with TypeScript, React and Vite. It has three main components: a React side panel for configuration and execution controls, a background service worker for coordination and storage, and a content script for interacting with the active page.

Typed messages connect these components. The service worker validates configuration, checks the active URL against the Flow’s allowed patterns and dispatches execution commands. Within the page, a sequential runner delegates each action to a dedicated handler for filling fields, selecting options, clicking controls or waiting for conditions.

Flows, Packs and execution state are persisted in Chrome’s local storage. Zod schemas validate stored data and imported configuration, while versioned YAML formats support sharing and reuse. The extension operates without a dedicated backend.

Key features

  • Visual element picker for mapping controls directly from the active website.
  • Structured workflow editor covering steps, actions, navigation, waits and timeouts.
  • Reusable data Packs with automatically generated editing fields.
  • Support for text inputs, textareas, selects, checkboxes and radio buttons.
  • Custom dropdown, button-group and search-result selection.
  • Conditional clicks and optional fields driven by Pack values.
  • Execution controls for pausing, resuming, retrying, skipping and stopping.
  • Ability to start from a selected step and monitor individual action progress.
  • Validated YAML import and export for both Flows and Packs.
  • URL matching to restrict where each workflow can start.

Technical highlights

  • Separate workflow definitions and data models, allowing multiple datasets to share one automation sequence.
  • Selector generation that prioritises stable attributes and accessible names before falling back to positional CSS.
  • Dedicated action handlers behind a shared registry, keeping execution logic modular.
  • Native value setters and DOM events to notify page interfaces of field changes.
  • Explicit waits for elements, enabled controls, URL changes and expected values.
  • Persisted execution checkpoints before navigation clicks, supporting continuation when the content script reloads.
  • Abortable execution for interrupting active waits when pausing or stopping.
  • Runtime validation that catches missing values, incorrect types and unused data fields.
  • Vitest and jsdom tests covering execution, selectors, dynamic page transitions, validation, storage and YAML serialization.
Discuss a similar project