@legendapp/create-spark 0.0.0-stage → 0.0.1-next.6

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 (114) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +17 -2
  3. package/dist/index.js +174697 -0
  4. package/dist/npm-bin/npm +6 -0
  5. package/dist/npm-bin/npm.cmd +1 -0
  6. package/dist/release.json +42 -0
  7. package/package.json +30 -4
  8. package/templates/blank-typescript/.claude/skills/spark/SKILL.md +9 -0
  9. package/templates/blank-typescript/AGENTS.md +4 -0
  10. package/templates/blank-typescript/App.tsx +23 -0
  11. package/templates/blank-typescript/CLAUDE.md +4 -0
  12. package/templates/blank-typescript/README.md +15 -0
  13. package/templates/blank-typescript/app.json +11 -0
  14. package/templates/blank-typescript/assets/icon.png +0 -0
  15. package/templates/blank-typescript/desktop.config.json +21 -0
  16. package/templates/blank-typescript/gitignore +8 -0
  17. package/templates/blank-typescript/index.ts +5 -0
  18. package/templates/blank-typescript/metro.config.js +3 -0
  19. package/templates/blank-typescript/package.json +101 -0
  20. package/templates/blank-typescript/tsconfig.json +10 -0
  21. package/templates/diff-lite/App.tsx +34 -0
  22. package/templates/diff-lite/Git.macos.tsx +13 -0
  23. package/templates/diff-lite/Git.tsx +1 -0
  24. package/templates/diff-lite/compare.ts +12 -0
  25. package/templates/document-editor/App.tsx +34 -0
  26. package/templates/document-editor/Integration.macos.tsx +59 -0
  27. package/templates/document-editor/Integration.tsx +13 -0
  28. package/templates/document-editor/Integration.web.tsx +14 -0
  29. package/templates/document-editor/Integration.windows.tsx +59 -0
  30. package/templates/document-editor/document.ts +58 -0
  31. package/templates/document-editor/io.desktop.ts +27 -0
  32. package/templates/document-editor/io.macos.ts +7 -0
  33. package/templates/document-editor/io.ts +31 -0
  34. package/templates/document-editor/io.web.ts +21 -0
  35. package/templates/document-editor/io.windows.ts +1 -0
  36. package/templates/document-editor/sessions.ts +8 -0
  37. package/templates/document-editor/useDocument.ts +6 -0
  38. package/templates/example-shared/Lifecycle.desktop.tsx +25 -0
  39. package/templates/example-shared/Lifecycle.macos.tsx +1 -0
  40. package/templates/example-shared/Lifecycle.tsx +14 -0
  41. package/templates/example-shared/Lifecycle.web.tsx +20 -0
  42. package/templates/example-shared/Lifecycle.windows.tsx +1 -0
  43. package/templates/example-shared/OpenFiles.desktop.tsx +23 -0
  44. package/templates/example-shared/OpenFiles.macos.tsx +1 -0
  45. package/templates/example-shared/OpenFiles.tsx +2 -0
  46. package/templates/example-shared/OpenFiles.windows.tsx +1 -0
  47. package/templates/example-shared/document.ts +58 -0
  48. package/templates/example-shared/io.desktop.ts +27 -0
  49. package/templates/example-shared/io.macos.ts +7 -0
  50. package/templates/example-shared/io.ts +31 -0
  51. package/templates/example-shared/io.web.ts +21 -0
  52. package/templates/example-shared/io.windows.ts +1 -0
  53. package/templates/example-shared/lifecycle-types.ts +10 -0
  54. package/templates/example-shared/lifetime.ts +23 -0
  55. package/templates/example-shared/records.ts +51 -0
  56. package/templates/example-shared/storage.ts +6 -0
  57. package/templates/example-shared/useModel.ts +6 -0
  58. package/templates/music-lite/Activation.desktop.tsx +4 -0
  59. package/templates/music-lite/Activation.macos.tsx +1 -0
  60. package/templates/music-lite/Activation.tsx +1 -0
  61. package/templates/music-lite/Activation.windows.tsx +1 -0
  62. package/templates/music-lite/App.tsx +38 -0
  63. package/templates/music-lite/assets.desktop.ts +7 -0
  64. package/templates/music-lite/assets.macos.ts +1 -0
  65. package/templates/music-lite/assets.ts +18 -0
  66. package/templates/music-lite/assets.web.ts +37 -0
  67. package/templates/music-lite/assets.windows.ts +1 -0
  68. package/templates/music-lite/model.ts +91 -0
  69. package/templates/music-lite/store.ts +10 -0
  70. package/templates/notes-lite/Activation.desktop.tsx +5 -0
  71. package/templates/notes-lite/Activation.macos.tsx +1 -0
  72. package/templates/notes-lite/Activation.tsx +1 -0
  73. package/templates/notes-lite/Activation.windows.tsx +1 -0
  74. package/templates/notes-lite/App.tsx +92 -0
  75. package/templates/notes-lite/Desktop.desktop.ts +47 -0
  76. package/templates/notes-lite/Desktop.macos.ts +1 -0
  77. package/templates/notes-lite/Desktop.ts +7 -0
  78. package/templates/notes-lite/Desktop.windows.ts +1 -0
  79. package/templates/notes-lite/Theme.tsx +17 -0
  80. package/templates/notes-lite/model.ts +61 -0
  81. package/templates/notes-lite/search.ts +3 -0
  82. package/templates/notes-lite/session.ts +15 -0
  83. package/templates/notes-lite/store.ts +4 -0
  84. package/templates/notes-lite/window-session.ts +63 -0
  85. package/templates/universal/.claude/skills/spark/SKILL.md +9 -0
  86. package/templates/universal/AGENTS.md +4 -0
  87. package/templates/universal/App.tsx +57 -0
  88. package/templates/universal/CLAUDE.md +4 -0
  89. package/templates/universal/README.md +15 -0
  90. package/templates/universal/app.json +15 -0
  91. package/templates/universal/assets/icon.png +0 -0
  92. package/templates/universal/desktop.config.json +64 -0
  93. package/templates/universal/gitignore +10 -0
  94. package/templates/universal/global.css +31 -0
  95. package/templates/universal/index.ts +4 -0
  96. package/templates/universal/metro.config.js +7 -0
  97. package/templates/universal/package.json +115 -0
  98. package/templates/universal/react-native.config.js +2 -0
  99. package/templates/universal/tsconfig.json +10 -0
  100. package/templates/universal/uniwind-types.d.ts +10 -0
  101. package/templates/windows/.claude/skills/spark/SKILL.md +9 -0
  102. package/templates/windows/AGENTS.md +4 -0
  103. package/templates/windows/App.tsx +16 -0
  104. package/templates/windows/CLAUDE.md +4 -0
  105. package/templates/windows/README.md +15 -0
  106. package/templates/windows/app.json +11 -0
  107. package/templates/windows/assets/icon.png +0 -0
  108. package/templates/windows/desktop.config.json +10 -0
  109. package/templates/windows/gitignore +8 -0
  110. package/templates/windows/index.ts +3 -0
  111. package/templates/windows/metro.config.js +3 -0
  112. package/templates/windows/package.json +102 -0
  113. package/templates/windows/react-native.config.js +2 -0
  114. package/templates/windows/tsconfig.json +10 -0
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 LegendApp
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md CHANGED
@@ -1,3 +1,18 @@
1
- # Temporary Holding Version
1
+ # Create Spark
2
2
 
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
3
+ Create a Legend Spark app with the CLI and native desktop APIs from `@legendapp/spark`.
4
+ Requires Node 24.19.0 or newer on macOS 14+ with Apple Silicon.
5
+
6
+ ```sh
7
+ npm create @legendapp/spark@next MyApp
8
+ cd MyApp
9
+ npm run macos
10
+ ```
11
+
12
+ The app opens in Spark Runner, downloaded from the matching GitHub release.
13
+ Bun is optional. Select another installed package manager with
14
+ `-- --package-manager bun|pnpm|yarn`. Native builds require Xcode and CocoaPods.
15
+
16
+ Spark is experimental. Windows is a preview without a downloadable Runner.
17
+ See the [documentation](https://legend.so/spark) and
18
+ [source](https://github.com/LegendApp/legend-spark).