Skip to content

Add ram-prices extension - #26564

Merged
raycastbot merged 4 commits into
raycast:mainfrom
alexi-build:ext/ram-prices
Apr 1, 2026
Merged

raycastbot merged 4 commits into
raycast:mainfrom
alexi-build:ext/ram-prices

Conversation

@alexi-build

@alexi-build alexi-build commented Mar 22, 2026 •

Copy link
Copy Markdown
Contributor

Description

Track DDR4 and DDR5 market pricing from RamRadar in Raycast.

Calling this one ram-prices because I anticipate that the API for the data may change in the future.

Commands

  • Show Market Trends shows DDR4 and DDR5 pricing in a searchable list.
  • Market Trends Menu Bar shows the latest prices in the Raycast menu bar.

Show Market Trends

The main command includes:

  • latest average price per GB for each memory generation
  • trend direction, tracked product count, and latest date
  • a detail pane with recent history and metadata
  • actions to show or hide details, refresh data, copy the latest price, and open the source site

Screencast

Raycast 2026-03-22 at 19 42 56 ram-prices-1 ram-prices-2

Checklist

@raycastbot raycastbot added the new extension Label for PRs with new extensions label Mar 22, 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.

@alexi-build
alexi-build marked this pull request as ready for review March 22, 2026 23:43
@greptile-apps

greptile-apps Bot commented Mar 22, 2026

Copy link
Copy Markdown
Contributor

Greptile Summary

This PR adds a new ram-prices extension that fetches DDR4/DDR5 market pricing from the RamRadar API and surfaces it as both a searchable list view and a menu bar command. The implementation is clean and well-structured — runtime validation of API responses, proper caching via withCache + useCachedPromise, consistent error handling, and thorough edge-case coverage in the formatting utilities.

Two issues to address before merging:

  • Missing categories field in package.json — required for Raycast store publishing; "Finance" is the correct category for a market pricing tracker.
  • Unformatted price in menu bar title — market-trends-menu-bar.tsx builds the title with the raw avgPricePerGb float ($${entry.latest.avgPricePerGb}) instead of the formatUsdPerGb helper used everywhere else, which can produce unrounded values like DDR5 $5.123456789 in the menu bar.

Confidence Score: 4/5

  • Safe to merge after adding the required categories field and fixing the menu bar title formatting.
  • The extension logic is solid with good API validation, caching, and error handling. Only one blocking issue (missing required categories) and one minor formatting inconsistency remain.
  • extensions/ram-prices/package.json (missing categories) and extensions/ram-prices/src/market-trends-menu-bar.tsx (unformatted price in title).

Important Files Changed

Filename Overview
extensions/ram-prices/package.json Missing required categories field — extension will fail Raycast store validation without it. "Finance" is the correct category for a market pricing tracker.
extensions/ram-prices/src/api/ramradar.ts Clean API layer with solid runtime validation (isRamRadarPoint, parseSeries, parseRamRadarResponse) and correct use of native fetch (no import needed in Node 21+).
extensions/ram-prices/src/market-trends-menu-bar.tsx Menu bar command is functional, but the title uses the raw avgPricePerGb float instead of formatUsdPerGb, resulting in inconsistently formatted price strings.
extensions/ram-prices/src/show-market-trends.tsx Well-structured list view with proper loading, empty, and detail states; uses consistent helpers throughout.
extensions/ram-prices/src/utils/format.ts Formatting utilities are clean and handle edge cases (undefined values, sign prefix for percent). Locale is hardcoded to en-US which is appropriate for Raycast (US English only).
extensions/ram-prices/src/data/get-market-trends.ts Data transformation layer is correct; sorts history by date string (ISO format, safe), computes change percent defensively, and applies 1-hour cache via withCache.
extensions/ram-prices/src/hooks/use-market-trends.ts Simple hook wrapping useCachedPromise with error toast; keepPreviousData: true provides a good UX on refresh.
extensions/ram-prices/src/presentation/market-trend-detail.ts Markdown detail pane builder is straightforward; limits history to the last 10 points and handles empty history gracefully.
extensions/ram-prices/src/types/market-trends.ts Type definitions are clear. RamRadarPoint and MarketTrendPoint share the same shape, which could be unified, but this is a minor nitpick with no functional impact.
Prompt To Fix All With AI
This is a comment left during a code review.
Path: extensions/ram-prices/package.json
Line: 1-12

Comment:
**Missing `categories` field**

The `package.json` has no `categories` field, which is required for Raycast store publication. Since this extension tracks RAM market pricing (DDR4/DDR5 average prices), the most appropriate category is `"Finance"`.

```suggestion
{
  "$schema": "https://www.raycast.com/schemas/extension.json",
  "name": "ram-prices",
  "title": "RAM Prices",
  "description": "Track DDR4 and DDR5 market pricing from RamRadar.",
  "icon": "extension-icon.png",
  "author": "alexi.build",
  "categories": ["Finance"],
  "platforms": [
    "macOS",
    "Windows"
  ],
```

