Skip to content

Add rhttp extension - #22359

Merged
raycastbot merged 3 commits into
raycast:mainfrom
SebastianJarsve:ext/rhttp
Nov 7, 2025
Merged

raycastbot merged 3 commits into
raycast:mainfrom
SebastianJarsve:ext/rhttp

Conversation

@SebastianJarsve

@SebastianJarsve SebastianJarsve commented Oct 23, 2025 •

Copy link
Copy Markdown
Contributor

Description

Screencast

Checklist

- [rhttp] chore: use npm-published zod-persist package
- Merge branch \'dev\' into \'main\' to add and fix new eslint rules
- [rhttp] chore: add no-floating-promises ESLint rule and fix all violations
- [rhttp] chore: delete unsused asset
- Merge branch \'dev\'
- Merge branch \'rhttp-pre-v1-release\' into dev
- [rhttp] feat: improve variable picker and cURL export
- [rhttp] fix: hide body field when body type is none
- [rhttp] fix: remove environment text from form view
- [rhttp] docs: add screenshots for Raycast Store listing
- [rhttp] revert: remove explicit Cmd+Shift+Enter shortcut for Run Request
- [rhttp] fix: resolve ESLint errors for v1.0.0 release
- [rhttp] docs: update CHANGELOG for v1.0.0 release
- [rhttp] docs: update README for v1.0 release
- [rhttp] refactor: code quality improvements
- [rhttp] security: exclude secret variable values from backups
- [rhttp] fix: run request shortcut to match the one used in form view
- [rhttp] docs: update help documentation
- [rhttp] feat: add cross-platform shortcuts, fix types, and add import action
- [rhttp] refactor: remove global environment concept
- [rhttp] fix: correct capitalization of cURL in copy action title
- [rhttp] fix: improve async handling, cookie compliance, and error handling
- [rhttp] Update README.md
- [rhttp] refactor: polish UI and actions for Raycast Store submission
- [rhttp] feat: upgrade to zod-persist with enhanced validation and error handling
- [rhttp] Fix license and stuff
- [rhttp] Fix linting issues
- [rhttp] Update eslint config
- [rhttp] Add temp variables to Copy variables action
- [rhttp] Cleanup response view
- [rhttp] Add toggle header and CSV support
- [rhttp] Polish UX and add consistency before v1.0 release
- [rhttp] Minor changes
- [rhttp] Cleanup types.ts
- [rhttp] Bug fix
- [rhttp] Add req url to response view
- [rhttp] Error view on import collection error
- [rhttp] Add cancel request actions
- [rhttp] Add setting to disable SSL
- Merge branch \'rhttp-pre-request-action\'
- [rhtt] Add help view
- [rhttp] Minor bugfixes
- [rhttp] Add pre-request actions
- Merge branch \'rhttp-request-form-refactor\'
- [rhttp] Cleanup
- [rhttp] Add sort requests menu
- [rhttp] Validate request before run
- [rhttp] Fix some actions
- [rhttp] Refactor index.tsx
- [rhttp] Improve cookie handling
- [rhttp] Improve error message on hydration failure
- [rhttp] Use constant to decide if body field is shown
- [rhttp] Use the new request hook in RequestList
- [rhttp] Use useReducer instead of useState
- [rhttp] Single source of truth form state
- [rhttp] Fix bug with custom header key again...
- [rhttp] Move logic into hook
- [rhttp] Add shortcut to open response in editor
- [rhttp] Add environment used to the request history
- [rhttp] Add backup action
- [rhttp] Add OpenInEditorAction
- [rhttp] Bugfix
- [rhttp] Add last active environment on collection
- [rhttp] Refactor utils
- [rhttp] Add View request action in history list view
- Merge branch \'raycards\'
- [raycards] Add reverse card action
- [rhttp] Add copy as curl action
- [raycards] Add some icons to actions
- [rhttp] Code cleanup and minor bug fixes
- [rhttp] Use the JSONExplorer
- [rhttp] Add import request from curl
- [raycards] Add help view
- [raycards] Add import/export feature
- [raycards] Add statistics view
- [raycards] Refactor ReviewSession
- [raycards] Edit cards during review
- [raycards] Fix review session due cards bug
- [raycards] Add import cards to deck
- [raycards] Add card tags
- [raycards] Show a total due cards summary
- [raycards] Initial commit
- Merge branch \'rhttp-persistent-atom\'
- [rhttp] Moved persistentAtom into its own package
- [rhttp] Fix missing clear all history
- [rhttp] Add export/import feature after the rewrite
- [rhttp] Add request / response history
- [rhttp] Add "Open in browser" action for response
- [rhttp] Fix saving new request bug
- [rhttp] Fix custom header loading bug
- Merge branch \'rhttp-rewrite\'
- [rhttp] Add ResponseActions
- [rhttp] Add a way to swap env on front page
- [rhttp] Replace baseUrl and secrets with envs and vars
- [rhttp] Implement secrets to store keys and passwords
- [rhttp] Rewrite rhttp
- [rhttp] Add json explorer for large json data
- [tools] Added ts-to-zod
- [tools] Fix typo
- [tools] Remove unused action panel for string length tool
- [tools] Add StringLength tool
- Update README.md
- [tools] Fix typo in ip tool
- [cmds] Add new icon
- Update README.md
- Create LICENSE.md
- Switch from bun to pnpm
- Update README.md
- [tools] Add tools
- [rhttp] Add bun.lockb
- [cmds] Add cmds
- [rhttp] Add rhttp
- Initial commit
@ghost ghost added the new extension Label for PRs with new extensions label Oct 23, 2025

ghost commented Oct 23, 2025

Copy link
Copy Markdown

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.

ghost commented Oct 23, 2025

Copy link
Copy Markdown
Author

Update: TypeScript Error Fixed ✅

The CI error has been resolved - onCorruption handlers are now properly async.


Note on Commit Message

This extension is developed in a monorepo, so the squashed commit message includes references to my other projects. However, this PR only contains extensions/rhttp/ files - the commit message is just messy due to shared Git history.

Happy to close and resubmit with cleaner history if preferred, or you can squash with your own message on merge. Let me know!

@ghost
ghost marked this pull request as ready for review October 23, 2025 12:45
@ghost ghost self-assigned this Oct 23, 2025

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.

Greptile Overview

Greptile Summary

This PR introduces rhttp, a comprehensive HTTP client extension for Raycast with advanced features for API testing and development.

Key Features Implemented

  • Full HTTP client - Support for GET, POST, PUT, PATCH, DELETE, and GraphQL requests with JSON and form data body types
  • Environment management - Multiple environments with variable substitution using {{placeholder}} syntax, including secret variables
  • Request chaining - Pre-request actions for authentication flows and response actions to extract data
  • Collections - Request organization with collection-level headers and sorting capabilities
  • Cookie management - RFC 6265 compliant automatic cookie handling across requests
  • Request history - Automatic tracking (up to 100 entries) with toggle to enable/disable
  • Import/Export - cURL command parsing/generation and collection JSON import/export
  • Backup/Restore - Complete data export with timestamps, properly excluding secrets for security

Technical Implementation

  • Built with TypeScript and Zod for comprehensive runtime validation
  • Uses zod-persist for persistent storage with proper async/await patterns
  • Implements proper error handling and request cancellation with AbortController
  • Includes 42 keyboard shortcuts with cross-platform support (macOS/Windows)
  • Storage adapters properly integrated with Raycast's file system and LocalStorage
  • SSL verification control via preferences for local development

Code Quality

  • Configuration: Follows Raycast standards (Prettier config with printWidth: 120, singleQuote: false, correct ESLint import paths)
  • Fix applied: The PR includes a follow-up commit (4171b6b) that correctly makes the onCorruption handler async in environments.ts
  • No Preferences interface defined (correctly autogenerated by Raycast)
  • No fetch imports (not needed, uses axios)
  • Comprehensive documentation: README with quick start, CHANGELOG with detailed release notes, in-app help with 400+ lines
  • Store submission ready: 5 screenshots in metadata folder

Architecture Highlights

  • Clean separation of concerns with dedicated stores for collections, environments, cookies, history, and settings
  • Proper validation at boundaries using Zod schemas
  • Temporary variables for request chains vs persistent environment variables
  • Cookie store organized by domain with duplicate handling

Confidence Score: 5/5

  • This PR is safe to merge - it's a well-architected, complete extension with no issues found
  • The extension demonstrates excellent code quality with proper TypeScript/Zod validation throughout, follows all Raycast coding standards (Prettier config, ESLint setup, no custom Preferences interface), includes comprehensive documentation and help resources, implements proper async/await patterns for data persistence, includes a fix for the onCorruption handler, has proper error handling and request cancellation, follows security best practices (excluding secrets from backups), and is fully ready for store submission with 5 screenshots
  • No files require special attention

Important Files Changed

File Analysis

Filename Score Overview
extensions/rhttp/package.json 5/5 Configuration file for the rhttp extension with dependencies, commands, and preferences properly defined
extensions/rhttp/README.md 5/5 Well-structured documentation with features, quick start guide, and troubleshooting
extensions/rhttp/src/store/environments.ts 5/5 Environment management with proper async onCorruption handler and initialization logic
extensions/rhttp/src/store/index.ts 5/5 Collection store with proper CRUD operations and validation using Zod schemas
extensions/rhttp/src/types.ts 5/5 Comprehensive type definitions with Zod schemas for runtime validation throughout the app
extensions/rhttp/src/hooks/use-run-request.tsx 5/5 Request execution hook with proper error handling, cancellation support, and pre-request actions
extensions/rhttp/src/utils/request-utils.ts 5/5 HTTP request utilities with variable substitution, SSL verification control, and response processing
extensions/rhttp/src/index.tsx 5/5 Main view component with proper initialization, collection management, and keyboard shortcuts
extensions/rhttp/src/views/request-form.tsx 5/5 Request form with reducer-based state management and comprehensive field handling
extensions/rhttp/src/components/actions.tsx 5/5 Action components for environments, collections, and history with proper keyboard shortcuts

41 files reviewed, no comments

Edit Code Review Agent Settings | Greptile

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 👋

Isn't this pretty much something like that https://www.raycast.com/jonathangiardino/curl by @jonathangiardino already does? Maybe we can enhance that instead?

ghost commented Oct 31, 2025

Copy link
Copy Markdown
Author

Hi @pernielsentikaer 👋
Thanks for the feedback! I understand the concern about overlap.

I actually built this because I looked at the cURL extension and realized I needed something different for my workflow. As a developer working on apps that integrate multiple APIs across different environments, I found myself needing collections to organize endpoints, environment variables to switch between Dev/Staging/Prod, and cookie management for authenticated sessions.

The contribution guidelines say "If your extension works standalone and brings something new to the Store, it's acceptable to create a new one." This extension brings collections, environment management, cookie handling, request chaining, and GraphQL support. These are new workflow capabilities that don't exist in the cURL extension.

The cURL extension is excellent for quick, stateless testing, while this extension is built for managing API projects over time with persistent storage and configuration. Both serve legitimate developer needs.

Happy to adjust the positioning or documentation to make the distinction clearer if that helps. What do you think?

ghost commented Nov 4, 2025

Copy link
Copy Markdown

I know it might be a big one, but is there a reason why we don't add this to the other extension?

Out store guidelines also says this

CleanShot 2025-11-04 at 13 04 13@2x

They are pretty similar, but I like the additions for sure

ghost commented Nov 4, 2025

Copy link
Copy Markdown
Author

I appreciate you taking the time to review this thoroughly.

I understand the concern about duplication, but I think the architectural differences here are significant enough that merging wouldn't really work well.

The main issue is that the cURL extension uses multiple root commands for quick access to different actions, which makes sense for one-off testing. rhttp is built around a single entry point with persistent context - you're always "in" a specific collection and environment. Adding rhttp's features to cURL would mean either keeping the multi-command structure (which would be confusing - how do you manage which environment you're in across separate commands?) or consolidating everything into one command, which would be a breaking change for existing users.

Beyond that, cURL is mostly stateless - it has request history, but that's about it. rhttp is built around persistent project state - collections that organize endpoints, environments with variables, stored responses, request chaining, etc. This isn't just adding new features, it would require rewriting the core architecture from "history of past requests" to "organized project management."

I get that the features overlap on the surface (both make HTTP requests), but they're really serving different workflows in my opinion. cURL is great for "let me quickly test this endpoint" while rhttp is for "I'm managing 50+ endpoints across multiple environments for an ongoing project."

I'm happy to reach out to @jonathangiardino to discuss, but honestly I think merging these would either break what makes cURL simple or create something confusing that doesn't serve either use case well.

That said, I respect the team's decision on this. Just wanted to explain why I think the architectural differences make this more complicated than just "adding features to an existing extension."

ghost commented Nov 4, 2025

Copy link
Copy Markdown

I understand and agree with your points. I'll get back to you tomorrow if we haven't heard from Jonathan 🙂

ghost commented Nov 4, 2025

Copy link
Copy Markdown

Hey @SebastianJarsve @pernielsentikaer, sorry but I haven't had much time lately to review and maintain cURL updates, @pernielsentikaer has managed most of the latest contributions.

I had a quick read at the thread, and I am totally fine if you want to just create your own extension. I am sure there was a way to integrate the ideas behind rhttp into cURL but it looks like you have already built your own idea and architecture and at this point integrating it sounds indeed like a pain. Perhaps if you built it from the beginning into cURL it would have worked, but now that it's a complete separate app it may not be convenient.

I see the scope of rhttp is way bigger than what cURL was supposed to be, also because my mindset and my idea of a Raycast extension was to either extend an existing SaaS product like many other extensions or keep it simple like cURL.

rhtttp seems to go more into a direction of a Raycast-first complex app, so it's really up to @pernielsentikaer at this point.

ghost commented Nov 6, 2025

Copy link
Copy Markdown
Author

Hey @jonathangiardino, thank you for taking the time to review this despite your busy schedule! I really appreciate your understanding of the architectural differences and your support for rhttp existing as a separate extension.

cURL is great for its simplicity and quick testing workflow - that's exactly what made me realize there was room for a more project-focused tool. Your work definitely inspired parts of rhttp's design.

To be transparent about my vision: I originally built rhttp for my own API development work and have been refining it through real-world use for quite some time before deciding to share it with the community. I'm building it to be a comprehensive API development platform within Raycast - essentially a Postman/Insomnia alternative that's fast and keyboard-driven. I'm planning features like password manager integration, dedicated auth helpers, and OpenAPI import. It's a different scope and philosophy from cURL's intentional simplicity, which is why keeping them separate makes sense architecturally.

If there's ever anything from rhttp that could benefit cURL users, feel free to reach out. Happy to collaborate if it helps the community.

Thanks again! 🙏

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 🔥

@ghost
ghost merged commit 1931677 into raycast:main Nov 7, 2025

ghost commented Nov 7, 2025

Copy link
Copy Markdown

ghost commented Nov 7, 2025

Copy link
Copy Markdown

🎉 🎉 🎉

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

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants