Skip to content

Add vanishlink extension - #20539

Closed
n-seiji wants to merge 3 commits into
raycast:mainfrom
n-seiji:ext/vanishlink
Closed

n-seiji wants to merge 3 commits into
raycast:mainfrom
n-seiji:ext/vanishlink

Conversation

@n-seiji

@n-seiji n-seiji commented Jul 19, 2025 •

Copy link
Copy Markdown
Contributor

Description

This is a pull request to add a new extension called "vanishlink."

VanishLink is a Raycast Extension designed to efficiently manage links that you need for short periods. It allows you to easily add and manage links that don't warrant permanent bookmarks but require quick access through shortcuts.

A key feature is that links without access for a specified period are automatically deleted, leaving only the links that have been accessed.
The intended use case is for work-related links that are only needed while actively involved in a project at the company. It allows you to avoid cluttering your bookmarks while still enabling quick access via shortcuts.

Commands

  • Add from Clipboard
  • Add Bookmark
  • Open

Lean more

Screencast

Add Bookmark Command

image

Open Command

image

Sub Command

image

Checklist

- [:recycle:]リリース準備でlintとかかかってしまった
- [:books:]document整備
- [:recycle:]aiによるレビュー
- [:bug:]アクセス時にurlが削除されない
- [:sparkles:]preferenceで設定できるように
- [:recycle:]リリース準備
- [:sparkles:]editを行えるように
- [:books:]画像追加
- [:recycle:]aiが書いたコードをリファクタ
- [:art:]見切れる
- [:art:]同じメソッド名だとerrorが見づらい
- [:sparkles:]表記を細かく
- [:recycle:]try catchここではいらないかなと思って削除
- [:bug:]importがうまくできてなかった
- [:recycle:]構成を変更
- [:books:]設定変更
- [:art:]アイコン変更
- [:recycle:]無駄なtry catchをなくす
- [:recycle:]英語に
- [:recycle:] errorを解消
- [:sparkles:]プロダクト名変更
- [:books:] document整備
- [:sparkles:]add commandを追加
- init
@raycastbot raycastbot added the new extension Label for PRs with new extensions label Jul 19, 2025
@raycastbot

Copy link
Copy Markdown
Collaborator

Congratulations on your new Raycast extension! 🚀

Due to our current reduced availability during summer, 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.

@n-seiji
n-seiji marked this pull request as ready for review August 6, 2025 00:11

@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 Summary

This PR introduces a new extension called "vanishlink" that provides temporary link management functionality. The extension allows users to efficiently manage links that are needed for short periods and automatically deletes unused links after a configurable expiration time (ranging from 1 day to 1 year).

The extension includes three main commands:

  • Add from Clipboard (no-view mode): Quickly saves URLs from clipboard with automatic title fetching
  • Add Bookmark (view mode): Manual bookmark addition with form interface
  • Open (view mode): Search and open saved bookmarks

The implementation uses LocalStorage for bookmark persistence and includes proper TypeScript interfaces (BookmarkItem and BookmarkStorage) for type safety. The core functionality is built around automatic expiration logic that tracks when bookmarks were last accessed and removes them based on user preferences. The extension includes utility functions for URL validation, page title fetching with timeout handling, bookmark retrieval with schema validation, and ID generation using MD5 hashes.

The codebase follows good architectural patterns with separated concerns - utility functions are modularized in the lib directory, and each command has its own file. The extension integrates well with Raycast's API using standard patterns for clipboard access, LocalStorage operations, and user feedback through toast notifications.

Confidence score: 2/5

  • This PR requires careful review due to multiple compliance issues that need to be addressed before merging
  • Score lowered due to missing required configuration files, incorrect changelog format, and command implementation that doesn't follow Raycast guidelines
  • Pay close attention to CHANGELOG.md, missing .prettierrc file, and the add-from-clipboard.ts command implementation

Critical Issues that need to be addressed:

  1. CHANGELOG.md Format: The version entry title uses TBD instead of the required {PR_MERGE_DATE} template string. It should be:

    ## [1.0.0] - {PR_MERGE_DATE}
    
  2. Missing .prettierrc Configuration: The extension is missing a .prettierrc file with the required Raycast code style settings. Please add this file with:

    {
      "printWidth": 120,
      "singleQuote": false
    }
  3. Command Error Handling: The add-from-clipboard.ts command function is not wrapped in a try-catch block. All launchCommand functions should be wrapped in try-catch blocks for proper error handling.

  4. Command Subtitles: Since there are multiple commands, consider adding subtitle fields to the commands in package.json with the service name (probably the title from package.json).

  5. Missing Metadata Screenshots: This PR is labeled as a new extension but doesn't include a metadata folder with screenshots. According to the Raycast Documentation, new extensions with view commands need screenshots in the metadata folder.

