[PR #1432] [MERGED] WIP: Migrate from NextJs's API routes to Hono based routes for the API #1822

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

📋 Pull Request Information

Original PR: https://github.com/karakeep-app/karakeep/pull/1432
Author: @MohamedBassem
Created: 5/18/2025
Status: Merged
Merged: 5/18/2025
Merged by: @MohamedBassem

Base: mainHead: hono-migration


📝 Commits (10+)

  • 0cb53ca Setup Hono and migrate the highlights API there
  • 6d88283 Implement the tags and lists endpoint
  • dbdd263 Implement the bookmarks and users endpoints
  • f8a12d9 Add the trpc error code adapter
  • 05d0707 Remove the old nextjs handlers
  • e31380c fix api key not found handling
  • 0a96231 Fix trpc error handling
  • d1064b1 Fix 204 handling
  • 5fd5048 Fix search ordering
  • 268b90a Implement the singlefile endpoint

📊 Changes

43 files changed (+867 additions, -1033 deletions)

View changed files

apps/web/app/api/[[...route]]/route.ts (+28 -0)
apps/web/app/api/assets/[assetId]/route.ts (+0 -85)
apps/web/app/api/v1/bookmarks/[bookmarkId]/assets/[assetId]/route.ts (+0 -37)
apps/web/app/api/v1/bookmarks/[bookmarkId]/assets/route.ts (+0 -36)
apps/web/app/api/v1/bookmarks/[bookmarkId]/highlights/route.ts (+0 -18)
apps/web/app/api/v1/bookmarks/[bookmarkId]/lists/route.ts (+0 -18)
apps/web/app/api/v1/bookmarks/[bookmarkId]/route.ts (+0 -54)
apps/web/app/api/v1/bookmarks/[bookmarkId]/summarize/route.ts (+0 -19)
apps/web/app/api/v1/bookmarks/[bookmarkId]/tags/route.ts (+0 -45)
apps/web/app/api/v1/bookmarks/route.ts (+0 -46)
apps/web/app/api/v1/bookmarks/search/route.ts (+0 -44)
apps/web/app/api/v1/bookmarks/singlefile/route.ts (+0 -54)
apps/web/app/api/v1/highlights/[highlightId]/route.ts (+0 -50)
apps/web/app/api/v1/highlights/route.ts (+0 -30)
apps/web/app/api/v1/lists/[listId]/bookmarks/[bookmarkId]/route.ts (+0 -35)
apps/web/app/api/v1/lists/[listId]/bookmarks/route.ts (+0 -19)
apps/web/app/api/v1/lists/[listId]/route.ts (+0 -55)
apps/web/app/api/v1/lists/route.ts (+0 -26)
apps/web/app/api/v1/tags/[tagId]/bookmarks/route.ts (+0 -27)
apps/web/app/api/v1/tags/[tagId]/route.ts (+0 -55)

...and 23 more files

📄 Description

No description provided


🔄 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/1432 **Author:** [@MohamedBassem](https://github.com/MohamedBassem) **Created:** 5/18/2025 **Status:** ✅ Merged **Merged:** 5/18/2025 **Merged by:** [@MohamedBassem](https://github.com/MohamedBassem) **Base:** `main` ← **Head:** `hono-migration` --- ### 📝 Commits (10+) - [`0cb53ca`](https://github.com/karakeep-app/karakeep/commit/0cb53ca4b234cab36e9181c3a5fe239c117dcfcd) Setup Hono and migrate the highlights API there - [`6d88283`](https://github.com/karakeep-app/karakeep/commit/6d88283f41412636cd8e6edaa341b555b341b83d) Implement the tags and lists endpoint - [`dbdd263`](https://github.com/karakeep-app/karakeep/commit/dbdd263403e9b71ccf92ffba8a704634ffcfbd7c) Implement the bookmarks and users endpoints - [`f8a12d9`](https://github.com/karakeep-app/karakeep/commit/f8a12d9b7384cb3a08980c608cd2a976cea7cc86) Add the trpc error code adapter - [`05d0707`](https://github.com/karakeep-app/karakeep/commit/05d070792030aa63f28eddb34e29ce2229fcc05d) Remove the old nextjs handlers - [`e31380c`](https://github.com/karakeep-app/karakeep/commit/e31380ca22a1eb9f499737000c641e85048da73d) fix api key not found handling - [`0a96231`](https://github.com/karakeep-app/karakeep/commit/0a9623161acf48653eea4bcf079f4783a756f6c3) Fix trpc error handling - [`d1064b1`](https://github.com/karakeep-app/karakeep/commit/d1064b1f27e13a026fae114671e13bea164cb435) Fix 204 handling - [`5fd5048`](https://github.com/karakeep-app/karakeep/commit/5fd50488c5d571e08974ef2d04d5503faaaaea95) Fix search ordering - [`268b90a`](https://github.com/karakeep-app/karakeep/commit/268b90a55cb1ee2b889bde247d1774b937cb6b3b) Implement the singlefile endpoint ### 📊 Changes **43 files changed** (+867 additions, -1033 deletions) <details> <summary>View changed files</summary> ➕ `apps/web/app/api/[[...route]]/route.ts` (+28 -0) ➖ `apps/web/app/api/assets/[assetId]/route.ts` (+0 -85) ➖ `apps/web/app/api/v1/bookmarks/[bookmarkId]/assets/[assetId]/route.ts` (+0 -37) ➖ `apps/web/app/api/v1/bookmarks/[bookmarkId]/assets/route.ts` (+0 -36) ➖ `apps/web/app/api/v1/bookmarks/[bookmarkId]/highlights/route.ts` (+0 -18) ➖ `apps/web/app/api/v1/bookmarks/[bookmarkId]/lists/route.ts` (+0 -18) ➖ `apps/web/app/api/v1/bookmarks/[bookmarkId]/route.ts` (+0 -54) ➖ `apps/web/app/api/v1/bookmarks/[bookmarkId]/summarize/route.ts` (+0 -19) ➖ `apps/web/app/api/v1/bookmarks/[bookmarkId]/tags/route.ts` (+0 -45) ➖ `apps/web/app/api/v1/bookmarks/route.ts` (+0 -46) ➖ `apps/web/app/api/v1/bookmarks/search/route.ts` (+0 -44) ➖ `apps/web/app/api/v1/bookmarks/singlefile/route.ts` (+0 -54) ➖ `apps/web/app/api/v1/highlights/[highlightId]/route.ts` (+0 -50) ➖ `apps/web/app/api/v1/highlights/route.ts` (+0 -30) ➖ `apps/web/app/api/v1/lists/[listId]/bookmarks/[bookmarkId]/route.ts` (+0 -35) ➖ `apps/web/app/api/v1/lists/[listId]/bookmarks/route.ts` (+0 -19) ➖ `apps/web/app/api/v1/lists/[listId]/route.ts` (+0 -55) ➖ `apps/web/app/api/v1/lists/route.ts` (+0 -26) ➖ `apps/web/app/api/v1/tags/[tagId]/bookmarks/route.ts` (+0 -27) ➖ `apps/web/app/api/v1/tags/[tagId]/route.ts` (+0 -55) _...and 23 more files_ </details> ### 📄 Description _No description provided_ --- <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:20 +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#1822
No description provided.