Skip to content
vaaibhavmishraPublic

About

Cross-platform app which sync the clipboard across devices

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

ViClip Logo

ViClip

The Universal Clipboard Sync Tool.
Seamlessly sync your clipboard across every device you own — phone, laptop, desktop, and browser.

Website · Report Bug · Request Feature

License: GPL v3 Next.js Electron Expo Turborepo pnpm


✨ Features

  • Real-time Sync — Instant clipboard synchronization across all connected devices.
  • End-to-End Encryption — All clipboard data is encrypted before leaving your device.
  • Cross-Platform — Native apps for iOS, Android, macOS, Windows, Linux, and a Web dashboard.
  • Share Intent Support — Share content directly from other apps on mobile.
  • Lightweight & Fast — Minimal resource footprint with maximum performance.

🏗️ Architecture

This is a pnpm monorepo orchestrated by Turborepo.

ViClip-Monorepo/
├── apps/
│   ├── web/          → Next.js 16 — Marketing site & web dashboard
│   ├── desktop/      → Electron 41 (electron-vite) — macOS, Windows & Linux
│   └── mobile/       → Expo 55 (React Native) — iOS & Android
├── packages/
│   ├── constants/    → Shared business-logic constants & config
│   ├── types/        → Centralized TypeScript type definitions
│   ├── utils/        → Common utilities (crypto, formatting, etc.)
│   └── tsconfig/     → Shared TypeScript compiler configurations
├── turbo.json        → Turborepo pipeline configuration
├── biome.json        → Biome linter & formatter config
└── pnpm-workspace.yaml

🛠️ Tech Stack

Layer Technology
Web Next.js 16, React 19, Tailwind CSS 4, Framer Motion
Desktop Electron 41, electron-vite, React 19, Tailwind CSS 4, Zustand
Mobile Expo 55, React Native 0.83, NativeWind 4, Reanimated
Backend / Infra Firebase (Auth, Realtime Database, Storage)
Monorepo Turborepo, pnpm 10, Biome (lint + format)
Language TypeScript 6 (strict mode)
Quality Gates Husky pre-commit hooks, Commitlint (Conventional Commits)

🚀 Getting Started

Prerequisites

Tool Version
Node.js ≥ 22
pnpm ≥ 10

Installation

  1. Clone the repository:

    git clone https://github.com/vaaibhavmishra/viclip.git
    cd ViClip-Monorepo
  2. Install dependencies:

    pnpm install
  3. Set up environment variables:

    Create a .env file in the project root with the following keys:

    # Desktop (Electron-Vite — MAIN_VITE_ prefix required)
    MAIN_VITE_FIREBASE_API_KEY=
    MAIN_VITE_FIREBASE_AUTH_DOMAIN=
    MAIN_VITE_FIREBASE_DATABASE_URL=
    MAIN_VITE_FIREBASE_PROJECT_ID=
    MAIN_VITE_FIREBASE_STORAGE_BUCKET=
    MAIN_VITE_FIREBASE_MESSAGING_SENDER_ID=
    MAIN_VITE_FIREBASE_APP_ID=
    MAIN_VITE_FIREBASE_MEASUREMENT_ID=
    MAIN_VITE_ENCRYPTION_KEY=
    
    # Mobile (Expo)
    REVERSED_CLIENT_ID=

    Note: The mobile app also requires google-services.json (Android) and GoogleService-Info.plist (iOS) in apps/mobile/ for Firebase to work.

Running in Development

# Start all apps simultaneously
pnpm dev

# Or run a specific platform
pnpm dev:web        # → http://localhost:3000
pnpm dev:desktop    # → Opens Electron window
pnpm dev:mobile     # → Starts Expo dev server

📦 Building for Production

# Build everything
pnpm build

# Platform-specific builds
pnpm build:web                    # Next.js production build
pnpm build:desktop:mac            # Electron → macOS (.dmg)
pnpm build:desktop:win            # Electron → Windows (.exe)
pnpm build:desktop:linux          # Electron → Linux (.AppImage)
pnpm build:mobile:android         # Expo → Android
pnpm build:mobile:android:local   # Expo → Android (local APK)
pnpm build:mobile:ios             # Expo → iOS

macOS installation with Homebrew

Once a desktop release is published, install ViClip with:

brew tap vaaibhavmishra/viclip https://github.com/vaaibhavmishra/viclip.git
brew install --cask vaaibhavmishra/viclip/viclip

Quit ViClip before upgrading, then run brew update followed by brew upgrade --cask vaaibhavmishra/viclip/viclip. See desktop release setup for GitHub Actions configuration, publishing, and update behavior.


🧰 Available Scripts

Script Description
pnpm dev Start all dev servers in parallel
pnpm build Production build for all apps
pnpm typecheck Run TypeScript type-checking across the monorepo
pnpm check Lint & format all files with Biome (auto-fix)
pnpm clean Remove all build artifacts, caches, and node_modules

🤝 Contributing

Contributions are welcome! Here's how to get started:

  1. Fork the repository

  2. Create a feature branch:

    git checkout -b feature/amazing-feature
  3. Commit your changes using Conventional Commits:

    git commit -m "feat: add amazing feature"
  4. Push to your branch:

    git push origin feature/amazing-feature
  5. Open a Pull Request

Commit Convention

This project enforces Conventional Commits via Commitlint. All commit messages must follow the format:

type(scope?): description

Common types: feat, fix, docs, style, refactor, perf, test, build, ci, chore.

Git Hooks (Husky)

The following checks run automatically on every commit:

Hook What it does
pre-commit Runs Biome lint/format → TypeScript typecheck → Full build
commit-msg Validates commit message against Conventional Commits

⚖️ License

Distributed under the GPL-3.0 License. See LICENSE for more information.

About

Cross-platform app which sync the clipboard across devices

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages