kunkun/packages/api
Huakun bb9a46935c
Some checks failed
CI / build-test (macos-14) (push) Has been cancelled
CI / build-test (ubuntu-24.04) (push) Has been cancelled
CI / build-test (windows-latest) (push) Has been cancelled
JSR Publish / publish (push) Has been cancelled
NPM Package Publish / publish-npm (push) Has been cancelled
Feature: add drizzle (#264)
* feat: add drizzle orm

* feat: update drizzle configuration and schema management

- Added a check for DB_FILE_NAME in drizzle.config.ts to ensure it's set.
- Updated package.json to change the package name to @kksh/drizzle and added exports for schema and relations.
- Enhanced README.md with instructions for using the schema generation.
- Refactored schema.ts for improved readability and organization of imports.

* add tauri-plugin-sql

* feat: add database select and execute commands

- Introduced `select` and `execute` functions in the database module to facilitate querying and executing SQL commands.
- Updated the Tauri plugin to expose these commands, allowing for database interactions from the frontend.
- Added corresponding permissions for the new commands in the permissions configuration.
- Enhanced the database library with JSON value handling for query parameters.

* fix: sqlite select command

* drizzle ORM verified working

* refactor: clean up database module by removing unused SelectQueryResult type and disabling eslint for explicit any usage

* pnpm lock update

* Update enum definition for type safety

- Changed enum to use 'as const' for better type inference
- Ensured more robust handling of extension publish sources

* reimplemented most db command functions with ORM (migrate from tauri command invoke

* fixed searchExtensionData orm function

* Refactor ORM commands and searchExtensionData function for improved readability and consistency

- Reformatted import statements for better organization.
- Cleaned up whitespace and indentation in searchExtensionData function.
- Enhanced readability of SQL conditions and query building logic.
- Disabled eslint for explicit any usage in the troubleshooters page.

* Fix test assertions in database module to use array indexing for results

format rust code

* update deno lock

* move drizzle from desktop to drizzle package

* update pnpm version and lock

* refactor: migrate db tauri commands to drizzle

* refactor: remove unused extension and command CRUD operations from db module
2025-04-01 06:15:10 -04:00
..
__tests__ Feature: support npm extension publish (#62) 2025-01-16 06:00:07 -05:00
src Feature: add drizzle (#264) 2025-04-01 06:15:10 -04:00
.gitignore App Setup (#2) 2024-11-03 13:54:44 -05:00
.npmrc App Setup (#2) 2024-11-03 13:54:44 -05:00
build.ts Feature: install extension from JSR (#53) 2025-01-10 08:23:18 -05:00
CHANGELOG.md Fix: kkrpc serialization backward compatibility (#256) 2025-03-19 03:01:40 -04:00
jsr.json feat: expose helper API in headless and UI modules 2025-02-07 02:45:57 -05:00
package.json Remove supabase (#263) 2025-03-26 08:50:55 -04:00
patch-version.ts App Setup (#2) 2024-11-03 13:54:44 -05:00
README.md refactor: Command class rename (#90) 2025-02-05 12:16:33 -05:00
setup.ts docs: support cloudflare API docs building without Deno 2024-11-03 14:57:49 -05:00
tsconfig.json File Transfer (Local Network) (#34) 2024-12-11 08:14:40 -05:00
typedoc.json Refactor: rename api subpackage (#93) 2025-02-06 21:54:35 -05:00

@kksh/api

NPM Version JSR Badge

Kunkun API is an NPM package designed for developers to create extensions for Kunkun.

On NPM this package is published as @kksh/api, and on JSR it is published as @kunkun/api.

@kksh/api provides a set of APIs for extensions to interact with Kunkun and System APIs. The APIs include:

  • Clipboard
  • Database
  • Dialog
  • Event
  • Fetch
  • File System
  • Logger
  • Network
  • Notification
  • Open
  • OS
  • Path
  • Shell
  • System Info
  • System Commands
  • Toast
  • UI
  • etc.

Read more details in documentation at https://docs.kunkun.sh, and generated docs at https://docs.api.kunkun.sh/