|
| 1 | +# Scrollywood 🎬 |
| 2 | + |
| 3 | +One-click smooth scroll video recording for any webpage. Capture beautiful, cinematic scroll recordings with an Art Deco-inspired interface. |
| 4 | + |
| 5 | +## Features |
| 6 | + |
| 7 | +- **One-click recording**: Just set duration and click "Action" |
| 8 | +- **Smooth scrolling**: Configurable scroll duration (5-300 seconds) |
| 9 | +- **Delay before roll**: Optional countdown before scrolling starts |
| 10 | +- **Auto-save**: Downloads as WebM when complete |
| 11 | +- **Visual feedback**: "REC" badge shows recording status |
| 12 | + |
| 13 | +## Installation |
| 14 | + |
| 15 | +### From Chrome Web Store |
| 16 | +*(Coming soon)* |
| 17 | + |
| 18 | +### Manual Installation (Developer Mode) |
| 19 | +1. Clone this repository |
| 20 | +2. Run `bun install` |
| 21 | +3. Open `chrome://extensions/` |
| 22 | +4. Enable "Developer mode" (top right) |
| 23 | +5. Click "Load unpacked" |
| 24 | +6. Select the `Scrollywood` folder |
| 25 | + |
| 26 | +## Development |
| 27 | + |
| 28 | +```bash |
| 29 | +# Install dependencies |
| 30 | +bun install |
| 31 | + |
| 32 | +# Run tests |
| 33 | +bun test |
| 34 | + |
| 35 | +# Run tests in watch mode |
| 36 | +bun test:watch |
| 37 | + |
| 38 | +# Build extension ZIP for distribution |
| 39 | +bun run build |
| 40 | +``` |
| 41 | + |
| 42 | +## Publishing to Chrome Web Store |
| 43 | + |
| 44 | +### First-time setup |
| 45 | + |
| 46 | +1. **Create a developer account** at [Chrome Web Store Developer Dashboard](https://chrome.google.com/webstore/devconsole/) |
| 47 | + - One-time $5 registration fee |
| 48 | + |
| 49 | +2. **Create OAuth credentials** for automated publishing: |
| 50 | + - Go to [Google Cloud Console](https://console.cloud.google.com/) |
| 51 | + - Create a new project or select existing |
| 52 | + - Enable the Chrome Web Store API |
| 53 | + - Create OAuth 2.0 credentials (Desktop app type) |
| 54 | + - Note the Client ID and Client Secret |
| 55 | + |
| 56 | +3. **Get a refresh token**: |
| 57 | + ```bash |
| 58 | + # Use the Chrome Web Store API OAuth flow |
| 59 | + # Visit: https://accounts.google.com/o/oauth2/auth?response_type=code&scope=https://www.googleapis.com/auth/chromewebstore&client_id=YOUR_CLIENT_ID&redirect_uri=urn:ietf:wg:oauth:2.0:oob |
| 60 | + ``` |
| 61 | + |
| 62 | +4. **Add secrets to GitHub**: |
| 63 | + - `CHROME_EXTENSION_ID`: Your extension's ID (after first manual upload) |
| 64 | + - `CHROME_CLIENT_ID`: OAuth client ID |
| 65 | + - `CHROME_CLIENT_SECRET`: OAuth client secret |
| 66 | + - `CHROME_REFRESH_TOKEN`: OAuth refresh token |
| 67 | + |
| 68 | +### Manual publishing |
| 69 | + |
| 70 | +1. Build the extension: `bun run build` |
| 71 | +2. Go to [Chrome Web Store Developer Dashboard](https://chrome.google.com/webstore/devconsole/) |
| 72 | +3. Upload `dist/scrollywood-v*.zip` |
| 73 | +4. Fill out store listing details |
| 74 | +5. Submit for review (typically 1-3 days) |
| 75 | + |
| 76 | +### Automated publishing (via CI) |
| 77 | + |
| 78 | +Push a version tag to trigger automatic publishing: |
| 79 | + |
| 80 | +```bash |
| 81 | +# Update version in manifest.json |
| 82 | +git tag v1.0.1 |
| 83 | +git push origin v1.0.1 |
| 84 | +``` |
| 85 | + |
| 86 | +## Architecture |
| 87 | + |
| 88 | +``` |
| 89 | +Scrollywood/ |
| 90 | +├── manifest.json # Extension manifest (MV3) |
| 91 | +├── popup.html/js # Extension popup UI |
| 92 | +├── background.js # Service worker (orchestration) |
| 93 | +├── background-logic.js # Testable business logic |
| 94 | +├── offscreen.html/js # MediaRecorder (needs DOM context) |
| 95 | +├── scroll-utils.js # Scroll calculation utilities |
| 96 | +└── scripts/build.js # Build script for packaging |
| 97 | +``` |
| 98 | + |
| 99 | +### Why offscreen document? |
| 100 | + |
| 101 | +Chrome Manifest V3 service workers don't have DOM access, but `MediaRecorder` requires it. The offscreen document provides a DOM context for video recording while the service worker handles orchestration. |
| 102 | + |
| 103 | +## License |
| 104 | + |
| 105 | +MIT |
0 commit comments