@jseeio/jsee 0.4.2 → 0.8.1

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 (66) hide show
  1. package/CHANGELOG.md +96 -0
  2. package/LICENSE +21 -0
  3. package/README.md +583 -55
  4. package/dist/2b3e1faf89f94a483539.png +0 -0
  5. package/dist/416d91365b44e4b4f477.png +0 -0
  6. package/dist/8f2c4d11474275fbc161.png +0 -0
  7. package/dist/jsee.core.js +1 -0
  8. package/dist/jsee.full.js +1 -0
  9. package/dist/jsee.runtime.js +2 -1
  10. package/package.json +84 -18
  11. package/src/app.js +127 -32
  12. package/src/browser-bundle-node.js +9 -0
  13. package/src/cli.js +479 -67
  14. package/src/extended-imports.js +11 -0
  15. package/src/main.js +232 -44
  16. package/src/overlay.js +26 -1
  17. package/src/utils.js +386 -16
  18. package/templates/common-inputs.js +88 -0
  19. package/templates/common-outputs.js +340 -4
  20. package/templates/minimal-app.vue +367 -0
  21. package/templates/minimal-input.vue +573 -0
  22. package/templates/minimal-output.vue +426 -0
  23. package/templates/virtual-table.vue +194 -0
  24. package/.claude/settings.local.json +0 -15
  25. package/.eslintrc.js +0 -38
  26. package/AGENTS.md +0 -65
  27. package/CLAUDE.md +0 -5
  28. package/CNAME +0 -1
  29. package/_config.yml +0 -26
  30. package/dist/jsee.js +0 -1
  31. package/dump.sh +0 -23
  32. package/jest-puppeteer.config.js +0 -14
  33. package/jest.config.js +0 -8
  34. package/jest.unit.config.js +0 -8
  35. package/jsee.dump.txt +0 -5459
  36. package/load/index.html +0 -52
  37. package/templates/bulma-app.vue +0 -242
  38. package/templates/bulma-input.vue +0 -125
  39. package/templates/bulma-output.vue +0 -101
  40. package/test/arrow-main.html +0 -18
  41. package/test/arrow-worker.html +0 -18
  42. package/test/class.html +0 -22
  43. package/test/code.html +0 -25
  44. package/test/codew.html +0 -25
  45. package/test/example-class.js +0 -8
  46. package/test/example-sum.js +0 -3
  47. package/test/fixtures/lodash-like.js +0 -15
  48. package/test/fixtures/upload-sample.csv +0 -3
  49. package/test/importw.html +0 -28
  50. package/test/minimal.html +0 -14
  51. package/test/minimal1.html +0 -13
  52. package/test/minimal2.html +0 -15
  53. package/test/minimal3.html +0 -10
  54. package/test/minimal4.html +0 -22
  55. package/test/pipeline.html +0 -52
  56. package/test/python.html +0 -41
  57. package/test/runtime-arrow.html +0 -18
  58. package/test/string.html +0 -26
  59. package/test/stringw.html +0 -29
  60. package/test/sum.schema.json +0 -17
  61. package/test/sumw.schema.json +0 -15
  62. package/test/test-basic.test.js +0 -630
  63. package/test/test-python.test.js +0 -23
  64. package/test/unit/cli-fetch.test.js +0 -229
  65. package/test/unit/utils.test.js +0 -908
  66. package/webpack.config.js +0 -101
