Skip to content

Add kagi-news extension - #22389

Merged
raycastbot merged 7 commits into
raycast:mainfrom
mickaphd:ext/kagi-news
Oct 30, 2025
Merged

raycastbot merged 7 commits into
raycast:mainfrom
mickaphd:ext/kagi-news

Conversation

@mickaphd

@mickaphd mickaphd commented Oct 24, 2025 •

Copy link
Copy Markdown
Contributor

Description

Screencast

Checklist

@raycastbot

Copy link
Copy Markdown
Collaborator

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.

@mickaphd

Copy link
Copy Markdown
Contributor Author

Hi there, my first extension to browse Kagi News directly from Raycast.
https://news.kagi.com/ https://github.com/kagisearch/kite-public
Cheers,
M

@mickaphd
mickaphd marked this pull request as ready for review October 24, 2025 12:08

@greptile-apps greptile-apps Bot 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 a new Kagi News extension that allows users to browse curated news articles across 80+ categories with support for 25+ languages. The extension fetches news from Kagi's public API and displays articles with summaries, talking points, and clickable source references.

Key features implemented:

  • Category browsing with dropdown selector and persistent state
  • Article detail view with summary, talking points, and "Did You Know" facts
  • OnThisDay category showing historical events
  • Multi-language support via preferences
  • Clean error handling for API failures

Issue found:

  • The Preferences interface is manually defined but should be auto-generated by Raycast in raycast-env.d.ts

The code is well-structured with proper TypeScript typing, follows Raycast extension guidelines, and includes all required metadata and configuration files.

Confidence Score: 4/5

  • This PR is safe to merge with one minor syntax fix required
  • The extension is well-implemented with proper error handling, correct configuration files, and follows Raycast guidelines. The only issue is the manually defined Preferences interface which must be removed as it's auto-generated by Raycast. All other aspects (ESLint config, Prettier config, package.json, metadata) are correctly configured.
  • Pay attention to extensions/kagi-news/src/kagi-news.tsx - remove the Preferences interface before merging

Important Files Changed

File Analysis

Filename Score Overview
extensions/kagi-news/src/kagi-news.tsx 4/5 Main extension file with proper structure and logic; only issue is the manually defined Preferences interface
extensions/kagi-news/package.json 5/5 Well-configured package manifest with proper dependencies and preferences setup
extensions/kagi-news/.prettierrc 5/5 Correct Prettier configuration matching Raycast standards (printWidth: 120, singleQuote: false)
extensions/kagi-news/eslint.config.js 5/5 Proper ESLint configuration using correct import path (eslint/config) and Raycast config

8 files reviewed, 1 comment

Edit Code Review Agent Settings | Greptile

Comment thread extensions/kagi-news/src/kagi-news.tsx Resolved
mickaphd and others added 2 commits October 27, 2025 10:33
Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
…eScript configuration, and refactor code structure

- Updated dependencies in package.json and package-lock.json for @raycast/utils and @raycast/eslint-config.
- Enhanced tsconfig.json with updated compiler options and included schema.
- Refactored kagi-news.tsx to utilize hooks for category management and improved error handling in UI components.
- Added subtitle to the extension's metadata for better user experience.
@pernielsentikaer

Copy link
Copy Markdown
Contributor

Hi @mickaphd👋

Thanks for your contribution 🔥

I updated the code a bit, can you make sure I didn't break something 🙂

@mickaphd

Copy link
Copy Markdown
Contributor Author

Hi @pernielsentikaer

Many thanks! Everything works on my side! I will certainly keep this file organization for version 1.1!

Just one thing, if you don't mind: I believe there was previously an option to return to the article list while reading one in particular. In this version, only the Esc key is active, which exits the extension. It would be better to allow users to return to the list they were checking to select another article to read. Maybe with something like that in the kagi-news.tsx file I suppose:

        actions={
          <ActionPanel>
            <Action title="Back" icon={Icon.ArrowLeft} onAction={() => setSelectedEvent(null)} />
          </ActionPanel> 

See the picture below if I'm not clear.
That's all from my side; Ready to merge! Thank you very much for your improvements!

Screenshot 2025-10-30 at 14 05 25

Per Nielsen Tikær added 2 commits October 30, 2025 14:58
@pernielsentikaer

Copy link
Copy Markdown
Contributor

Hi @mickaphd 👋

I updated the code to make it work correctly for escape (the same way as the rest of Raycast works).

Can you make sure that I didn't break anything again? Thank you 🙂

@mickaphd mickaphd left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All good to me!

@pernielsentikaer pernielsentikaer 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 7b1e59c into raycast:main Oct 30, 2025
@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 (@mickaphd).

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

@mickaphd
mickaphd deleted the ext/kagi-news branch October 30, 2025 20:56
tktcorporation added a commit to tktcorporation/extensions that referenced this pull request Nov 2, 2025