Skip to content

Add serialcast extension - #21795

Merged
raycastbot merged 4 commits into
raycast:mainfrom
a35hie:ext/serialcast
Oct 13, 2025
Merged

raycastbot merged 4 commits into
raycast:mainfrom
a35hie:ext/serialcast

Conversation

@a35hie

@a35hie a35hie commented Sep 25, 2025 •

Copy link
Copy Markdown
Contributor

NOTE: This is a repeat PR because the old one had problems that are now fixed but cannot be uploaded.

Description

SerialCast is a Raycast extension that allows for controlling SerialPlotter, an app I made for plotting values from the serial port (Arduino, etc.) as graphs.

SerialCast includes the ability to:

  • Start monitoring
  • Stop monitoring
  • Toggle monitoring

Screencast

Raycast Search
SerialPlotter & Raycast toast

Checklist

- add install check
- add screenshot
- add vcs.xml
- fix images and linting
- initial files
@raycastbot raycastbot added the new extension Label for PRs with new extensions label Sep 25, 2025
@raycastbot

raycastbot commented Sep 25, 2025 •

Copy link
Copy Markdown
Collaborator

Congratulations on your new Raycast extension! 🚀

You can expect an initial review within five business days.

Once the PR is approved and merged, the extension will be available on our Store.

@raycastbot

Copy link
Copy Markdown
Collaborator

This pull request has been automatically marked as stale because it did not have any recent activity.

It will be closed if no further activity occurs in the next 7 days to keep our backlog clean 😊

@raycastbot raycastbot added the status: stalled Stalled due inactivity label Oct 9, 2025
@a35hie
a35hie marked this pull request as ready for review October 9, 2025 09:43
@raycastbot raycastbot added platform: macOS and removed status: stalled Stalled due inactivity labels Oct 9, 2025

@greptile-apps greptile-apps Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Greptile Overview

Summary

This PR introduces SerialCast, a new Raycast extension that provides remote control functionality for SerialPlotter, a macOS application for plotting serial port data from Arduino and other devices. The extension implements three no-view commands (start, stop, toggle monitoring) that communicate with SerialPlotter through custom URL schemes (`serialplotter://`).

The extension architecture follows a clean, shared utility pattern where all three commands import and call a centralized openSerialPlotterUrl function from utils.ts. This utility handles application detection by checking for SerialPlotter's bundle ID, opens the appropriate URL scheme, and provides user-friendly error handling with toast notifications. When SerialPlotter is not installed, users receive an actionable error message with a link to the GitHub releases page.

The extension is appropriately restricted to macOS platforms via the package.json platforms field, reflecting SerialPlotter's platform availability. All commands are implemented as no-view commands since they perform simple trigger actions that don't require user interface components - they communicate with the external application and display success/failure notifications.

The codebase demonstrates good separation of concerns with TypeScript compilation configured for ES2023, proper error handling throughout, and consistent patterns across all command files. The extension integrates seamlessly with Raycast's ecosystem by leveraging standard APIs like getApplications(), open(), and showToast().

Changed Files
Filename Score Overview
extensions/serialcast/package.json 5/5 Defines extension metadata with three no-view commands and macOS platform restriction
extensions/serialcast/src/utils.ts 4/5 Implements shared utility for SerialPlotter URL handling with application detection and error handling
extensions/serialcast/src/start.ts 5/5 Implements start monitoring command using shared utility pattern
extensions/serialcast/src/stop.ts 5/5 Implements stop monitoring command using shared utility pattern
extensions/serialcast/src/toggle.ts 5/5 Implements toggle monitoring command using shared utility pattern
extensions/serialcast/CHANGELOG.md 5/5 Initial changelog entry with proper {PR_MERGE_DATE} template format
extensions/serialcast/tsconfig.json 5/5 Standard TypeScript configuration for Raycast extension development
extensions/serialcast/eslint.config.cjs 5/5 Standard ESLint configuration following Raycast template
extensions/serialcast/.prettierrc 3/5 Prettier configuration with non-standard semicolon settings
extensions/serialcast/.gitignore 5/5 Standard gitignore for Raycast extension development

Confidence score: 4/5

  • This PR is safe to merge with minor formatting considerations but poses minimal functional risk
  • Score reflects solid architecture and proper error handling, but lowered due to Prettier configuration deviation from Raycast standards
  • Pay close attention to extensions/serialcast/.prettierrc which uses non-standard semicolon settings

Context used:

Context from dashboard - In Raycast extensions, ensure to use a consistent configuration for Prettier, specifically 'printWid... (source)

10 files reviewed, 2 comments

Edit Code Review Agent Settings | Greptile

Comment thread extensions/serialcast/.prettierrc Resolved
Comment thread extensions/serialcast/src/utils.ts Outdated
Comment on lines +16 to +18
} catch {
await showToast(Toast.Style.Failure, "Failed to open URL.")
}

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

style: Could be simplified using showFailureToast from @raycast/utils instead of manual showToast with failure style

Per Nielsen Tikær and others added 2 commits October 13, 2025 15:03
Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
- Updated @raycast/utils to version ^2.0.1.
- Updated @raycast/eslint-config to version ^2.1.1.
- Updated various dependencies to their latest versions, including eslint and typescript-related packages.
- Added semicolons for consistent code formatting in start.ts, stop.ts, and toggle.ts.
- Enhanced error handling in utils.ts with showFailureToast for better user feedback.

@pernielsentikaer pernielsentikaer left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me, approved 🔥

@a35hie

a35hie commented Oct 13, 2025

Copy link
Copy Markdown
Contributor Author

Looks good to me, approved 🔥

tyy!!

@raycastbot
raycastbot merged commit 1037220 into raycast:main Oct 13, 2025
@github-actions

Copy link
Copy Markdown
Contributor

@raycastbot

Copy link
Copy Markdown
Collaborator

🎉 🎉 🎉

Such a great contribution deserves a reward, but unfortunately we couldn't find your Raycast account based on your GitHub username (@asboy2035).

Please link your GitHub account to your Raycast account to receive your credits and soon be able to exchange them for some swag.

tktcorporation added a commit to tktcorporation/extensions that referenced this pull request Nov 2, 2025