Skip to content

Add parachord extension - #26142

Merged
raycastbot merged 5 commits into
raycast:mainfrom
jherskowitz:ext/parachord
Mar 31, 2026
Merged

raycastbot merged 5 commits into
raycast:mainfrom
jherskowitz:ext/parachord

Conversation

@jherskowitz

@jherskowitz jherskowitz commented Mar 8, 2026 •

Copy link
Copy Markdown
Contributor

Description

Parachord Raycast Extension

A full-featured Raycast extension for controlling the [Parachord](https://parachord.com) music player directly from your launcher — play, pause, skip, search, queue tracks, and chat with the AI DJ without leaving your workflow.

Architecture

All commands communicate with the Parachord desktop app via an HTTP bridge on localhost:8888, which proxies parachord:// protocol URLs. This provides robust error handling — the extension detects whether Parachord is running and shows helpful error toasts when it isn't.

Commands (11 total)

Playback Controls (no-view, instant execution):

  • Play/Pause — Toggle playback
  • Next Track / Previous Track — Skip forward or back
  • Toggle Shuffle — On/off with persistent state via Raycast LocalStorage
  • Collection Radio — Shuffle and play your entire library

Search & Queue (form-based UI):

  • Search & Play — Smart input parsing supports Artist - Track, Track by Artist, and freeform search queries
  • Add to Queue — Same smart parsing, queues tracks without interrupting playback

AI DJ (form-based UI):

  • AI DJ Chat — Natural language music control with 8 quick prompt presets (chill, upbeat, focus, nostalgic, etc.)

Navigation & Utility:

  • Open Artist — Jump directly to an artist page
  • Set Volume — Visual list UI with 11 levels (Mute → 100%) and contextual speaker icons
  • Clear Queue — Destructive action with confirmation dialog
  • Open Parachord — Launch the main app window

Notable Features

  • Smart input parsing via parseArtistTrack() — handles hyphens, en-dashes, em-dashes, and "by" syntax
  • Graceful error handling with distinct toasts for "app not running" vs. command failures
  • All commands provide HUD feedback on success
  • Destructive actions (Clear Queue) require user confirmation
  • Launch arguments allow direct command invocation from Raycast

Screencast

Checklist

- Sync from monorepo
- Sync from parachord monorepo (521030d): Merge pull request raycast#661 from Parachord/claude/add-store-links-XhB7s
- Sync from parachord monorepo (60073a2): Merge pull request raycast#659 from Parachord/claude/add-store-links-XhB7s
- Sync from parachord monorepo (41f9848): Merge pull request raycast#656 from Parachord/claude/add-store-links-XhB7s
- Sync from parachord monorepo (62797f8): Merge pull request raycast#655 from Parachord/claude/add-store-links-XhB7s
- Sync from parachord monorepo (d2f1d73): Merge pull request raycast#218 from Parachord/claude/sync-repos-changes-0xF6F
- Initial commit
@raycastbot raycastbot added the new extension Label for PRs with new extensions label Mar 8, 2026
@raycastbot

Copy link
Copy Markdown
Collaborator

Congratulations on your new Raycast extension! 🚀

We're currently experiencing a high volume of incoming requests. As a result, the initial review may take up to 10-15 business days.

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

- add changelog
- Sync from monorepo
- Sync from parachord monorepo (193b8ef): Merge pull request raycast#662 from Parachord/claude/add-store-links-XhB7s
- Sync from monorepo
@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 Mar 22, 2026
@jherskowitz

Copy link
Copy Markdown
Contributor Author

To the best of my knowledge this doesn't need anything else?

@raycastbot raycastbot removed the status: stalled Stalled due inactivity label Mar 22, 2026
@jherskowitz
jherskowitz marked this pull request as ready for review March 30, 2026 20:20
@greptile-apps

greptile-apps Bot commented Mar 30, 2026

Copy link
Copy Markdown
Contributor

Greptile Summary

This PR introduces the Parachord extension — 11 commands that control the Parachord music player via an HTTP bridge on localhost:8888. The architecture is clean and the error-handling strategy (catching all network errors inside openParachord and surfacing them as Toasts) is generally sound, but there is a consistent misuse of that pattern across most view/no-view commands.

Key issues to address before merge:

  • Unconditional showHUD calls (P1): Several commands call showHUD in a separate statement after openParachord instead of passing it as the hudMessage argument. Because openParachord swallows all errors internally, this means the success HUD fires even when Parachord is not running, contradicting the failure Toast. Affected files: collection-radio.ts, volume.tsx, add-to-queue.tsx, ai-chat.tsx, search-play.tsx, open-artist.tsx. The sibling commands (next-track.ts, previous-track.ts, play-pause.ts, open-parachord.ts, clear-queue.ts) already use the correct pattern.

  • Missing metadata/ folder (P1): The extension ships five view-type commands but no store screenshots under extensions/parachord/metadata/. This is required before the extension can be published to the Raycast store.

  • Manually defined Arguments interfaces (P2): interface Arguments is hand-written in add-to-queue.tsx, ai-chat.tsx, open-artist.tsx, and search-play.tsx. These are auto-generated in raycast-env.d.ts and should not be duplicated manually.

  • Missing Prettier configuration (P2): No .prettierrc exists at the extension level. The code appears formatted at printWidth: 80; extensions are required to use printWidth: 120, singleQuote: false.

Confidence Score: 4/5

Not ready to merge — missing store screenshots and misleading success feedback on command failure.

Two P1 issues: (1) unconditional showHUD calls that contradict failure Toasts across 6 files, and (2) absence of required metadata/ store screenshots. The fixes are straightforward but must be done before the extension goes live.

All view-command source files (add-to-queue.tsx, ai-chat.tsx, search-play.tsx, open-artist.tsx, volume.tsx) and collection-radio.ts for the HUD issue; package.json / root for the missing metadata/ folder.

Important Files Changed

Filename Overview
extensions/parachord/src/utils.ts Core HTTP bridge and parsing utilities; solid error handling, but the hudMessage being inside the try block is the correct pattern — callers that bypass it and call showHUD separately create misleading success feedback on failure.
extensions/parachord/src/collection-radio.ts Calls showHUD unconditionally after openParachord, showing a success message even when Parachord is not running; should pass the message via hudMessage parameter instead.
extensions/parachord/src/add-to-queue.tsx Contains manually defined Arguments interface (rule violation) and calls showHUD unconditionally after openParachord; logic otherwise correct.
extensions/parachord/src/ai-chat.tsx Manual Arguments interface and unconditional showHUD calls in both handleSubmit and handleQuickPrompt; also unconditionally appends "..." to the HUD message even for short prompts.
extensions/parachord/src/search-play.tsx Manual Arguments interface and both branches of handleSubmit call showHUD unconditionally after openParachord.
extensions/parachord/src/open-artist.tsx Manual Arguments interface and showHUD called unconditionally after openParachord in handleSubmit.
extensions/parachord/src/volume.tsx showHUD called unconditionally in handleSelect; otherwise the list UI with emoji icons is a nice touch.
extensions/parachord/src/next-track.ts Correct pattern — hudMessage passed directly to openParachord so feedback is only shown on success.
extensions/parachord/src/clear-queue.ts Correct destructive-action confirmation dialog with Alert.ActionStyle.Destructive and hudMessage passed to openParachord.
extensions/parachord/package.json Well-formed manifest with appropriate Media + Productivity categories, but is missing the required metadata/ folder for its view-type commands.
Prompt To Fix All With AI
This is a comment left during a code review.
Path: extensions/parachord/src/collection-radio.ts
Line: 5-6

Comment:
**Success HUD shown even when command fails**

`openParachord` catches all errors internally (showing a failure Toast) and returns normally. This means `showHUD("Starting Collection Radio")` is called unconditionally — even when Parachord is not running — giving the user contradictory feedback: a success HUD alongside a "Parachord not running" Toast.

The correct pattern (already used in `next-track.ts`, `previous-track.ts`, `play-pause.ts`, etc.) is to pass the `hudMessage` directly to `openParachord` so it's only displayed on success:

```suggestion
  await openParachord("collection-radio", [], {}, "Starting Collection Radio");
```

The same issue exists in every file that calls `showHUD` in a separate statement after `openParachord`:
- `src/volume.tsx` line ~21-22 (`handleSelect`)
- `src/add-to-queue.tsx` line ~46-49 (`handleSubmit`)
- `src/ai-chat.tsx` lines ~44-51 (`handleSubmit` and `handleQuickPrompt`)
- `src/search-play.tsx` lines ~51-60 (`handleSubmit` both branches)
- `src/open-artist.tsx` lines ~29-30 (`handleSubmit`)

All of these should pass the HUD string into `openParachord` instead of calling `showHUD` afterwards.

How can I resolve this? If you propose a fix, please make it concise.

---

This is a comment left during a code review.
Path: extensions/parachord/src/add-to-queue.tsx
Line: 13-15

Comment:
**Manually defined `Arguments` interface**

Per Raycast extension guidelines, `Argument` interfaces (like `Preferences`) should not be manually defined — they are auto-generated in `raycast-env.d.ts` when the extension runs. Manual definitions can drift out of sync with the actual configuration in `package.json`.

```suggestion

```

Then use the auto-generated type:
```ts
export default function Command(props: LaunchProps<{ arguments: Arguments.AddToQueue }>) {
```

The same issue exists in:
- `src/ai-chat.tsx` lines 7–9 — `interface Arguments { prompt?: string; }`
- `src/open-artist.tsx` lines 13–15 — `interface Arguments { artist?: string; }`
- `src/search-play.tsx` lines 13–15 — `interface Arguments { query?: string; }`

**Rule Used:** What: Don't manually define `Preferences` for `get... ([source](https://app.greptile.com/review/custom-context?memory=d93fc9fb-a45d-4479-a6a4-b1b4af98ebc8))

How can I resolve this? If you propose a fix, please make it concise.

---

This is a comment left during a code review.
Path: extensions/parachord/package.json
Line: 1-5

Comment:
**Missing `metadata/` folder with store screenshots**

The extension includes multiple view-type commands (`search-play`, `add-to-queue`, `ai-chat`, `open-artist`, `volume`), which means a `metadata/` folder containing Raycast-styled screenshots is required before the extension can be published to the store.

Please add `extensions/parachord/metadata/` with at least one screenshot per view command. See the [Raycast documentation](https://developers.raycast.com/basics/prepare-an-extension-for-store#screenshots) for the required dimensions and format.

**Rule Used:** What: Extensions with view-type commands must incl... ([source](https://app.greptile.com/review/custom-context?memory=87059ac1-c601-487f-9f1c-bce8a3cb6209))

How can I resolve this? If you propose a fix, please make it concise.

---

This is a comment left during a code review.
Path: extensions/parachord/package.json
Line: 1-5

Comment:
**Missing Prettier configuration**

All Raycast extensions must include a `.prettierrc` with `printWidth: 120` and `singleQuote: false`. No such file exists in this extension. Looking at formatting in `src/utils.ts`, lines like:

```ts
    const data = await response
      .json()
      .catch(() => ({}) as { error?: string });
```

suggest the code was formatted with the default `printWidth: 80`. Please add a `.prettierrc` at `extensions/parachord/.prettierrc`:

```json
{
  "printWidth": 120,
  "singleQuote": false
}
```

Then re-run `npm run fix-lint` to reformat the source files.

**Rule Used:** What: All extensions must use the standard Raycast... ([source](https://app.greptile.com/review/custom-context?memory=7be27780-7fcb-4602-9122-17c47fdd52ee))

How can I resolve this? If you propose a fix, please make it concise.

Reviews (1): Last reviewed commit: "Update parachord extension" | Re-trigger Greptile

Comment thread extensions/parachord/package.json Resolved
Comment thread extensions/parachord/package.json Resolved
- Resize metadata screenshots to 2000x1250 for Raycast Store
- Merge pull request raycast#3 from Parachord/claude/raycast-store-feedback-MPEdD
- Remove .DS_Store and add it to .gitignore
- Add metadata screenshots
- Merge pull request raycast#2 from Parachord/claude/raycast-store-feedback-MPEdD
- Fix play/pause to track state and send correct command
- Merge pull request raycast#1 from Parachord/claude/raycast-store-feedback-MPEdD
- Add .gitignore and update package-lock.json
- Fix Raycast store review feedback: HUD reliability, types, and formatting
- Sync from parachord monorepo (f97855e): Merge pull request raycast#685 from Parachord/sync/raycast-extension-20260311
@0xdhrv 0xdhrv self-assigned this Mar 31, 2026
- Added macOS platform support in package.json
- Downgraded version from 1.0.1 to 1.0.0
- Updated dependencies and devDependencies for better compatibility
- Modified build script for improved functionality
- Enhanced TypeScript configuration by including DOM library
- Introduced ESLint configuration for consistent code quality
- Added new metadata images for visual enhancement

@0xdhrv 0xdhrv left a comment

Copy link
Copy Markdown
Member

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 ✅

@raycastbot
raycastbot merged commit 2becb4e into raycast:main Mar 31, 2026
2 checks passed
@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 (@jherskowitz).

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

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

Labels

new extension Label for PRs with new extensions platform: macOS

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants