aboutsummaryrefslogtreecommitdiffstats
path: root/packages/sdk (follow)
Commit message (Collapse)AuthorAgeFilesLines
* release: cli, mcp and sdkMohamed Bassem2025-11-291-1/+1
|
* feat: Add automated bookmark backup feature (#2182)Mohamed Bassem2025-11-291-0/+307
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * feat: Add automated bookmark backup system Implements a comprehensive automated backup feature for user bookmarks with the following capabilities: Database Schema: - Add backupSettings table to store user backup preferences (enabled, frequency, retention) - Add backups table to track backup records with status and metadata - Add BACKUP asset type for storing compressed backup files - Add migration 0066_add_backup_tables.sql Background Workers: - Implement BackupSchedulingWorker cron job (runs daily at midnight UTC) - Create BackupWorker to process individual backup jobs - Deterministic scheduling spreads backup jobs across 24 hours based on user ID hash - Support for daily and weekly backup frequencies - Automated retention cleanup to delete old backups based on user settings Export & Compression: - Reuse existing export functionality for bookmark data - Compress exports using Node.js built-in zlib (gzip level 9) - Store compressed backups as assets with proper metadata - Track backup size and bookmark count for statistics tRPC API: - backups.getSettings - Retrieve user backup configuration - backups.updateSettings - Update backup preferences - backups.list - List all user backups with metadata - backups.get - Get specific backup details - backups.delete - Delete a backup - backups.download - Download backup file (base64 encoded) - backups.triggerBackup - Manually trigger backup creation UI Components: - BackupSettings component with configuration form - Enable/disable automatic backups toggle - Frequency selection (daily/weekly) - Retention period configuration (1-365 days) - Backup list table with download and delete actions - Manual backup trigger button - Display backup stats (size, bookmark count, status) - Added backups page to settings navigation Technical Details: - Uses Restate queue system for distributed job processing - Implements idempotency keys to prevent duplicate backups - Background worker concurrency: 2 jobs at a time - 10-minute timeout for large backup exports - Proper error handling and logging throughout - Type-safe implementation with Zod schemas * refactor: simplify backup settings and asset handling - Move backup settings from separate table to user table columns - Update BackupSettings model to use static methods with users table - Remove download mutation in favor of direct asset links - Implement proper quota checks using QuotaService.checkStorageQuota - Update UI to use new property names and direct asset downloads - Update shared types to match new schema Key changes: - backupSettingsTable removed, settings now in users table - Backup downloads use direct /api/assets/{id} links - Quota properly validated before creating backup assets - Cleaner separation of concerns in tRPC models * migration * use zip instead of gzip * fix drizzle * fix settings * streaming json * remove more dead code * add e2e tests * return backup * poll for backups * more fixes * more fixes * fix test * fix UI * fix delete asset * fix ui * redirect for backup download * cleanups * fix idempotency * fix tests * add ratelimit * add error handling for background backups * i18n * model changes --------- Co-authored-by: Claude <noreply@anthropic.com>
* fix(api): Return 200 when bookmark already exists instead of 200Mohamed Bassem2025-10-111-1/+10
|
* fix(api): Document the API for getting lists of a bookmark. fixes #2030Mohamed Bassem2025-10-111-14/+70
|
* feat: Add tag search and pagination (#1987)Mohamed Bassem2025-09-281-1/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * feat: Add tag search and use in the homepage * use paginated query in the all tags view * wire the load more buttons * add skeleton to all tags page * fix attachedby aggregation * fix loading states * fix hasNextPage * use action buttons for load more buttons * migrate the tags auto complete to the search api * Migrate the tags editor to the new search API * Replace tag merging dialog with tag auto completion * Merge both search and list APIs * fix tags.list * add some tests for the endpoint * add relevance based sorting * change cursor * update the REST API * fix review comments * more fixes * fix lockfile * i18n * fix visible tags
* release(sdk): Release the 0.27 sdkMohamed Bassem2025-09-071-1/+1
|
* chore: More turbo fixesMohamedBassem2025-07-271-2/+2
|
* deps: Upgrade viteMohamed Bassem2025-07-261-2/+2
|
* release(sdk): Release the 0.26 sdkMohamed Bassem2025-07-202-4/+240
|
* chore: More oxlint changesMohamed Bassem2025-06-221-4/+1
|
* chore: migrate away from eslint to oxlint (#1642)xuatz2025-06-222-12/+25
| | | | | | | * chore: migrate away from eslint to oxlint * revert turbo task name lint * it seems like we can remove the seemingly default globals
* feat(api): Expose the endpoint to create a new tagMohamed Bassem2025-05-181-2/+38
|
* feat(api): enable ?sortOrder= for relevant resources (#1398)xuatz2025-05-181-16/+8
| | | | | * feat(api): enable `?sortOrder=` for relevant resources * fix tests
* chore: rename missing files/conf from Hoarder to Karakeep (#1280)adripo2025-04-213-2/+3
| | | | | | | | | * refactor: Rename remaining project configuration from Hoarder to Karakeep * some fixes --------- Co-authored-by: Mohamed Bassem <me@mbassem.com>
* fix: Add includeContent to search endpoint and document it in the docsMohamed Bassem2025-04-161-1/+12
|
* feat: Allow editing the extracted content of an asset bookmarkMohamed Bassem2025-04-131-0/+2
|
* fix(mcp): Reduce token usage of the MCP serverMohamed Bassem2025-04-132-3/+10
|
* feat: Add an MCP server for karakeepMohamed Bassem2025-04-132-0/+352
|
* chore: Rename hoarder packages to karakeepMohamedBassem2025-04-123-18/+18
|
* build: Regenerate the openapi specs and sdkMohamedBassem2025-04-081-0/+12
|
* release(sdk): Release the 0.23 sdkMohamed Bassem2025-03-221-1/+1
|
* feat: Add endpoints for whoami and user stats. Fixes #1113Mohamed Bassem2025-03-111-0/+89
|
* fix: Revert the accidental upgrade of deps. #1107Mohamed Bassem2025-03-101-1/+1
|
* fix: Resync the openapi specMohamed Bassem2025-03-091-0/+56
|
* build(deps-dev): bump vite from 5.1.4 to 5.4.12 (#1103)dependabot[bot]2025-03-091-1/+1
| | | | | | | | | | | | | | | Bumps [vite](https://github.com/vitejs/vite/tree/HEAD/packages/vite) from 5.1.4 to 5.4.12. - [Release notes](https://github.com/vitejs/vite/releases) - [Changelog](https://github.com/vitejs/vite/blob/v5.4.12/packages/vite/CHANGELOG.md) - [Commits](https://github.com/vitejs/vite/commits/v5.4.12/packages/vite) --- updated-dependencies: - dependency-name: vite dependency-type: direct:development ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* release(sdk): Release the 0.22 sdkMohamed Bassem2025-02-021-1/+1
|
* ci: Fix build by regenerating the open API specMohamed Bassem2025-02-021-0/+1
|
* fix: Fix node22 error in worker container. Fixes #962Mohamed Bassem2025-02-021-1/+1
|
* feat(api): Expose the modifiedAt date in the bookmarks APIMohamed Bassem2025-02-011-0/+2
|
* feat: Add support for singlefile extension uploads. #172Mohamed Bassem2025-01-111-0/+4
|
* release(sdk): Re-release the 0.21 sdkMohamed Bassem2025-01-052-17/+23
|
* fix(sdk): Fix the module type of the sdk packageMohamed Bassem2025-01-052-2/+4
|
* docs: Add readme to SDKMohamed Bassem2025-01-051-0/+57
|
* fix(sdk): Publish both esm and cjs modules for the sdkMohamed Bassem2025-01-052-5/+10
|
* release(sdk): Release the 0.21 sdkMohamed Bassem2025-01-051-1/+1
|
* ci: Fix build by using the workspace sdk packageMohamed Bassem2025-01-051-2/+5
|
* feat: Expose the search functionality in the REST APIMohamed Bassem2025-01-051-0/+43
|
* feat: Expose asset manipulation endpoints in the REST APIMohamed Bassem2025-01-041-0/+140
|
* feat: Add support for smart lists (#802)Mohamed Bassem2025-01-021-0/+13
| | | | | | | | | | | | | | | | | | | * feat: Add support for smart lists * i18n * Fix update list endpoint * Add a test for smart lists * Add header to the query explainer * Hide remove from lists in the smart context list * Add proper validation to list form --------- Co-authored-by: Deepak Kapoor <41769111+orthdron@users.noreply.github.com>
* chore: add format:fix and lint:fix scripts to all packagesMohamed Bassem (aider)2024-12-311-0/+2
|
* fix(api): Return 201 from highlights creation and fix docs for PATCH ↵Mohamed Bassem2024-12-301-16/+0
| | | | /lists/[listId]
* feat: Introduce a typescript sdkMohamed Bassem2024-12-307-0/+1225