@almadar/orb 0.2.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 (133) hide show
  1. package/README.md +83 -0
  2. package/bin/orb +101 -0
  3. package/package.json +58 -0
  4. package/scripts/postinstall.js +51 -0
  5. package/shells/almadar-shell/LICENSE +72 -0
  6. package/shells/almadar-shell/README.md +25 -0
  7. package/shells/almadar-shell/locales/en.json +120 -0
  8. package/shells/almadar-shell/package.json +35 -0
  9. package/shells/almadar-shell/packages/client/eslint.config.cjs +23 -0
  10. package/shells/almadar-shell/packages/client/index.html +13 -0
  11. package/shells/almadar-shell/packages/client/package.json +61 -0
  12. package/shells/almadar-shell/packages/client/postcss.config.js +6 -0
  13. package/shells/almadar-shell/packages/client/src/App.tsx +81 -0
  14. package/shells/almadar-shell/packages/client/src/config/firebase.ts +37 -0
  15. package/shells/almadar-shell/packages/client/src/features/auth/AuthContext.tsx +139 -0
  16. package/shells/almadar-shell/packages/client/src/features/auth/authService.ts +83 -0
  17. package/shells/almadar-shell/packages/client/src/features/auth/components/Login.tsx +218 -0
  18. package/shells/almadar-shell/packages/client/src/features/auth/components/ProtectedRoute.tsx +27 -0
  19. package/shells/almadar-shell/packages/client/src/features/auth/components/UserProfile.tsx +68 -0
  20. package/shells/almadar-shell/packages/client/src/features/auth/components/index.ts +3 -0
  21. package/shells/almadar-shell/packages/client/src/features/auth/index.ts +13 -0
  22. package/shells/almadar-shell/packages/client/src/features/auth/types.ts +24 -0
  23. package/shells/almadar-shell/packages/client/src/index.css +42 -0
  24. package/shells/almadar-shell/packages/client/src/main.tsx +8 -0
  25. package/shells/almadar-shell/packages/client/src/navigation/index.ts +55 -0
  26. package/shells/almadar-shell/packages/client/src/pages/index.ts +12 -0
  27. package/shells/almadar-shell/packages/client/tailwind-preset.cjs +259 -0
  28. package/shells/almadar-shell/packages/client/tailwind.config.js +21 -0
  29. package/shells/almadar-shell/packages/client/tsconfig.json +33 -0
  30. package/shells/almadar-shell/packages/client/vite.config.ts +50 -0
  31. package/shells/almadar-shell/packages/server/eslint.config.cjs +19 -0
  32. package/shells/almadar-shell/packages/server/package.json +39 -0
  33. package/shells/almadar-shell/packages/server/src/app.ts +36 -0
  34. package/shells/almadar-shell/packages/server/src/index.ts +30 -0
  35. package/shells/almadar-shell/packages/server/src/routes.ts +11 -0
  36. package/shells/almadar-shell/packages/server/src/types/express.d.ts +15 -0
  37. package/shells/almadar-shell/packages/server/tsconfig.json +23 -0
  38. package/shells/almadar-shell/packages/shared/package.json +11 -0
  39. package/shells/almadar-shell/packages/shared/pnpm-lock.yaml +22 -0
  40. package/shells/almadar-shell/packages/shared/src/index.ts +2 -0
  41. package/shells/almadar-shell/pnpm-lock.yaml +8791 -0
  42. package/shells/almadar-shell/pnpm-workspace.yaml +2 -0
  43. package/shells/almadar-shell/tsup.config.ts +13 -0
  44. package/shells/almadar-shell/turbo.json +17 -0
  45. package/shells/almadar-shell/vitest.config.ts +8 -0
  46. package/shells/almadar-shell-hono/LICENSE +72 -0
  47. package/shells/almadar-shell-hono/README.md +25 -0
  48. package/shells/almadar-shell-hono/locales/en.json +120 -0
  49. package/shells/almadar-shell-hono/package.json +31 -0
  50. package/shells/almadar-shell-hono/packages/client/eslint.config.cjs +23 -0
  51. package/shells/almadar-shell-hono/packages/client/index.html +13 -0
  52. package/shells/almadar-shell-hono/packages/client/package-lock.json +9750 -0
  53. package/shells/almadar-shell-hono/packages/client/package.json +61 -0
  54. package/shells/almadar-shell-hono/packages/client/postcss.config.js +6 -0
  55. package/shells/almadar-shell-hono/packages/client/src/App.tsx +84 -0
  56. package/shells/almadar-shell-hono/packages/client/src/config/firebase.ts +37 -0
  57. package/shells/almadar-shell-hono/packages/client/src/features/auth/AuthContext.tsx +139 -0
  58. package/shells/almadar-shell-hono/packages/client/src/features/auth/authService.ts +83 -0
  59. package/shells/almadar-shell-hono/packages/client/src/features/auth/components/Login.tsx +218 -0
  60. package/shells/almadar-shell-hono/packages/client/src/features/auth/components/ProtectedRoute.tsx +27 -0
  61. package/shells/almadar-shell-hono/packages/client/src/features/auth/components/UserProfile.tsx +68 -0
  62. package/shells/almadar-shell-hono/packages/client/src/features/auth/components/index.ts +3 -0
  63. package/shells/almadar-shell-hono/packages/client/src/features/auth/index.ts +13 -0
  64. package/shells/almadar-shell-hono/packages/client/src/features/auth/types.ts +24 -0
  65. package/shells/almadar-shell-hono/packages/client/src/index.css +35 -0
  66. package/shells/almadar-shell-hono/packages/client/src/main.tsx +8 -0
  67. package/shells/almadar-shell-hono/packages/client/src/navigation/index.ts +55 -0
  68. package/shells/almadar-shell-hono/packages/client/src/pages/index.ts +12 -0
  69. package/shells/almadar-shell-hono/packages/client/tailwind-preset.cjs +259 -0
  70. package/shells/almadar-shell-hono/packages/client/tailwind.config.js +21 -0
  71. package/shells/almadar-shell-hono/packages/client/tsconfig.json +33 -0
  72. package/shells/almadar-shell-hono/packages/client/vite.config.ts +50 -0
  73. package/shells/almadar-shell-hono/packages/server/eslint.config.cjs +19 -0
  74. package/shells/almadar-shell-hono/packages/server/package.json +38 -0
  75. package/shells/almadar-shell-hono/packages/server/pnpm-lock.yaml +4665 -0
  76. package/shells/almadar-shell-hono/packages/server/src/app.ts +31 -0
  77. package/shells/almadar-shell-hono/packages/server/src/index.ts +31 -0
  78. package/shells/almadar-shell-hono/packages/server/src/routes.ts +12 -0
  79. package/shells/almadar-shell-hono/packages/server/src/serve.ts +45 -0
  80. package/shells/almadar-shell-hono/packages/server/tsconfig.json +23 -0
  81. package/shells/almadar-shell-hono/packages/shared/package.json +25 -0
  82. package/shells/almadar-shell-hono/packages/shared/pnpm-lock.yaml +919 -0
  83. package/shells/almadar-shell-hono/packages/shared/src/index.ts +2 -0
  84. package/shells/almadar-shell-hono/packages/shared/tsconfig.json +17 -0
  85. package/shells/almadar-shell-hono/packages/shared/tsup.config.ts +10 -0
  86. package/shells/almadar-shell-hono/pnpm-lock.yaml +9441 -0
  87. package/shells/almadar-shell-hono/pnpm-workspace.yaml +2 -0
  88. package/shells/almadar-shell-hono/tsup.config.ts +13 -0
  89. package/shells/almadar-shell-hono/turbo.json +17 -0
  90. package/shells/almadar-shell-hono/vitest.config.ts +8 -0
  91. package/shells/orb-shell/LICENSE +21 -0
  92. package/shells/orb-shell/README.md +25 -0
  93. package/shells/orb-shell/locales/en.json +120 -0
  94. package/shells/orb-shell/package.json +35 -0
  95. package/shells/orb-shell/packages/client/eslint.config.cjs +23 -0
  96. package/shells/orb-shell/packages/client/index.html +13 -0
  97. package/shells/orb-shell/packages/client/package-lock.json +11390 -0
  98. package/shells/orb-shell/packages/client/package.json +55 -0
  99. package/shells/orb-shell/packages/client/postcss.config.js +6 -0
  100. package/shells/orb-shell/packages/client/src/App.tsx +79 -0
  101. package/shells/orb-shell/packages/client/src/config/firebase.ts +37 -0
  102. package/shells/orb-shell/packages/client/src/features/auth/AuthContext.tsx +139 -0
  103. package/shells/orb-shell/packages/client/src/features/auth/authService.ts +83 -0
  104. package/shells/orb-shell/packages/client/src/features/auth/components/Login.tsx +218 -0
  105. package/shells/orb-shell/packages/client/src/features/auth/components/ProtectedRoute.tsx +27 -0
  106. package/shells/orb-shell/packages/client/src/features/auth/components/UserProfile.tsx +68 -0
  107. package/shells/orb-shell/packages/client/src/features/auth/components/index.ts +3 -0
  108. package/shells/orb-shell/packages/client/src/features/auth/index.ts +13 -0
  109. package/shells/orb-shell/packages/client/src/features/auth/types.ts +24 -0
  110. package/shells/orb-shell/packages/client/src/index.css +35 -0
  111. package/shells/orb-shell/packages/client/src/main.tsx +10 -0
  112. package/shells/orb-shell/packages/client/src/navigation/index.ts +55 -0
  113. package/shells/orb-shell/packages/client/src/pages/index.ts +12 -0
  114. package/shells/orb-shell/packages/client/tailwind-preset.cjs +243 -0
  115. package/shells/orb-shell/packages/client/tailwind.config.js +15 -0
  116. package/shells/orb-shell/packages/client/tsconfig.json +33 -0
  117. package/shells/orb-shell/packages/client/vite.config.ts +49 -0
  118. package/shells/orb-shell/packages/server/eslint.config.cjs +19 -0
  119. package/shells/orb-shell/packages/server/package-lock.json +6323 -0
  120. package/shells/orb-shell/packages/server/package.json +37 -0
  121. package/shells/orb-shell/packages/server/src/app.ts +36 -0
  122. package/shells/orb-shell/packages/server/src/index.ts +30 -0
  123. package/shells/orb-shell/packages/server/src/routes.ts +11 -0
  124. package/shells/orb-shell/packages/server/src/types/express.d.ts +15 -0
  125. package/shells/orb-shell/packages/server/tsconfig.json +23 -0
  126. package/shells/orb-shell/packages/shared/package-lock.json +24 -0
  127. package/shells/orb-shell/packages/shared/package.json +10 -0
  128. package/shells/orb-shell/packages/shared/src/index.ts +2 -0
  129. package/shells/orb-shell/pnpm-lock.yaml +9433 -0
  130. package/shells/orb-shell/pnpm-workspace.yaml +2 -0
  131. package/shells/orb-shell/tsup.config.ts +13 -0
  132. package/shells/orb-shell/turbo.json +17 -0
  133. package/shells/orb-shell/vitest.config.ts +8 -0
package/README.md ADDED
@@ -0,0 +1,83 @@
1
+ # @almadar/orb
2
+
3
+ Orb CLI — compile .orb programs to full-stack applications.
4
+
5
+ ## Installation
6
+
7
+ ```bash
8
+ npm install -g @almadar/orb
9
+ ```
10
+
11
+ Or use the curl installer:
12
+
13
+ ```bash
14
+ curl -fsSL https://orb.almadar.io/install.sh | sh
15
+ ```
16
+
17
+ ## Usage
18
+
19
+ ```bash
20
+ # Validate an .orb file (0 errors, 0 warnings required)
21
+ orbital validate app.orb
22
+
23
+ # Lower .lolo syntax to .orb JSON IR
24
+ orbital emit-orb app.orb
25
+
26
+ # Compile to TypeScript shell
27
+ orbital compile app.orb --shell typescript
28
+
29
+ # Start development server
30
+ orbital dev app.orb
31
+ ```
32
+
33
+ ## Quick Example
34
+
35
+ ```lolo
36
+ orbital TaskApp {
37
+ entity Task [persistent: tasks] {
38
+ id : string!
39
+ title : string!
40
+ status : string = "pending"
41
+ }
42
+
43
+ trait TaskBrowser -> Task [interaction] {
44
+ state browsing {
45
+ INIT -> browsing
46
+ (fetch Task)
47
+ (render-ui main { type: "entity-table", entity: "Task", fields: ["title", "status"] })
48
+ CREATE -> creating
49
+ (render-ui modal { type: "modal", isOpen: true, title: "New Task",
50
+ children: [{ type: "form-section", entity: "Task", fields: ["title", "status"], mode: "create" }] })
51
+ }
52
+ state creating {
53
+ SAVE -> browsing
54
+ (persist create Task @payload.data)
55
+ (render-ui modal null)
56
+ CANCEL -> browsing
57
+ (render-ui modal null)
58
+ }
59
+ }
60
+
61
+ page "/tasks" -> TaskBrowser
62
+ }
63
+ ```
64
+
65
+ ## Commands
66
+
67
+ | Command | Description |
68
+ |---------|-------------|
69
+ | `orbital validate <file>` | Validate an .orb file |
70
+ | `orbital emit-orb <file>` | Lower .lolo to .orb JSON (stdout) |
71
+ | `orbital compile <file>` | Compile to generated code |
72
+ | `orbital dev <file>` | Start development server |
73
+ | `orbital new <name>` | Create a new project |
74
+
75
+ ## Documentation
76
+
77
+ - [Getting Started](https://orb.almadar.io/docs/getting-started/introduction)
78
+ - [CLI Reference](https://orb.almadar.io/docs/reference/cli)
79
+ - [Language Reference](https://orb.almadar.io/docs/core-concepts/entities)
80
+
81
+ ## License
82
+
83
+ BSL 1.1
package/bin/orb ADDED
@@ -0,0 +1,101 @@
1
+ #!/usr/bin/env node
2
+
3
+ const { execFileSync } = require('child_process');
4
+ const path = require('path');
5
+ const fs = require('fs');
6
+
7
+ const BINARY_NAME = process.platform === 'win32' ? 'orb.exe' : 'orb';
8
+
9
+ function getBinaryPath() {
10
+ const platform = process.platform;
11
+ const arch = process.arch;
12
+
13
+ const platformMap = {
14
+ 'darwin-x64': '@almadar/orb-darwin-x64',
15
+ 'darwin-arm64': '@almadar/orb-darwin-arm64',
16
+ 'linux-x64': '@almadar/orb-linux-x64',
17
+ 'linux-arm64': '@almadar/orb-linux-arm64',
18
+ 'win32-x64': '@almadar/orb-windows-x64',
19
+ };
20
+
21
+ const key = `${platform}-${arch}`;
22
+ const packageName = platformMap[key];
23
+
24
+ if (!packageName) {
25
+ console.error(`Unsupported platform: ${platform}-${arch}`);
26
+ console.error('Supported: darwin-x64, darwin-arm64, linux-x64, linux-arm64, win32-x64');
27
+ process.exit(1);
28
+ }
29
+
30
+ const possiblePaths = [
31
+ path.join(__dirname, '..', 'node_modules', packageName, BINARY_NAME),
32
+ path.join(__dirname, '..', '..', packageName, BINARY_NAME),
33
+ path.join(__dirname, '..', '..', '..', packageName, BINARY_NAME),
34
+ ];
35
+
36
+ for (const binaryPath of possiblePaths) {
37
+ if (fs.existsSync(binaryPath)) {
38
+ return { binaryPath, platformDir: path.dirname(binaryPath) };
39
+ }
40
+ }
41
+
42
+ console.error(`Could not find Orb binary for ${platform}-${arch}`);
43
+ console.error('Try reinstalling: npm install -g @almadar/orb');
44
+ process.exit(1);
45
+ }
46
+
47
+ function getShellsDir() {
48
+ if (process.env.ORBITAL_SHELLS_DIR) {
49
+ return process.env.ORBITAL_SHELLS_DIR;
50
+ }
51
+
52
+ const possiblePaths = [
53
+ path.join(__dirname, '..', 'shells'),
54
+ path.join(__dirname, '..', '..', '@almadar', 'orb', 'shells'),
55
+ ];
56
+
57
+ for (const shellsPath of possiblePaths) {
58
+ if (fs.existsSync(shellsPath) && (
59
+ fs.existsSync(path.join(shellsPath, 'almadar-shell')) ||
60
+ fs.existsSync(path.join(shellsPath, 'typescript-shell'))
61
+ )) {
62
+ return shellsPath;
63
+ }
64
+ }
65
+
66
+ return null;
67
+ }
68
+
69
+ const { binaryPath, platformDir } = getBinaryPath();
70
+ const shellsDir = getShellsDir();
71
+
72
+ const env = { ...process.env };
73
+
74
+ if (shellsDir) {
75
+ env.ORBITAL_SHELLS_DIR = shellsDir;
76
+ }
77
+
78
+ // Bun runtime (sibling to Rust binary in platform package)
79
+ const bunName = process.platform === 'win32' ? 'bun.exe' : 'bun';
80
+ const bunPath = path.join(platformDir, bunName);
81
+ if (fs.existsSync(bunPath)) {
82
+ env.ORB_BUN_PATH = bunPath;
83
+ }
84
+
85
+ // Agent dist (agent/ directory in platform package)
86
+ const agentDir = path.join(platformDir, 'agent');
87
+ if (fs.existsSync(agentDir)) {
88
+ env.ORB_AGENT_DIR = agentDir;
89
+ }
90
+
91
+ try {
92
+ execFileSync(binaryPath, process.argv.slice(2), {
93
+ stdio: 'inherit',
94
+ env: env,
95
+ });
96
+ } catch (error) {
97
+ if (error.status !== undefined) {
98
+ process.exit(error.status);
99
+ }
100
+ throw error;
101
+ }
package/package.json ADDED
@@ -0,0 +1,58 @@
1
+ {
2
+ "name": "@almadar/orb",
3
+ "version": "0.2.0",
4
+ "description": "Orb CLI - deterministic when it can be, intelligent when it needs to be",
5
+ "license": "BSL-1.1",
6
+ "repository": {
7
+ "type": "git",
8
+ "url": "https://github.com/almadar-io/orb.git",
9
+ "directory": "cli/npm"
10
+ },
11
+ "homepage": "https://orb.almadar.io",
12
+ "bugs": {
13
+ "url": "https://github.com/almadar-io/orb/issues"
14
+ },
15
+ "keywords": [
16
+ "orb",
17
+ "orbital",
18
+ "cli",
19
+ "compiler",
20
+ "codegen",
21
+ "full-stack",
22
+ "react",
23
+ "typescript",
24
+ "python",
25
+ "fastapi"
26
+ ],
27
+ "bin": {
28
+ "orb": "bin/orb"
29
+ },
30
+ "files": [
31
+ "bin",
32
+ "scripts",
33
+ "shells",
34
+ "README.md"
35
+ ],
36
+ "scripts": {
37
+ "postinstall": "node scripts/postinstall.js"
38
+ },
39
+ "os": [
40
+ "darwin",
41
+ "linux",
42
+ "win32"
43
+ ],
44
+ "cpu": [
45
+ "x64",
46
+ "arm64"
47
+ ],
48
+ "engines": {
49
+ "node": ">=16.0.0"
50
+ },
51
+ "optionalDependencies": {
52
+ "@almadar/orb-darwin-x64": "0.2.0",
53
+ "@almadar/orb-darwin-arm64": "0.2.0",
54
+ "@almadar/orb-linux-x64": "0.2.0",
55
+ "@almadar/orb-linux-arm64": "0.2.0",
56
+ "@almadar/orb-windows-x64": "0.2.0"
57
+ }
58
+ }
@@ -0,0 +1,51 @@
1
+ #!/usr/bin/env node
2
+
3
+ const fs = require('fs');
4
+ const path = require('path');
5
+
6
+ const platform = process.platform;
7
+ const arch = process.arch;
8
+
9
+ const platformMap = {
10
+ 'darwin-x64': '@almadar/orb-darwin-x64',
11
+ 'darwin-arm64': '@almadar/orb-darwin-arm64',
12
+ 'linux-x64': '@almadar/orb-linux-x64',
13
+ 'linux-arm64': '@almadar/orb-linux-arm64',
14
+ 'win32-x64': '@almadar/orb-windows-x64',
15
+ };
16
+
17
+ const key = `${platform}-${arch}`;
18
+ const packageName = platformMap[key];
19
+
20
+ if (!packageName) {
21
+ console.warn(`\n Orb CLI: No pre-built binary for ${platform}-${arch}`);
22
+ console.warn(' Build from source: https://github.com/almadar-io/orb#building-from-source\n');
23
+ process.exit(0);
24
+ }
25
+
26
+ const possiblePaths = [
27
+ path.join(__dirname, '..', 'node_modules', packageName),
28
+ path.join(__dirname, '..', '..', packageName),
29
+ path.join(__dirname, '..', '..', '..', packageName),
30
+ ];
31
+
32
+ const platformDir = possiblePaths.find(p => fs.existsSync(p));
33
+
34
+ if (!platformDir) {
35
+ console.warn(`\n Orb CLI: Platform package ${packageName} not found`);
36
+ console.warn(' Try: npm install -g @almadar/orb --include=optional\n');
37
+ process.exit(0);
38
+ }
39
+
40
+ // Verify components
41
+ const binaryName = platform === 'win32' ? 'orb.exe' : 'orb';
42
+ const bunName = platform === 'win32' ? 'bun.exe' : 'bun';
43
+
44
+ const hasBinary = fs.existsSync(path.join(platformDir, binaryName));
45
+ const hasBun = fs.existsSync(path.join(platformDir, bunName));
46
+ const hasAgent = fs.existsSync(path.join(platformDir, 'agent', 'cli.js'));
47
+
48
+ console.log(`Orb CLI installed for ${platform}-${arch}:`);
49
+ console.log(` Binary: ${hasBinary ? 'ok' : 'missing'}`);
50
+ console.log(` Bun: ${hasBun ? 'ok' : 'not bundled (agent features require bun on PATH)'}`);
51
+ console.log(` Agent: ${hasAgent ? 'ok' : 'not bundled (agent features unavailable)'}`);
@@ -0,0 +1,72 @@
1
+ Business Source License 1.1
2
+
3
+ Parameters
4
+
5
+ Licensor: Almadar FZE
6
+ Licensed Work: KFlow Builder / Almadar
7
+ The Licensed Work is (c) 2025-2026 Almadar FZE.
8
+ Additional Use Grant: You may make production use of the Licensed Work for
9
+ non-commercial purposes and for internal evaluation.
10
+ Production use for commercial purposes requires a
11
+ commercial license from the Licensor.
12
+ Change Date: 2030-02-01
13
+ Change License: Apache License, Version 2.0
14
+
15
+ Terms
16
+
17
+ The Licensor hereby grants you the right to copy, modify, create derivative
18
+ works, redistribute, and make non-production use of the Licensed Work. The
19
+ Licensor may make an Additional Use Grant, above, permitting limited
20
+ production use.
21
+
22
+ Effective on the Change Date, or the fourth anniversary of the first publicly
23
+ available distribution of a specific version of the Licensed Work under this
24
+ License, whichever comes first, the Licensor hereby grants you rights under
25
+ the terms of the Change License, and the rights granted in the paragraph
26
+ above terminate.
27
+
28
+ If your use of the Licensed Work does not comply with the requirements
29
+ currently in effect as described in this License, you must purchase a
30
+ commercial license from the Licensor, its affiliated entities, or authorized
31
+ resellers, or you must refrain from using the Licensed Work.
32
+
33
+ All copies of the original and modified Licensed Work, and derivative works
34
+ of the Licensed Work, are subject to this License. This License applies
35
+ separately for each version of the Licensed Work and the Change Date may vary
36
+ for each version of the Licensed Work released by Licensor.
37
+
38
+ You must conspicuously display this License on each original or modified copy
39
+ of the Licensed Work. If you receive the Licensed Work in original or
40
+ modified form from a third party, the terms and conditions set forth in this
41
+ License apply to your use of that work.
42
+
43
+ Any use of the Licensed Work in violation of this License will automatically
44
+ terminate your rights under this License for the current and all other
45
+ versions of the Licensed Work.
46
+
47
+ This License does not grant you any right in any trademark or logo of
48
+ Licensor or its affiliates (provided that you may use a trademark or logo of
49
+ Licensor as expressly required by this License).
50
+
51
+ TO THE EXTENT PERMITTED BY APPLICABLE LAW, THE LICENSED WORK IS PROVIDED ON
52
+ AN "AS IS" BASIS. LICENSOR HEREBY DISCLAIMS ALL WARRANTIES AND CONDITIONS,
53
+ EXPRESS OR IMPLIED, INCLUDING (WITHOUT LIMITATION) WARRANTIES OF
54
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, NON-INFRINGEMENT, AND
55
+ TITLE.
56
+
57
+ ---
58
+
59
+ License text copyright (c) 2017 MariaDB Corporation Ab, All Rights Reserved.
60
+ "Business Source License" is a trademark of MariaDB Corporation Ab.
61
+
62
+ ADDITIONAL TERMS:
63
+
64
+ Documentation (builder/packages/website/docs/) is licensed under CC BY 4.0.
65
+
66
+ TRADEMARKS:
67
+
68
+ "Orbital", "KFlow", "Almadar", and the Almadar logo are trademarks of
69
+ Almadar FZE. You may not use these trademarks without prior written
70
+ permission from Almadar FZE.
71
+
72
+ For licensing inquiries: licensing@almadar.io
@@ -0,0 +1,25 @@
1
+ # @almadar/shell
2
+
3
+ > Minimal full-stack shell template for Almadar applications
4
+
5
+ Part of the [Almadar](https://github.com/almadar-io/almadar) platform.
6
+
7
+ ## Installation
8
+
9
+ ```bash
10
+ npm install @almadar/shell
11
+ ```
12
+
13
+ ## Usage
14
+
15
+ ```typescript
16
+ import { /* ... */ } from '@almadar/shell';
17
+ ```
18
+
19
+ ## API
20
+
21
+ <!-- Document public exports here -->
22
+
23
+ ## License
24
+
25
+ BSL 1.1 (Business Source License). Converts to Apache 2.0 on 2030-02-01. Non-production use is free.
@@ -0,0 +1,120 @@
1
+ {
2
+ "$meta": { "locale": "en", "direction": "ltr" },
3
+
4
+ "common.save": "Save",
5
+ "common.cancel": "Cancel",
6
+ "common.delete": "Delete",
7
+ "common.close": "Close",
8
+ "common.confirm": "Are you sure?",
9
+ "common.create": "Create",
10
+ "common.edit": "Edit",
11
+ "common.view": "View",
12
+ "common.add": "Add",
13
+ "common.remove": "Remove",
14
+ "common.search": "Search...",
15
+ "common.filter": "Filter",
16
+ "common.actions": "Actions",
17
+ "common.yes": "Yes",
18
+ "common.no": "No",
19
+ "common.ok": "OK",
20
+ "common.done": "Done",
21
+ "common.apply": "Apply",
22
+ "common.reset": "Reset",
23
+ "common.refresh": "Refresh",
24
+ "common.export": "Export",
25
+ "common.import": "Import",
26
+ "common.copy": "Copy",
27
+ "common.settings": "Settings",
28
+
29
+ "nav.previous": "Previous",
30
+ "nav.next": "Next",
31
+ "nav.back": "Back",
32
+ "nav.home": "Home",
33
+
34
+ "form.submit": "Submit",
35
+ "form.saving": "Saving...",
36
+ "form.required": "This field is required",
37
+ "form.invalidEmail": "Enter a valid email address",
38
+ "form.selectPlaceholder": "Select {{label}}...",
39
+ "form.searchPlaceholder": "Search {{entity}}...",
40
+
41
+ "table.empty.title": "No items found",
42
+ "table.empty.description": "No items to display.",
43
+ "table.search.placeholder": "Search...",
44
+ "table.pagination.showing": "Showing {{start}} to {{end}} of {{total}} results",
45
+ "table.pagination.page": "Page {{page}} of {{totalPages}}",
46
+ "table.bulk.selected": "{{count}} selected",
47
+ "table.loading": "Loading...",
48
+
49
+ "status.loading": "Loading...",
50
+ "status.scheduled": "Scheduled",
51
+ "status.inProgress": "In Progress",
52
+ "status.completed": "Completed",
53
+ "status.cancelled": "Cancelled",
54
+ "status.pending": "Pending",
55
+ "status.active": "Active",
56
+ "status.inactive": "Inactive",
57
+ "status.draft": "Draft",
58
+ "status.archived": "Archived",
59
+
60
+ "error.generic": "Something went wrong",
61
+ "error.retry": "Try again",
62
+ "error.notFound": "Not found",
63
+ "error.loadFailed": "Failed to load: {{message}}",
64
+ "error.configMissing": "Configuration not found for: {{id}}",
65
+
66
+ "common.loading": "Loading...",
67
+ "common.showMore": "Show More",
68
+ "common.showLess": "Show Less",
69
+ "common.noResults": "No results found",
70
+ "common.saveChanges": "Save Changes",
71
+ "common.retry": "Retry",
72
+ "common.open": "Open",
73
+ "common.back": "Back",
74
+
75
+ "empty.noItems": "No items",
76
+ "empty.noData": "No data available",
77
+ "empty.noItemsYet": "No items yet",
78
+ "empty.noItemsAdded": "No items added yet",
79
+ "empty.noOptionsFound": "No options found",
80
+
81
+ "list.addItemPlaceholder": "Add new item...",
82
+
83
+ "error.occurred": "An error occurred",
84
+ "error.failedToLoad": "Failed to load data",
85
+
86
+ "wizard.back": "Back",
87
+ "wizard.next": "Next",
88
+ "wizard.complete": "Complete",
89
+ "wizard.stepOf": "Step {{current}} of {{total}}",
90
+
91
+ "pagination.previous": "Previous",
92
+ "pagination.next": "Next",
93
+ "pagination.total": "Total:",
94
+ "pagination.show": "Show:",
95
+ "pagination.goTo": "Go to:",
96
+ "pagination.go": "Go",
97
+
98
+ "auth.signIn": "Sign in",
99
+ "auth.signOut": "Sign out",
100
+
101
+ "dialog.confirm": "Confirm",
102
+ "dialog.cancel": "Cancel",
103
+ "dialog.loading": "Loading...",
104
+ "dialog.delete.title": "Delete {{item}}?",
105
+ "dialog.delete.message": "This action cannot be undone.",
106
+
107
+ "trait.availableActions": "Available Actions",
108
+ "trait.transitions": "Transitions",
109
+ "trait.availableNow": "Available now",
110
+
111
+ "book.startReading": "Start Reading",
112
+ "book.tableOfContents": "Table of Contents",
113
+ "book.partNumber": "Part {{number}}",
114
+ "book.print": "Print",
115
+ "book.previousPage": "Previous page",
116
+ "book.nextPage": "Next page",
117
+
118
+ "quiz.showAnswer": "Show answer",
119
+ "quiz.hideAnswer": "Hide answer"
120
+ }
@@ -0,0 +1,35 @@
1
+ {
2
+ "name": "@almadar/shell",
3
+ "version": "2.10.0",
4
+ "private": false,
5
+ "description": "Minimal full-stack shell template for Almadar applications",
6
+ "packageManager": "pnpm@10.30.3",
7
+ "scripts": {
8
+ "dev": "npx concurrently -n client,server -c blue,green \"pnpm --filter @almadar/shell-client dev\" \"pnpm --filter @almadar/shell-server dev\"",
9
+ "build": "pnpm run -r build",
10
+ "typecheck": "turbo run typecheck",
11
+ "lint": "turbo run lint",
12
+ "prepare": "git rev-parse --git-dir > /dev/null 2>&1 && git config core.hooksPath .githooks || true"
13
+ },
14
+ "devDependencies": {
15
+ "concurrently": "^9.2.1",
16
+ "turbo": "^2.8.17"
17
+ },
18
+ "pnpm": {
19
+ "overrides": {
20
+ "@tootallnate/once": "^3.0.1",
21
+ "esbuild": "^0.25.0",
22
+ "flatted": "^3.4.1"
23
+ }
24
+ },
25
+ "files": [
26
+ "dist"
27
+ ],
28
+ "repository": {
29
+ "type": "git",
30
+ "url": "https://github.com/almadar-io/almadar-shell.git"
31
+ },
32
+ "publishConfig": {
33
+ "access": "public"
34
+ }
35
+ }
@@ -0,0 +1,23 @@
1
+ "use strict";
2
+ const tsParser = require("@typescript-eslint/parser");
3
+ const almadarPlugin = require("@almadar/eslint-plugin");
4
+
5
+ module.exports = [
6
+ { ignores: ["dist/**", "node_modules/**", "**/*.test.ts", "**/*.test.tsx"] },
7
+ {
8
+ files: ["src/**/*.ts", "src/**/*.tsx"],
9
+ languageOptions: {
10
+ parser: tsParser,
11
+ parserOptions: {
12
+ ecmaFeatures: { jsx: true },
13
+ ecmaVersion: "latest",
14
+ sourceType: "module",
15
+ },
16
+ },
17
+ plugins: { almadar: almadarPlugin },
18
+ rules: {
19
+ "almadar/no-as-any": "error",
20
+ "almadar/no-import-generated": "error",
21
+ },
22
+ },
23
+ ];
@@ -0,0 +1,13 @@
1
+ <!DOCTYPE html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="UTF-8" />
5
+ <link rel="icon" type="image/svg+xml" href="/vite.svg" />
6
+ <meta name="viewport" content="width=device-width, initial-scale=1.0" />
7
+ <title>Almadar App</title>
8
+ </head>
9
+ <body>
10
+ <div id="root"></div>
11
+ <script type="module" src="/src/main.tsx"></script>
12
+ </body>
13
+ </html>
@@ -0,0 +1,61 @@
1
+ {
2
+ "name": "@almadar/shell-client",
3
+ "version": "1.0.0",
4
+ "private": true,
5
+ "type": "module",
6
+ "scripts": {
7
+ "dev": "vite",
8
+ "build": "tsc && vite build",
9
+ "typecheck": "tsc --noEmit",
10
+ "lint": "eslint src/",
11
+ "preview": "vite preview",
12
+ "test": "vitest run --passWithNoTests",
13
+ "test:watch": "vitest"
14
+ },
15
+ "dependencies": {
16
+ "@almadar/ui": ">=4.30.0",
17
+ "@almadar/syntax": ">=1.4.0",
18
+ "@almadar/evaluator": ">=2.9.2",
19
+ "@almadar/patterns": ">=2.21.0",
20
+ "@almadar/core": ">=7.12.0",
21
+ "firebase": "^11.4.0",
22
+ "@tanstack/react-query": "^5.67.3",
23
+ "react": "^19.0.0",
24
+ "react-dom": "^19.0.0",
25
+ "react-router-dom": "^7.3.0",
26
+ "zustand": "^5.0.3",
27
+ "react-markdown": "^9.0.1",
28
+ "remark-gfm": "^4.0.1",
29
+ "remark-math": "^6.0.0",
30
+ "rehype-katex": "^7.0.1",
31
+ "rehype-raw": "^7.0.0",
32
+ "react-force-graph-2d": "^1.25.5",
33
+ "@monaco-editor/react": "^4.7.0",
34
+ "monaco-editor": "^0.52.2",
35
+ "leaflet": "^1.9.4",
36
+ "react-leaflet": "^4.2.1",
37
+ "lucide-react": "^0.344.0",
38
+ "three": "^0.160.0",
39
+ "@react-three/fiber": "^9.0.0",
40
+ "@react-three/drei": "^9.92.0",
41
+ "@react-three/postprocessing": "^3.0.0",
42
+ "postprocessing": "^6.39.0"
43
+ },
44
+ "devDependencies": {
45
+ "@almadar/eslint-plugin": ">=2.8.0",
46
+ "@typescript-eslint/parser": "8.56.0",
47
+ "eslint": "10.0.0",
48
+ "@testing-library/react": "^16.1.0",
49
+ "@testing-library/jest-dom": "^6.6.3",
50
+ "@types/react": "^19.0.0",
51
+ "@types/react-dom": "^19.0.0",
52
+ "@vitejs/plugin-react": "^4.3.4",
53
+ "autoprefixer": "^10.4.20",
54
+ "jsdom": "^25.0.1",
55
+ "postcss": "^8.5.3",
56
+ "tailwindcss": "^3.4.17",
57
+ "typescript": "^5.7.3",
58
+ "vite": "^6.2.1",
59
+ "vitest": "^2.1.9"
60
+ }
61
+ }
@@ -0,0 +1,6 @@
1
+ export default {
2
+ plugins: {
3
+ tailwindcss: {},
4
+ autoprefixer: {},
5
+ },
6
+ }