Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[feature] refactor screenpipe architecture #1345

Open
louis030195 opened this issue Feb 13, 2025 · 0 comments
Open

[feature] refactor screenpipe architecture #1345

louis030195 opened this issue Feb 13, 2025 · 0 comments
Labels
enhancement New feature or request

Comments

@louis030195
Copy link
Collaborator

atm:

  • CLI
    • core
      • vision (OCR, UI, screenshot, mp4 encoding, DB)
      • audio (VAD, diarization, transcription, mp4 encoding, DB)
    • API server
    • pipes

what we should have:

  • API server runs all the time, no matter things are being recorded or not
  • pipes runs all the time, no matter things are being recorded or not
  • vision and audio clearly separated and can be started / stopped easily, quickly, with smooth shutdown
  • things correctly stop themselves when parent is hard killed, or soft stopped

something like

screenpipe
├── api-server (always running)
│   ├── REST endpoints
│   └── WebSocket connections
├── core-services
│   ├── vision-service
│   │   ├── screenshot
│   │   ├── ocr, ui
│   │   └── video encoding
│   └── audio-service
│       ├── vad
│       ├── diarization
│       └── transcription
└── pipe-runner (always running)
    └── plugin management

screenpipe-api    # always running, lightweight
screenpipe-vision # heavy CPU/GPU usage
screenpipe-audio  # heavy CPU/GPU usage
screenpipe-pipes  # sandboxed plugins

maybe it should be different binaries, etc.

maybe we should run a whisper API also?

@EzraEllette @neo773 @ologbonowiwi @tribhuwan-kumar

thoughts?

@louis030195 louis030195 added the enhancement New feature or request label Feb 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant