[PR #1374] [MERGED] feat: Add NETSCAPE-Bookmark-file-1 export format support #1810

Closed
opened 2026-03-02 11:59:17 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/karakeep-app/karakeep/pull/1374
Author: @yuikisaito
Created: 5/9/2025
Status: Merged
Merged: 5/11/2025
Merged by: @MohamedBassem

Base: mainHead: netscape-bookmark-export


📝 Commits (4)

  • 0eb611a Add function to export bookmarks in NETSCAPE-Bookmark-file-1 format
  • f2c34c5 Update export endpoint to support NETSCAPE format
  • 1e8a129 Add format selection to export UI
  • dd4dd92 include tags in the export

📊 Changes

3 files changed (+112 additions, -16 deletions)

View changed files

📝 apps/web/app/api/bookmarks/export/route.tsx (+41 -15)
📝 apps/web/components/settings/ImportExport.tsx (+22 -1)
📝 apps/web/lib/exportBookmarks.ts (+49 -0)

📄 Description

Description

This Pull Request supports exporting bookmarks in NETSCAPE-Bookmark-file-1 format.This feature will allow users to import bookmarks stored in Karakeep into most browsers.

Changes

  1. Added a new toNetscapeFormat function in exportBookmarks.ts to convert bookmarks to NETSCAPE format
  2. Updated the export endpoint to support format selection via query parameter
  3. Enhanced the UI to allow users to choose between JSON and NETSCAPE formats

Testing

  • Manually tested export in both formats
  • Verified the exported NETSCAPE format can be imported back into Karakeep
  • Confirmed the exported file can be imported into major browsers (Chrome, Firefox)
  • Ensured special characters in URLs, titles, and tags are properly encoded

Screenshots

image


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/karakeep-app/karakeep/pull/1374 **Author:** [@yuikisaito](https://github.com/yuikisaito) **Created:** 5/9/2025 **Status:** ✅ Merged **Merged:** 5/11/2025 **Merged by:** [@MohamedBassem](https://github.com/MohamedBassem) **Base:** `main` ← **Head:** `netscape-bookmark-export` --- ### 📝 Commits (4) - [`0eb611a`](https://github.com/karakeep-app/karakeep/commit/0eb611ae0793fd33335e8d5b036681dd80647bd4) Add function to export bookmarks in NETSCAPE-Bookmark-file-1 format - [`f2c34c5`](https://github.com/karakeep-app/karakeep/commit/f2c34c5377895c987d01d7be09db79d847fe3515) Update export endpoint to support NETSCAPE format - [`1e8a129`](https://github.com/karakeep-app/karakeep/commit/1e8a1290a5a1cd60f8d9498ffc5b572a7a796ece) Add format selection to export UI - [`dd4dd92`](https://github.com/karakeep-app/karakeep/commit/dd4dd9200de32b65493df16ed15e5c68b90ed6be) include tags in the export ### 📊 Changes **3 files changed** (+112 additions, -16 deletions) <details> <summary>View changed files</summary> 📝 `apps/web/app/api/bookmarks/export/route.tsx` (+41 -15) 📝 `apps/web/components/settings/ImportExport.tsx` (+22 -1) 📝 `apps/web/lib/exportBookmarks.ts` (+49 -0) </details> ### 📄 Description ## Description This Pull Request supports exporting bookmarks in NETSCAPE-Bookmark-file-1 format.This feature will allow users to import bookmarks stored in Karakeep into most browsers. ## Changes 1. Added a new `toNetscapeFormat` function in `exportBookmarks.ts` to convert bookmarks to NETSCAPE format 2. Updated the export endpoint to support format selection via query parameter 3. Enhanced the UI to allow users to choose between JSON and NETSCAPE formats ## Testing - Manually tested export in both formats - Verified the exported NETSCAPE format can be imported back into Karakeep - Confirmed the exported file can be imported into major browsers (Chrome, Firefox) - Ensured special characters in URLs, titles, and tags are properly encoded ## Screenshots ![image](https://github.com/user-attachments/assets/a52934da-bb96-4755-820c-4def9d529855) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-03-02 11:59:17 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/karakeep#1810
No description provided.