package/AGENTS.md DELETED
@@ -1,65 +0,0 @@
1
- # Project briefing for awesome agents
2
-
3
- You are the most talented and experienced agent in the world, and you have been tasked with leading the development of JSEE, a powerful tool for automating the creation of interactive web applications.
4
-
5
- ## Philosophy
6
-
7
- JSEE abstracts away the complexities of web development, allowing users to focus on their core logic and data. It provides a simple interface for defining inputs, outputs, and processing logic, and takes care of the rest. By leveraging modern web technologies like Vue.js and Web Workers, JSEE ensures that applications are responsive and efficient.
8
-
9
-
10
- ## Style
11
-
12
- Use **2-space indentation** and **semicolon-free** syntax. Use **single quotes** for strings. Preserve the existing style in the codebase, and avoid introducing new formatting styles or conventions.
13
-
14
- ## Quick start
15
-
16
- ```bash
17
- npm install # install dependencies
18
- npm run build-dev # fast dev build (no tests, no minification)
19
- npm run build # production build + full test suite
20
- npm run test:unit # unit tests only (fast, no browser)
21
- npm run test:basic # E2E tests (auto-starts http-server on 8484)
22
- ```
23
-
24
- ## Repo map
25
-
26
- ```
27
- src/
28
- main.js # JSEE class — schema parsing, model/worker init, run loop
29
- app.js # Vue 3 app factory — creates reactive GUI from schema inputs/outputs
30
- worker.js # Web Worker entry — receives model config, runs importScripts + model code
31
- utils.js # Shared helpers — URL resolution, script loading, serialization, validation
32
- cli.js # CLI (`npx jsee`) — HTML generation, --fetch bundling, dev server
33
- overlay.js # Loading/progress overlay component
34
- constants.js # Shared defaults (container selector, timeouts, chunk sizes)
35
- templates/ # Vue SFC templates (bulma-app, bulma-input, bulma-output, file-picker)
36
- test/
37
- unit/ # Jest unit tests (no browser): utils.test.js, cli-fetch.test.js
38
- test-basic.test.js # Puppeteer E2E tests against built dist/
39
- test-python.test.js # Pyodide integration test
40
- fixtures/ # Test fixtures (lodash-like.js, upload-sample.csv)
41
- dist/ # Build output: jsee.js (dev), jsee.runtime.js (production)
42
- apps/ # Example apps (hashr, detect, qrcode, etc.)
43
- webpack.config.js # Two build targets: full (jsee.js) and runtime (jsee.runtime.js)
44
- ```
45
-
46
-
47
- ## Definition of done
48
- - Run: `npm run build` (or `npm run build-dev` during iteration)
49
- - Run unit tests: `npm run test:unit` (fast, no browser needed)
50
- - Run E2E tests: `npm run test:basic` (auto-starts http-server on port 8484)
51
- - Add/adjust unit tests for core logic in `test/unit/`
52
-
53
- ## Constraints
54
- - Don’t add new production dependencies without asking.
55
- - Update the `README.md`, `CHANGELOG.md` and `index.html` with any user-facing changes or new features.
56
- - Commit messages should be clear and descriptive, following the format: `feature|fix|test|docs: short description` (e.g., `feature: add new column type classification`). No multiline and EOF!
57
- - Each change: for non-trivial changes, add comments, update docs (new features that can be used by users should be represented in `README.md` and `CHANGELOG.md`), run tests, commit with a clear message. For trivial changes (e.g., fixing typos), you can skip some steps but still ensure the change is well-documented in the commit message.
58
- - A lot of apps depend on JSEE, so be mindful of backward compatibility. If a change is breaking, stop and ask for help. If you need to make a breaking change, update the version in `package.json` and clearly document the change in `CHANGELOG.md`.
59
- - Ask for confirmation before each commit
60
- - Commit changes one at a time, with clear messages. Avoid large commits that combine multiple changes.
61
-
62
- ## Conventions
63
- - Formatting: no formatter is configured; preserve existing style (2-space indentation, semicolon-free, single quotes)
64
- - Types: plain JavaScript with runtime type checks (`typeof`, `isNaN`) and counters
65
- - Error handling: prefer tolerant stream processing (skip malformed lines, classify invalid/empty values as `missing`, degrade expensive stats for unsuitable columns instead of hard-failing)
package/CLAUDE.md DELETED
@@ -1,5 +0,0 @@
1
- See @AGENTS.md for the canonical project briefing.
2
-
3
- Claude workflow:
4
- - Explore in Plan Mode, then implement, then run tests.
5
- - Prefer adding stable rules to AGENTS.md via PR.
package/CNAME DELETED
@@ -1 +0,0 @@
1
- jsee.org
package/_config.yml DELETED
@@ -1,26 +0,0 @@
1
- title: "JSEE"
2
- description: > # this means to ignore newlines until "show_excerpts:"
3
- JavaScript Execution Environment
4
-
5
- show_excerpts: false
6
-
7
- logo_header:
8
- src: https://jsee.io/design/jsee_logo.svg
9
- href: https://jsee.org/
10
- width: 70
11
-
12
- logo_footer:
13
- src: https://jsee.io/design/jsee_logo.svg
14
- href: https://jsee.org/
15
- width: 50
16
-
17
- header_pages:
18
- -
19
-
20
- minima:
21
- social_links:
22
- twitter: jseeio
23
- facebook: jseeio
24
- github: jseeio
25
-
26
- remote_theme: "jseeio/minima"