Skip to content

feat: Turborepo monorepo + Electron desktop app for macOS - #6

Closed
brandensilva wants to merge 3 commits into
thomaskolmans:mainfrom
brandensilva:main
Closed

brandensilva wants to merge 3 commits into
thomaskolmans:mainfrom
brandensilva:main

Conversation

@brandensilva

Copy link
Copy Markdown

Summary

This PR contributes a significant enhancement to RSVP Reading, restructuring the project as a monorepo and adding a native macOS desktop application.

Changes

  • Turborepo + pnpm monorepo architecture - Reorganizes the codebase for better scalability and code sharing
  • Electron desktop app for macOS - Native desktop experience with file associations for PDF/EPUB
  • Shared core package (@rsvp/core) - TypeScript utilities shared between web and desktop apps
  • Ported upstream features - Multi-word display, i18n support, PWA capabilities

New Structure

rsvp-reading/
├── apps/
│   ├── web/          # Svelte 5 web app (original, refactored)
│   └── desktop/      # Electron macOS app
├── packages/
│   └── core/         # Shared TypeScript utilities
├── turbo.json
└── pnpm-workspace.yaml

Commands

pnpm install          # Install all dependencies
pnpm dev              # Run all apps in dev mode
pnpm dev:web          # Run web app only
pnpm dev:desktop      # Run desktop app only
pnpm build            # Build all packages
pnpm dist:desktop     # Build macOS DMG

Desktop App Features

  • Native macOS app with dark mode support
  • PDF and EPUB file associations
  • Hardened runtime for security
  • Code signing ready

Test Plan

  • pnpm install completes successfully
  • pnpm build builds all packages
  • pnpm dev:web runs the web app
  • pnpm dev:desktop runs the Electron app
  • pnpm dist:desktop creates macOS DMG
  • pnpm test:run passes all tests

brandensilva and others added 2 commits January 14, 2026 09:41
- Convert utilities to TypeScript in packages/core (@rsvp/core)
- Move web app to apps/web (@rsvp/web)
- Add apps/desktop placeholder for future Electron app
- Set up Turborepo for coordinated builds and tests
- Update imports to use @rsvp/core workspace package
- Add pnpm workspace configuration
- Update CLAUDE.md with new project structure

BREAKING CHANGE: Project structure changed to monorepo layout.
Use `pnpm install` and `pnpm dev:web` instead of npm commands.
- Add Electron main process with native macOS window (hiddenInset titlebar)
- Add preload script with secure IPC bridge via contextBridge
- Add full macOS application menu (File, Edit, Playback, View, Window, Help)
- Add electron-vite configuration for main, preload, and renderer builds
- Add native file dialog abstraction in @rsvp/core for cross-platform support
- Add PDF worker detection for offline Electron use
- Update TextInput to use native file dialog when available
- Update App.svelte with IPC listeners for menu commands and file events
- Configure electron-builder for macOS dmg with PDF/EPUB file associations

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@brandensilva

brandensilva commented Jan 14, 2026 •

Copy link
Copy Markdown
Author

Give me a moment, just fixing some build and nit issues. Will give the thumbs up when ready.

@brandensilva

brandensilva commented Jan 14, 2026 •

Copy link
Copy Markdown
Author

@thomaskolmans we should be squared away 👍 .

Let me know if you notice anything else that needs modified but the builds are working, tests are passing, and now super easy to launch this app from Raycast. :D

screenshot_2832

@thomaskolmans

Copy link
Copy Markdown
Owner

I'll check this out tomorrow. It's starting to be evening here and it's a huge PR.

@brandensilva

brandensilva commented Jan 16, 2026 •

Copy link
Copy Markdown
Author

I believe that linting issue is related to npm checks versus pnpm checks.

And yeah sorry it is so large. Best to get this project setup stuff out of the way now before other enhancements come along and conflict. I'm going to try and get to a few other changes soon this weekend.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants