Repository navigation
Add skyscanner-flights extension - #22646
Conversation
- Add extension screenshots for Raycast Store submission - Remove airplane icons from airport dropdown items - Revert time-based dynamic icons - Add time-based dynamic icons for airport dropdowns - Remove Levenshtein fuzzy search - Add autofocus to origin airport field - Add fuzzy search with Levenshtein distance - Prepare for Raycast Store submission - Improve UX: Auto-detect trip type and clarify Skyscanner integration - Prepare extension for submission - feat: update codebase - Initial commit: Raycast Skyscanner extension
commented
Nov 4, 2025
|
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. |
left a comment
There was a problem hiding this comment.
Greptile Overview
Greptile Summary
This PR adds a new Skyscanner Flight Search extension that allows users to quickly search for flights directly from Raycast. The extension provides a form-based interface where users can specify origin/destination airports (with fuzzy search through a local database of 6,000+ airports), select departure/return dates, trip type, and passenger count. Once submitted, it constructs a Skyscanner URL and opens it in the browser with pre-filled search parameters. The extension includes comprehensive airport data sourced from OpenFlights, proper TypeScript configuration, ESLint/Prettier setup, and follows standard Raycast extension patterns with form validation and error handling.
PR Description Notes:
- The description section is empty and should explain what the new extension does
- Missing screencast/screenshot as requested in the template
Important Files Changed
| Filename | Score | Overview |
|---|---|---|
| extensions/skyscanner-flights/.gitignore | 5/5 | Standard .gitignore file with comprehensive rules for Node.js/TypeScript projects |
| extensions/skyscanner-flights/src/data/README.md | 5/5 | Documentation for airport data source, structure, and usage instructions |
| extensions/skyscanner-flights/tsconfig.json | 5/5 | Standard TypeScript configuration with ES2023 target and React JSX support |
| extensions/skyscanner-flights/README.md | 5/5 | Comprehensive user documentation with features, usage, and setup instructions |
| extensions/skyscanner-flights/package.json | 4/5 | Extension manifest with proper structure but missing metadata folder screenshots |
| extensions/skyscanner-flights/src/search-flights.tsx | 4/5 | Main extension logic with form handling, validation, and Skyscanner URL construction |
| extensions/skyscanner-flights/CHANGELOG.md | 5/5 | Properly formatted changelog with required merge date template |
| extensions/skyscanner-flights/eslint.config.js | 5/5 | Standard Raycast ESLint configuration setup |
| extensions/skyscanner-flights/.prettierrc | 5/5 | Code formatting configuration following Raycast conventions |
Confidence score: 4/5
- This extension appears safe to merge with only minor issues that should be addressed before store publication
- Score reflects good overall structure and implementation but missing required metadata screenshots and empty PR description, plus some validation edge cases in the main component
- Pay close attention to package.json (missing metadata screenshots) and search-flights.tsx (form validation and error handling)
9 files reviewed, 1 comment
commented
Nov 4, 2025
|
@greptile-apps need a review again |
left a comment
There was a problem hiding this comment.
Now I'll review the main search functionality and provide a comprehensive review:
Code Review: Skyscanner Flights Extension
Overall Structure ✅
The extension follows Raycast conventions well with proper file organization, configuration, and TypeScript usage.
Key Strengths ✅
- Comprehensive Airport Database: 6,000+ airports with proper data structure
- Good User Experience: Intuitive form with autocomplete and validation
- Proper Error Handling: Uses
showFailureToastfor validation errors - Clean Code Structure: Well-separated concerns with data, components, and utilities
Issues Found 🚨
1. Critical Performance Issue - Large Bundle Size
The airports.ts file contains 6,054 airports inline, making it ~671KB. This will significantly impact extension load time.
Recommendation:
// Move airport data to a separate JSON file or use lazy loading
// Consider implementing server-side search or chunked loading
2. Search Function Missing
The searchAirportsLocal function is imported but not defined in the airports file.
Needs Fix: Add the search function to airports.ts:
export function searchAirportsLocal(query: string): Airport[] {
const lowerQuery = query.toLowerCase();
return airports
.filter(airport =>
airport.iata.toLowerCase().includes(lowerQuery) ||
airport.name.toLowerCase().includes(lowerQuery) ||
airport.city.toLowerCase().includes(lowerQuery) ||
airport.country.toLowerCase().includes(lowerQuery)
)
.slice(0, 50); // Limit results for performance
}3. Form Validation Logic Issue
The validation assumes the selected value will be a 3-letter code, but the dropdown value is already the IATA code.
Current Issue:
if (!origin || origin.length !== 3) {
// This validation is redundant since dropdown only allows valid IATA codes
}4. Date Handling Enhancement
Consider adding minimum date validation to prevent past dates:
// Add to form validation
if (values.date < new Date()) {
await showFailureToast({
title: "Invalid Date",
message: "Departure date cannot be in the past",
});
return;
}5. Loading State Management
The loading state is set but never properly reset in all scenarios.
Minor Improvements 📝
- Form Field Ordering: Consider reordering return date after departure date for better UX
- Default Values: The adults field could have better default handling
- URL Construction: Could be more readable with URL constructor
- Type Safety: The
FormValuesinterface could be more specific about date requirements
Configuration Files ✅
- ESLint config looks good
- Package.json properly configured
- TypeScript config appropriate
- Proper gitignore
Suggestions for Optimization 🔧
- Implement Progressive Search: Only show airports after 2+ characters typed
- Add Recent Searches: Cache recent airport selections
- Improve Bundle Size: Consider external airport API or chunked data loading
- Add Form Persistence: Save form state between sessions
Security & Privacy ✅
- No sensitive data handling
- External URLs properly constructed
- No API keys or credentials needed
The extension is well-built overall but has a critical performance issue with the large inline airport dataset that should be addressed before publishing.
- chore: update params in catch - chore: update error lint - Remove form persistence feature - Add form validation and persistence improvements
- chore: fix linting - chore: remove console logs - chore: add logging
- chore: update screenshots - chore: update with ai features - feat: update with ai prompt
- chore: update metadata - feat: add separate manual form command and refactor shared utilities
commented
Nov 4, 2025
|
@greptile-apps check the pr again |
left a comment
There was a problem hiding this comment.
I've reviewed the PR for the new skyscanner-flights extension. This is a well-structured extension that allows users to search for flights using either natural language (with AI parsing) or a manual form. Here are the key observations:
Strengths
✅ Well-organized code structure with proper separation of concerns:
- Components in
/components - Utilities in
/utils - Data handling in
/data
✅ Good error handling and fallbacks - gracefully falls back to manual form when AI parsing fails
✅ Comprehensive airport database with 6,000+ airports and efficient local search
✅ User-friendly features:
- Natural language processing for flight queries
- Type-ahead airport search
- Date validation
- Round-trip detection
✅ Proper validation for all form inputs (dates, passenger count, airport codes)
Areas for Review
- Making the token configurable or removing analytics entirely
- Ensuring user privacy compliance
- The current implementation generates random distinct_ids
airports.ts file appears to be quite large (not shown in diff). Consider:
- Verifying the file size doesn't impact extension performance
- Ensuring it's properly optimized for search
Code Quality
The code follows good TypeScript practices with:
- Proper type definitions
- Clean component separation
- Consistent error handling
- Good use of Raycast APIs
Functionality
The extension provides a smooth user experience with:
- AI-powered natural language search (requires Raycast Pro)
- Manual form fallback for all users
- Direct integration with Skyscanner.com
- Comprehensive airport search capabilities
Overall, this is a solid extension that follows Raycast best practices and provides genuine value to users planning travel. The fallback mechanisms ensure it works for all users regardless of their Raycast subscription level.
- chore: fix linting - feat: update with major cities
|
the documentation shares the following snippet for handling errors - https://developers.raycast.com/information/best-practices#handle-errors but the greptile bot flags an optimisation here to use |
commented
Nov 5, 2025
|
@greptile-apps check the pr again |
left a comment
There was a problem hiding this comment.
Looking at this PR for the skyscanner-flights extension, I can see it's a comprehensive flight search extension with natural language processing capabilities and a fallback manual form. Let me review the key aspects:
Overall Assessment
This is a well-structured extension that follows Raycast best practices. The code is clean, properly organized, and includes good error handling.
Key Strengths
- Dual Interface Approach: Smart to provide both AI-powered natural language search and a manual form fallback
- Comprehensive Airport Database: 6,054+ airports with offline search capability
- Multi-airport City Handling: Intelligent logic to use city codes vs airport codes for major metropolitan areas
- Good Error Handling: Graceful fallbacks when AI parsing fails
- Proper Validation: Form validation and date checks
- Analytics Integration: Usage tracking with Mixpanel
Technical Implementation
Positive Aspects:
- Clean TypeScript with proper interfaces
- Modular component structure
- Efficient local airport search
- Smart URL building for Skyscanner
Areas for Improvement:
-
Analytics Dependency: The extension includes Mixpanel for analytics, which adds an external dependency. Consider if this is necessary for a Raycast extension or if it could use Raycast's built-in analytics instead.
-
Hard-coded API Token: The Mixpanel token is hard-coded in the source. While this might be intentional for a public extension, it's worth noting.
-
Error Messages: Some error messages could be more user-friendly. For example, "AI couldn't parse: origin, destination, date" could be more helpful.
-
Airport Data Size: The airports.ts file (not shown but referenced) likely contains a large dataset. Ensure it's optimized for bundle size.
Code Quality
The code follows good practices:
- Proper TypeScript typing
- Clean component separation
- Good state management
- Appropriate use of Raycast APIs
User Experience
- The natural language interface is intuitive
- Fallback form ensures functionality without Raycast Pro
- Good feedback with toasts and loading states
- Comprehensive airport search capabilities
Suggestions
- Consider reducing the analytics dependency if possible
- Add more context to error messages
- Ensure the airport database is optimized for size
- Consider adding more examples in the placeholder text
This is a solid extension that provides real value to users and follows Raycast development best practices. The dual interface approach is particularly well-executed.
commented
Nov 5, 2025
|
I just gave it a really quick spin with |
commented
Nov 5, 2025
Aah I think the case here is that the airport code is mentioned directly. I currently only handle the city names and create a query based on that. I'll check this out |
- chore: remove logs and linting - chore: update with iata status
commented
Nov 5, 2025
|
@pernielsentikaer should be good now |
- chore: fix linting - chore: modularise form - chore: modularise
commented
Nov 5, 2025
|
Published to the Raycast Store: |
commented
Nov 5, 2025
|
🎉 🎉 🎉 We've rewarded your Raycast account with some credits. You will soon be able to exchange them for some swag. |
Description
A Raycast extension for quickly searching flights on Skyscanner using natural language.
Planning travel shouldn't be complicated. This extension makes it incredibly easy to search for flights - just describe your trip in plain English like "NYC to LA next Monday for 2" and instantly open Skyscanner with your search ready.
Features
Commands
Search Flights: Describe your trip in natural language or use the fallback form to enter origin, destination, dates, number of passengers, and stops preference. Press CMD + Enter to instantly open Skyscanner.com with your complete flight search ready to go.Search Flights Form: Fill out the form with your origin airport, destination airport, departure date, optional return date, number of passengers (1-8), and stops preference. Press CMD + Enter to instantly open Skyscanner.com with your complete flight search loaded and ready to go.Screencast
raycast_1080.mp4
Checklist
npm run buildand tested this distribution build in Raycastassetsfolder are used by the extension itselfREADMEare placed outside of themetadatafolder