nuxt-edge-ai 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (34) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +141 -0
  3. package/dist/module.d.mts +23 -0
  4. package/dist/module.json +9 -0
  5. package/dist/module.mjs +121 -0
  6. package/dist/runtime/composables/useEdgeAI.d.ts +9 -0
  7. package/dist/runtime/composables/useEdgeAI.js +24 -0
  8. package/dist/runtime/plugin.d.ts +21 -0
  9. package/dist/runtime/plugin.js +31 -0
  10. package/dist/runtime/server/api/generate.post.d.ts +2 -0
  11. package/dist/runtime/server/api/generate.post.js +19 -0
  12. package/dist/runtime/server/api/health.get.d.ts +2 -0
  13. package/dist/runtime/server/api/health.get.js +6 -0
  14. package/dist/runtime/server/api/pull.post.d.ts +2 -0
  15. package/dist/runtime/server/api/pull.post.js +6 -0
  16. package/dist/runtime/server/tsconfig.json +3 -0
  17. package/dist/runtime/server/utils/edge-ai-engine.d.ts +4 -0
  18. package/dist/runtime/server/utils/edge-ai-engine.js +270 -0
  19. package/dist/runtime/server/vendor/huggingface/transformers.web.d.mts +857 -0
  20. package/dist/runtime/server/vendor/huggingface/transformers.web.js +38740 -0
  21. package/dist/runtime/server/vendor/licenses/huggingface-transformers.LICENSE +202 -0
  22. package/dist/runtime/server/vendor/onnxruntime/onnxruntime-common.d.mts +3 -0
  23. package/dist/runtime/server/vendor/onnxruntime/onnxruntime-common.js +3 -0
  24. package/dist/runtime/server/vendor/onnxruntime/onnxruntime-web.d.mts +3 -0
  25. package/dist/runtime/server/vendor/onnxruntime/onnxruntime-web.js +3 -0
  26. package/dist/runtime/server/vendor/onnxruntime/ort-wasm-simd-threaded.d.mts +2 -0
  27. package/dist/runtime/server/vendor/onnxruntime/ort-wasm-simd-threaded.js +59 -0
  28. package/dist/runtime/server/vendor/onnxruntime/ort-wasm-simd-threaded.wasm +0 -0
  29. package/dist/runtime/server/vendor/onnxruntime/ort.wasm.min.d.mts +11 -0
  30. package/dist/runtime/server/vendor/onnxruntime/ort.wasm.min.js +7 -0
  31. package/dist/runtime/types.d.ts +74 -0
  32. package/dist/runtime/types.js +0 -0
  33. package/dist/types.d.mts +5 -0
  34. package/package.json +74 -0
package/package.json ADDED
@@ -0,0 +1,74 @@
1
+ {
2
+ "name": "nuxt-edge-ai",
3
+ "version": "0.1.0",
4
+ "description": "Nuxt module for local-first AI apps powered by a bundled Transformers.js + ONNX Runtime WASM server runtime.",
5
+ "license": "MIT",
6
+ "type": "module",
7
+ "repository": {
8
+ "type": "git",
9
+ "url": "git+https://github.com/otadk/nuxt-edge-ai.git"
10
+ },
11
+ "bugs": {
12
+ "url": "https://github.com/otadk/nuxt-edge-ai/issues"
13
+ },
14
+ "exports": {
15
+ ".": {
16
+ "types": "./dist/types.d.mts",
17
+ "import": "./dist/module.mjs"
18
+ }
19
+ },
20
+ "main": "./dist/module.mjs",
21
+ "typesVersions": {
22
+ "*": {
23
+ ".": [
24
+ "./dist/types.d.mts"
25
+ ]
26
+ }
27
+ },
28
+ "files": [
29
+ "dist"
30
+ ],
31
+ "workspaces": [
32
+ "playground"
33
+ ],
34
+ "scripts": {
35
+ "vendor:runtime": "node ./scripts/vendor-runtime.mjs",
36
+ "prepack": "pnpm vendor:runtime && nuxt-module-build build",
37
+ "dev": "pnpm dev:prepare && nuxt dev playground",
38
+ "dev:build": "nuxt build playground",
39
+ "dev:prepare": "pnpm vendor:runtime && nuxt-module-build build --stub && nuxt-module-build prepare && nuxt prepare playground",
40
+ "release": "pnpm lint && pnpm test && pnpm prepack && changelogen --release && npm publish && git push --follow-tags",
41
+ "lint": "eslint .",
42
+ "test": "vitest run",
43
+ "test:watch": "vitest watch",
44
+ "test:types": "vue-tsc --noEmit && pnpm --dir playground exec vue-tsc --noEmit"
45
+ },
46
+ "keywords": [
47
+ "nuxt",
48
+ "nuxt-module",
49
+ "nitro",
50
+ "ai",
51
+ "wasm",
52
+ "onnx",
53
+ "transformers"
54
+ ],
55
+ "dependencies": {
56
+ "@nuxt/kit": "^4.4.2"
57
+ },
58
+ "devDependencies": {
59
+ "@huggingface/transformers": "^3.8.1",
60
+ "@nuxt/devtools": "^3.2.3",
61
+ "@nuxt/eslint-config": "^1.15.2",
62
+ "@nuxt/module-builder": "^1.0.2",
63
+ "@nuxt/schema": "^4.4.2",
64
+ "@nuxt/test-utils": "^4.0.0",
65
+ "@types/node": "latest",
66
+ "changelogen": "^0.6.2",
67
+ "eslint": "^10.0.3",
68
+ "nuxt": "^4.4.2",
69
+ "onnxruntime-web": "^1.24.3",
70
+ "typescript": "~5.9.3",
71
+ "vitest": "^4.0.18",
72
+ "vue-tsc": "^3.2.5"
73
+ }
74
+ }