**Rule Used:** What: Assign at least one predefined category to e... ([source](https://app.greptile.com/review/custom-context?memory=f49debbf-b6f6-4c0d-9b35-e1927815992b))

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/ram-prices/src/market-trends-menu-bar.tsx
Line: 9-11

Comment:
**Unformatted price in menu bar title**

The menu bar title uses the raw floating-point number (`$${entry.latest.avgPricePerGb}`) rather than the `formatUsdPerGb` helper used everywhere else. This will display unrounded values (e.g. `DDR5 $5.123456789`) instead of the consistently formatted `$5.12/GB`. Consider using `formatUsdPerGb` (or at minimum `formatUsd`) for consistency:

```suggestion
  const title =
    series.length > 0
      ? series.map((entry) => `${entry.generation} ${formatUsdPerGb(entry.latest.avgPricePerGb)}`).join(" · ")
      : "RAM Trends";
```

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

Reviews (1): Last reviewed commit: "init" | Re-trigger Greptile

Comment thread extensions/ram-prices/package.json Resolved
@0xdhrv 0xdhrv self-assigned this Apr 1, 2026
- Added note about `Market Trends Menu Bar` command being macOS only.
- Updated pricing format in the menu bar to use a consistent currency formatting function.
- Removed redundant category from package.json for better classification.

@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 840e5a9 into raycast:main Apr 1, 2026
@github-actions

github-actions Bot commented Apr 1, 2026

Copy link
Copy Markdown
Contributor

@raycastbot

Copy link
Copy Markdown
Collaborator

🎉 🎉 🎉

We've rewarded your Raycast account with some credits. You will soon be able to exchange them for some swag.

@alexi-build
alexi-build deleted the ext/ram-prices branch April 1, 2026 23:00
ariesly15 pushed a commit to ariesly15/raycast-extensions that referenced this pull request Apr 2, 2026
- chore: 更新 delink 扩展的版本信息为初始发布版
- docs: 调整 delink 扩展快捷键说明顺序
- Merge branch \'raycast:main\' into main
- Update CODEOWNERs (2134dff)
- Update hetzner extension (raycast#26705)
- Update CODEOWNERs (840e5a9)
- Add ram-prices extension (raycast#26564)
- Update CODEOWNERs (45fad15)
- Add habitica-todos extension (raycast#26446)
- Update CODEOWNERs (3e686e1)
- Add Bundles extension (raycast#25680)
- Update CODEOWNERs (f6261fd)
- Update tmux-cheatsheet extension (raycast#26379)
- Changelog Alignment (raycast#26824)
- Update prism-launcher extension (raycast#26816)
ariesly15 pushed a commit to ariesly15/raycast-extensions that referenced this pull request Apr 10, 2026
- feat[extensions/qq-mail]: 添加QQ邮箱扩展及配置文件
- Merge branch \'raycast:main\' into main
- Update CODEOWNERs (9944a1b)
- [XKCD Comics] Add viewing history (raycast#26704)
- refactor: 增加useCallback并更新tsconfig配置
- Update CODEOWNERs (9b7c8a4)
- Add Kafka UI extension (raycast#26259)
- Merge branch \'raycast:main\' into main
- refactor: 简化 Action.CopyToClipboard 组件调用 (url-parse.tsx)
- chore: 移除 delink 扩展中的图标配置项
- chore: 删除图标文件并更新配置引用新图标
- Update CODEOWNERs (756e9da)
- Update ascii-art-wallpaper extension (raycast#26707)
- Update CODEOWNERs (23ee8a8)
- Add paper-agent extension (raycast#26367)
- Merge branch \'raycast:main\' into main
- chore: 更新 delink 扩展变更日志并移除旧版本记录
- Update CODEOWNERs (768930b)
- Add nocal extension (raycast#26482)
- Update CODEOWNERs (7c0e492)
- Add caaals extension (raycast#26443)
- Merge branch \'raycast:main\' into main
- docs: 更新 delink 扩展文档及快捷键说明
- Update CODEOWNERs (41a12f0)
- Update mirror-displays extension (raycast#26445)
- chore: 更新 delink 扩展的版本信息为初始发布版
- docs: 调整 delink 扩展快捷键说明顺序
- Merge branch \'raycast:main\' into main
- feat:up
- Update CODEOWNERs (2134dff)
- Update hetzner extension (raycast#26705)
- Update CODEOWNERs (840e5a9)
- Add ram-prices extension (raycast#26564)
- Update CODEOWNERs (45fad15)
- Add habitica-todos extension (raycast#26446)
- Update CODEOWNERs (3e686e1)
- Add Bundles extension (raycast#25680)
- Update CODEOWNERs (f6261fd)
- Update tmux-cheatsheet extension (raycast#26379)
- Changelog Alignment (raycast#26824)
- Update prism-launcher extension (raycast#26816)
- Merge branch \'raycast:main\' into main
- feat: add metadata folder and language setting
- Update picgo extension (raycast#26818)
- Update CODEOWNERs (bd7023d)
- Add clockodo extension (raycast#26432)
- feat: add raycast extension delink
- Update CODEOWNERs (868aef4)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants