Skip to content

Latest commit

Β 

History

History
103 lines (74 loc) Β· 2.49 KB

File metadata and controls

103 lines (74 loc) Β· 2.49 KB

πŸš€ TrailSteps - Chrome Extension

TrailSteps is a Chrome Extension that captures every interaction you perform on a website, turns them into editable steps in a sidebar panel, and lets you export them as a structured PDF.
Think of it as a lightweight, open-source alternative to Tango.


🧠 Features

  • πŸ“Œ Tracks all clicks and interactions across any website
  • πŸ“ Displays recorded steps in a clean sidebar UI (built with React + AntD)
  • 🧹 Edit, delete, or reorder steps before export
  • πŸ“„ Submit to open a new PDF generation page
  • πŸ–¨οΈ Download your step-by-step guide as a PDF

βœ… Use Cases

  • Creating tutorials and SOPs
  • QA/testing documentation
  • Internal process guides
  • Bug reproduction steps
  • Onboarding workflows

πŸ› οΈ Tech Stack


πŸ“ Project Structure

trailsteps/
β”œβ”€β”€ public/
β”‚   β”œβ”€β”€ pdf.html            # HTML entry for PDF React page
β”‚   └── icons/              # Extension icons
β”œβ”€β”€ src/
β”‚   β”œβ”€β”€ content/            # contentScript.ts - DOM tracking logic
β”‚   β”œβ”€β”€ background/         # background.ts - event routing & tab handling
β”‚   β”œβ”€β”€ sidepanel/          # React sidebar UI (Vite + AntD + Tailwind)
β”‚   β”œβ”€β”€ pdfview/            # React PDF view page for export
β”‚   └── manifest.json       # Chrome extension configuration
β”œβ”€β”€ vite.config.ts
└── README.md

πŸ§ͺ Development Notes

  • Click tracking starts when the user clicks Start in the side panel.
  • Steps are stored in local extension state (Zustand, chrome.storage.local).
  • On submission, a new tab (pdf.html) opens and renders the tracked steps.
  • PDF can be generated using html2canvas + jsPDF or html2pdf.js.

πŸ“¦ Load in Chrome

  1. Run yarn build
  2. Go to chrome://extensions
  3. Enable Developer Mode
  4. Click Load Unpacked
  5. Select the dist/ folder

πŸš€ Getting Started

1. Clone the repo

git clone https://github.com/vikhyatsingh123/TrailSteps.git
cd trailsteps

2. Install dependencies

yarn install

3. Run in dev mode

yarn dev

4. Build for production

yarn build