Skip to content

Add httpperf extension - #22809

Merged
raycastbot merged 8 commits into
raycast:mainfrom
liluo:ext/httpperf
Nov 13, 2025
Merged

raycastbot merged 8 commits into
raycast:mainfrom
liluo:ext/httpperf

Conversation

@liluo

@liluo liluo commented Nov 11, 2025 •

Copy link
Copy Markdown
Contributor

Description

A powerful Raycast extension to analyze and visualize HTTP/HTTPS request performance metrics with detailed timing breakdown.

HTTP Performance Analyzer helps developers quickly measure and diagnose HTTP/HTTPS request performance directly from Raycast. It provides detailed timing information for each phase of an HTTP request, similar to browser DevTools or command-line tools like httpstat, but with a clean and intuitive interface.

✨ Key Features

  • 📊 Comprehensive Performance Metrics: Detailed breakdown of DNS lookup, TCP connection, TLS handshake, server processing, and content transfer times
  • 🎯 Performance Grading: Automatic performance evaluation (A+ to F) based on total response time
  • ✅ Visual Status Indicators: Quick status emojis (✅, ⚠️, 🔴) for each phase to identify bottlenecks at a glance
  • 🔧 Flexible Configuration: Support for custom HTTP methods (GET, POST, PUT, DELETE, HEAD, PATCH, OPTIONS) and custom headers
  • 📥 Easy Export: Copy results to clipboard in formatted text for sharing or documentation
  • 🔄 Follow Redirects: Option to follow HTTP redirects automatically
  • 🚀 Fast & Lightweight: Built on top of curl for reliable and fast performance analysis

Screencast

httpperf-1 httpperf-2

Checklist

@raycastbot raycastbot added the new extension Label for PRs with new extensions label Nov 11, 2025
@raycastbot

ghost commented Nov 11, 2025

Copy link
Copy Markdown
Collaborator

Congratulations on your new Raycast extension! 🚀

Due to our current reduced availability, the initial review may take up to 10 business days.

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

- chore: update screenshot 2 with URL display
- feat: display URL in results and remove temp PR description file
@liluo
liluo marked this pull request as ready for review November 11, 2025 07:53
@greptile-apps

ghost commented Nov 11, 2025 •

Copy link
Copy Markdown
Contributor

Greptile Overview

Greptile Summary

This PR introduces a new HTTP Performance Analyzer extension for Raycast that provides detailed timing metrics for HTTP/HTTPS requests. The extension uses curl under the hood to analyze performance phases including DNS lookup, TCP connection, TLS handshake, server processing, and content transfer times. It features a form-based input interface for configuring requests (URL, method, headers, redirect options) and displays results in a list view with visual status indicators and performance grades (A+ to F). The extension includes comprehensive documentation, proper licensing, and follows Raycast extension structure with TypeScript types defined for performance metrics and analysis options.

Important Files Changed

Filename Score Overview
extensions/httpperf/src/analyze.tsx 2/5 Main UI component with TypeScript checking completely disabled via @ts-nocheck
extensions/httpperf/tsconfig.json 1/5 TypeScript configuration with all strict type checking disabled
extensions/httpperf/src/utils/httpPerf.ts 4/5 Core HTTP performance analysis logic with microsecond conversion bug
extensions/httpperf/package.json 5/5 Well-structured extension metadata and configuration
extensions/httpperf/src/types.ts 5/5 Comprehensive TypeScript type definitions for performance metrics
extensions/httpperf/README.md 5/5 Thorough documentation with usage examples and troubleshooting
extensions/httpperf/CHANGELOG.md 5/5 Properly formatted changelog with required template string

Confidence score: 2/5

  • This PR has significant TypeScript configuration issues that undermine code quality and type safety
  • Score reflects disabled strict typing in tsconfig.json and use of @ts-nocheck in main component, plus a mathematical bug in microsecond conversion
  • Pay close attention to src/analyze.tsx and tsconfig.json files which need proper TypeScript configuration and type handling

ghost 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.

11 files reviewed, 7 comments

Edit Code Review Agent Settings | Greptile

