kunkun/packages/api
Huakun Shen ad30a8c3bb
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
fix: duplicate api calls from comlink (#27)
* refactor: replace comlink with kkrpc

* fix: import path in api pkg and btn styling in ui iframe page

* fix: fixed fetch API from kkRPC migrate

* refactor: replace comlink-stdio with kkrpc

* update deno lock

* bump @kksh/api

* update API version

* publish api pkg again to fix kkrpc version

* update pnpm lock

* dep: fix dependency problems

* dep: update deno.lock

* chore: remove 2 submodules

they were added only for integration development

* update pnpm lock

* fix: test template path

* format: with prettier

* downgrade next version

* ci: try to fix next build on windows

* try to fix CI

* Revert "try to fix CI"

This reverts commit b9c63c392f.

* upgrade tauri-api-adapter

* try to fix next

* remove templates from pnpm workspace

* update CI test

* publish @kksh/api with upgraded tauri-api-adapter to fix nextjs template
2024-11-19 05:57:31 -05:00
..
__tests__ App Setup (#2) 2024-11-03 13:54:44 -05:00
src fix: duplicate api calls from comlink (#27) 2024-11-19 05:57:31 -05: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 App Setup (#2) 2024-11-03 13:54:44 -05:00
deno.lock chore: update README and pnpm lock, deno lock 2024-11-09 07:32:21 -05:00
jsr.json fix: duplicate api calls from comlink (#27) 2024-11-19 05:57:31 -05:00
package.json fix: duplicate api calls from comlink (#27) 2024-11-19 05:57:31 -05:00
patch-version.ts App Setup (#2) 2024-11-03 13:54:44 -05:00
README.md App Setup (#2) 2024-11-03 13:54:44 -05:00
setup.ts docs: support cloudflare API docs building without Deno 2024-11-03 14:57:49 -05:00
tsconfig.json App Setup (#2) 2024-11-03 13:54:44 -05:00
typedoc.json App Setup (#2) 2024-11-03 13:54:44 -05:00

@kksh/api

NPM Version

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

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

Dev

Dependency Graph

To detect circular dependencies

pnpm madge ./src/ui/worker/index.ts --circular # detect circular dependencies
pnpm dep-tree ./src/ui/worker/index.ts


pnpm test # this will detect circular dependencies in all files