Context used:

Context - In Raycast extensions, ensure to use a consistent configuration for Prettier, specifically 'printWidth: 120' and 'singleQuote: false'. (link)

10 files reviewed, 4 comments

Edit Code Review Bot Settings | Greptile

@@ -0,0 +1,6 @@
const { defineConfig } = require("eslint/config");

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.

syntax: Incorrect import - eslint/config doesn't export defineConfig. Use import { defineConfig } from '@eslint/js' or remove this import entirely as it's not needed.

Suggested change
const { defineConfig } = require("eslint/config");
const raycastConfig = require("@raycast/eslint-config");
module.exports = [
...raycastConfig,
];

The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [1.0.0] - TBD

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.

syntax: The changelog entry must use '{PR_MERGE_DATE}' instead of 'TBD' as per repository guidelines.

Suggested change
## [1.0.0] - TBD
## [1.0.0] - {PR_MERGE_DATE}

Context Used: Context - For changelog entries, use a format that includes the version and the merge date, e.g., '## [Version] - {PR_MERGE_DATE}'. (link)

@@ -0,0 +1,94 @@
{

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.

style: Missing .prettierrc file with required Raycast configuration. Create a .prettierrc file with {"printWidth": 120, "singleQuote": false}

Context Used: Context - In Raycast extensions, ensure to use a consistent configuration for Prettier, specifically 'printWidth: 120' and 'singleQuote: false'. (link)

"name": "expiredTime",
"required": true,
"default": "2week",
"title": "Expired Time",

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.

style: Use title case 'Expiration Time' instead of 'Expired Time' for consistency

Suggested change
"title": "Expired Time",
"title": "Expiration Time",

Context Used: Context - Use the title case for titles in the preferences section of package.json files, e.g., 'Tab Width' instead of 'tabWidth'. (link)

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

Hi 👋

Thanks for your contribution 💪

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

  • You can use shortcuts from Keyboard.Shortcut.Common in as shortcuts to use the same as Raycast does, like Keyboard.Shortcut.Common.Remove instead of a custom delete shortcut

  • You could all add a Delete All and use a confirmAlert to make sure it’s intended

  • I’m not sure if we should add a preference to let users decide if they want to popToRoot() after adding a link - I’m not sure how many will add multiple links at once?

Pasted image

  • Maybe it’s relevant to show how long time is left, or what do you think? Maybe it’s not a real problem at all

Pasted image

  • You could add an action from this view with LaunchCommand so the user can go to the add command directly?

Pasted image

  • Could you look into the suggestions from Greptile

I'm looking forward to testing this extension again 🔥

Request a new review when you are ready. Feel free to contact me here or at Slack if you have any questions.

@@ -0,0 +1,129 @@
# vanishlink

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.

Suggested change
# vanishlink
# Vanishlink

@@ -0,0 +1,132 @@
# vanishlink

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.

Suggested change
# vanishlink
# Vanishlink

"commands": [
{
"name": "add-from-clipboard",
"title": "Add from Clipboard",

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.

Suggested change
"title": "Add from Clipboard",
"title": "Add from Clipboard",
"subtitle": "Vanishlink",

},
{
"name": "add",
"title": "Add Bookmark",

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.

Suggested change
"title": "Add Bookmark",
"title": "Add Bookmark",
"subtitle": "Vanishlink",

},
{
"name": "open",
"title": "Open",

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.

Suggested change
"title": "Open",
"title": "Search Links",
"subtitle": "Vanishlink",

@pernielsentikaer

Copy link
Copy Markdown
Contributor

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 😊

@pernielsentikaer
pernielsentikaer marked this pull request as draft August 7, 2025 11:32
@n-seiji

n-seiji commented Aug 16, 2025 •

Copy link
Copy Markdown
Contributor Author

@pernielsentikaer
Hmm.
Even after running ⁠npx @raycast/api@latest publish and ⁠npx @raycast/api@latest pull-contributions, I'm encountering errors related to git, and it's just not working out. So, I will close this PR, delete the branch from the forked repository, and submit the PR again.
I'm not sure if it's related, but I recently changed my PC, so that might be the cause.
Please review it again!

@n-seiji n-seiji closed this Aug 16, 2025
@n-seiji
n-seiji deleted the ext/vanishlink branch August 16, 2025 14:49
@n-seiji

n-seiji commented Aug 16, 2025

Copy link
Copy Markdown
Contributor Author

here is new PR

@n-seiji n-seiji mentioned this pull request Aug 16, 2025
5 tasks done
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