Comment thread extensions/httpperf/src/analyze.tsx Resolved
Comment thread extensions/httpperf/src/analyze.tsx Resolved
Comment thread extensions/httpperf/src/analyze.tsx Resolved
Comment thread extensions/httpperf/src/analyze.tsx Resolved
Comment thread extensions/httpperf/LICENSE Resolved
liluo added 3 commits November 11, 2025 16:04
- chore: update screenshot 2 with improved icons
- refactor: improve icon semantics for better visual clarity
- refactor: simplify parsing logic with rest parameters
- fix: address code review comments

ghost 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.

Hi 👋

Thanks for your contribution 💪

I have now tested your extension, and I have some feedback ready for you:

  • I’m not sure arguments is the way to go if it doesn’t autoamtiacaclly run, then I would leave it out 😊

  • Could you add at least one screenshot of the extension and add them to a folder called metadata - you need to use our tool to get the right padding on the images

I'm looking forward to testing this extension again 🔥

I converted this PR into a draft until it's ready for the review, please press the button Ready for review when it's ready and we'll have a look 😊

Feel free to contact me here or at Slack if you have any questions.

@pernielsentikaer
pernielsentikaer marked this pull request as draft November 13, 2025 05:49
@liluo

ghost commented Nov 13, 2025

Copy link
Copy Markdown
Contributor Author

@pernielsentikaer

Thanks for the feedback!

I've addressed both issues:

1. Arguments - You're right, I've completely removed them since the extension doesn't auto-run. The extension now always shows the form first.

2. Screenshots - Regenerated both using the official Raycast tool with proper padding:

  • metadata/httpperf-1.png ✓
  • metadata/httpperf-2.png ✓

The PR has been updated and is ready for another review. Looking forward to your feedback! 😊

@liluo
liluo marked this pull request as ready for review November 13, 2025 07:23

ghost 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.

11 files reviewed, 2 comments

Edit Code Review Agent Settings | Greptile

Comment thread extensions/httpperf/tsconfig.json Outdated
Comment on lines +8 to +16
"strict": false,
"esModuleInterop": true,
"skipLibCheck": true,
"forceConsistentCasingInFileNames": true,
"resolveJsonModule": true,
"moduleResolution": "node",
"noImplicitAny": false,
"strictNullChecks": false,
"strictFunctionTypes": false

ghost Nov 13, 2025

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.

logic: Disabling all strict TypeScript checking defeats the purpose of using TypeScript and deviates from Raycast standards. Enable strict mode and fix type errors instead:

Suggested change
"strict": false,
"esModuleInterop": true,
"skipLibCheck": true,
"forceConsistentCasingInFileNames": true,
"resolveJsonModule": true,
"moduleResolution": "node",
"noImplicitAny": false,
"strictNullChecks": false,
"strictFunctionTypes": false
"strict": true,
"esModuleInterop": true,
"skipLibCheck": true,
"forceConsistentCasingInFileNames": true,
"resolveJsonModule": true,
"moduleResolution": "node"

Comment on lines +159 to +164
// Calculate percentages
const dnsPercent = (dnsTime / totalTime) * 100;
const tcpPercent = (tcpTime / totalTime) * 100;
const tlsPercent = (tlsTime / totalTime) * 100;
const serverPercent = (serverTime / totalTime) * 100;
const transferPercent = (transferTime / totalTime) * 100;

ghost Nov 13, 2025

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.

logic: Add safeguard for division by zero - if totalTime is 0, these percentage calculations will produce NaN

…pdate dependencies and TypeScript configuration for improved compatibility
@pernielsentikaer

ghost commented Nov 13, 2025

Copy link
Copy Markdown
Contributor

I updated the code a bit to fix all the ts-ignore warnings and updated dependencies 😊

ghost 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 🔥

@raycastbot
raycastbot merged commit b30fad6 into raycast:main Nov 13, 2025
@github-actions

ghost commented Nov 13, 2025

Copy link
Copy Markdown
Contributor

@raycastbot

ghost commented Nov 13, 2025

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.

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants