anhedral 0.12.0 → 0.15.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 (184) hide show
  1. package/README.md +35 -172
  2. package/assets/patches/audit-deps.mjs +12 -2
  3. package/assets/ui/LICENSE.shadcn +21 -0
  4. package/assets/ui/UPSTREAM.json +33 -0
  5. package/assets/ui/native/button.tsx +85 -0
  6. package/assets/ui/native/card.tsx +33 -0
  7. package/assets/ui/native/dialog.tsx +75 -0
  8. package/assets/ui/native/input.tsx +27 -0
  9. package/assets/ui/native/label.tsx +4 -0
  10. package/assets/ui/native/layout.tsx +26 -0
  11. package/assets/ui/native/text.tsx +20 -0
  12. package/assets/ui/native/theme-switcher.tsx +22 -0
  13. package/assets/ui/theme-storage.ts +25 -0
  14. package/assets/ui/theme.tsx +66 -0
  15. package/assets/ui/web/button.tsx +59 -0
  16. package/assets/ui/web/input.tsx +21 -0
  17. package/assets/ui/web/label.tsx +19 -0
  18. package/dist/capabilities.d.ts +5 -5
  19. package/dist/capabilities.js +3 -21
  20. package/dist/capability-contract.d.ts +3 -3
  21. package/dist/capability-contract.js +11 -39
  22. package/dist/cli-delivery.d.ts +1 -1
  23. package/dist/cli-delivery.js +5 -65
  24. package/dist/cli-output.js +3 -3
  25. package/dist/command-schema.js +35 -80
  26. package/dist/command.js +9 -11
  27. package/dist/delivery-evidence.d.ts +1 -1
  28. package/dist/delivery-evidence.js +7 -36
  29. package/dist/delivery.d.ts +2 -8
  30. package/dist/delivery.js +23 -102
  31. package/dist/dependencies.d.ts +12 -58
  32. package/dist/dependencies.js +67 -189
  33. package/dist/index.d.ts +1 -3
  34. package/dist/index.js +1 -3
  35. package/dist/inspector-model.d.ts +2 -2
  36. package/dist/integration-service-readers.d.ts +1 -2
  37. package/dist/integration-service-readers.js +3 -84
  38. package/dist/lifecycle-model.d.ts +1 -1
  39. package/dist/lifecycle-model.js +1 -1
  40. package/dist/mobile-delivery.d.ts +1 -1
  41. package/dist/mobile-delivery.js +4 -0
  42. package/dist/platforms/mobile.d.ts +1 -1
  43. package/dist/platforms/mobile.js +64 -114
  44. package/dist/platforms/web.d.ts +3 -0
  45. package/dist/platforms/web.js +299 -0
  46. package/dist/project-config.d.ts +1 -1
  47. package/dist/project-config.js +0 -1
  48. package/dist/project-inspector.js +5 -36
  49. package/dist/project-state.d.ts +1 -3
  50. package/dist/project-state.js +6 -86
  51. package/dist/provider-auth.js +3 -32
  52. package/dist/provider-readiness.d.ts +1 -1
  53. package/dist/provider-readiness.js +5 -24
  54. package/dist/providers/adapters.js +9 -178
  55. package/dist/providers/api.d.ts +1 -1
  56. package/dist/providers/api.js +3 -3
  57. package/dist/providers/config.js +2 -48
  58. package/dist/providers/definitions.d.ts +1 -204
  59. package/dist/providers/definitions.js +0 -85
  60. package/dist/providers/provision.d.ts +1 -1
  61. package/dist/providers/receipts.js +1 -11
  62. package/dist/providers/recovery-verification.js +1 -61
  63. package/dist/providers/runtime.js +15 -35
  64. package/dist/providers/state.js +1 -7
  65. package/dist/provision.d.ts +5 -13
  66. package/dist/provision.js +4 -80
  67. package/dist/readiness.d.ts +1 -1
  68. package/dist/readiness.js +3 -6
  69. package/dist/registry/add.js +11 -38
  70. package/dist/registry/bootstrap.d.ts +3 -2
  71. package/dist/registry/bootstrap.js +4 -13
  72. package/dist/registry/commands.js +8 -10
  73. package/dist/registry/context.js +0 -1
  74. package/dist/registry/options.js +8 -26
  75. package/dist/registry/resolve.d.ts +3 -2
  76. package/dist/registry/resolve.js +26 -82
  77. package/dist/registry/types.d.ts +2 -7
  78. package/dist/registry/usage.js +2 -2
  79. package/dist/runtime-policy.d.ts +0 -2
  80. package/dist/runtime-policy.js +0 -13
  81. package/dist/scaffold/api.js +10 -2
  82. package/dist/scaffold/auth.d.ts +1 -2
  83. package/dist/scaffold/auth.js +57 -116
  84. package/dist/scaffold/backend.d.ts +2 -0
  85. package/dist/scaffold/backend.js +39 -0
  86. package/dist/scaffold/billing-config.d.ts +1 -0
  87. package/dist/scaffold/billing-config.js +73 -0
  88. package/dist/scaffold/billing-contracts.d.ts +2 -0
  89. package/dist/scaffold/billing-contracts.js +48 -0
  90. package/dist/scaffold/billing-providers.d.ts +1 -0
  91. package/dist/scaffold/billing-providers.js +249 -0
  92. package/dist/scaffold/billing-schema.d.ts +1 -0
  93. package/dist/scaffold/billing-schema.js +34 -0
  94. package/dist/scaffold/billing-security.d.ts +1 -0
  95. package/dist/scaffold/billing-security.js +46 -0
  96. package/dist/scaffold/billing-server.d.ts +1 -0
  97. package/dist/scaffold/billing-server.js +139 -0
  98. package/dist/scaffold/billing-store.d.ts +1 -0
  99. package/dist/scaffold/billing-store.js +72 -0
  100. package/dist/scaffold/billing.d.ts +2 -0
  101. package/dist/scaffold/billing.js +208 -0
  102. package/dist/scaffold/bootstrap.d.ts +2 -3
  103. package/dist/scaffold/bootstrap.js +37 -43
  104. package/dist/scaffold/compose.js +2 -12
  105. package/dist/scaffold/database.d.ts +1 -1
  106. package/dist/scaffold/database.js +20 -111
  107. package/dist/scaffold/documentation.d.ts +0 -1
  108. package/dist/scaffold/documentation.js +22 -82
  109. package/dist/scaffold/expo-auth.d.ts +3 -0
  110. package/dist/scaffold/expo-auth.js +203 -0
  111. package/dist/scaffold/expo-billing.d.ts +3 -0
  112. package/dist/scaffold/expo-billing.js +257 -0
  113. package/dist/scaffold/expo-runtime.d.ts +3 -0
  114. package/dist/scaffold/expo-runtime.js +43 -0
  115. package/dist/scaffold/integrations.d.ts +1 -2
  116. package/dist/scaffold/integrations.js +9 -5
  117. package/dist/scaffold/managed-email.d.ts +3 -0
  118. package/dist/scaffold/managed-email.js +47 -0
  119. package/dist/scaffold/native-ui.d.ts +2 -0
  120. package/dist/scaffold/native-ui.js +69 -0
  121. package/dist/scaffold/password-reset.d.ts +1 -0
  122. package/dist/scaffold/password-reset.js +99 -0
  123. package/dist/scaffold/private-files.d.ts +2 -0
  124. package/dist/scaffold/private-files.js +78 -0
  125. package/dist/scaffold/stack-documentation.d.ts +0 -1
  126. package/dist/scaffold/stack-documentation.js +3 -49
  127. package/dist/scaffold/styling.d.ts +1 -1
  128. package/dist/scaffold/styling.js +20 -28
  129. package/dist/scaffold/web-billing.d.ts +2 -0
  130. package/dist/scaffold/web-billing.js +48 -0
  131. package/dist/scaffold/workspace.js +53 -189
  132. package/dist/service-deletion.js +1 -1
  133. package/dist/service-descriptor.js +5 -12
  134. package/dist/service-model.d.ts +1 -1
  135. package/dist/service-operations.js +2 -32
  136. package/dist/service-readers.js +1 -32
  137. package/dist/services-command.d.ts +1 -1
  138. package/dist/services-command.js +3 -9
  139. package/dist/ship.d.ts +3 -316
  140. package/dist/ship.js +13 -143
  141. package/dist/stack-registry.d.ts +2 -43
  142. package/dist/stack-registry.js +80 -308
  143. package/dist/standard.js +7 -14
  144. package/dist/version.d.ts +1 -1
  145. package/dist/version.js +1 -1
  146. package/docs/anhedral-stack.md +23 -0
  147. package/docs/assets/anhedral-stack-light.png +0 -0
  148. package/docs/assets/anhedral-stack.png +0 -0
  149. package/docs/software-factory.md +25 -499
  150. package/docs/stack-standard.md +48 -226
  151. package/docs/verification.md +433 -0
  152. package/package.json +22 -21
  153. package/dist/neon-service-data.d.ts +0 -8
  154. package/dist/neon-service-data.js +0 -117
  155. package/dist/platforms/desktop.d.ts +0 -2
  156. package/dist/platforms/desktop.js +0 -415
  157. package/dist/platforms/extension.d.ts +0 -2
  158. package/dist/platforms/extension.js +0 -328
  159. package/dist/scaffold/lint.d.ts +0 -4
  160. package/dist/scaffold/lint.js +0 -56
  161. package/dist/scaffold/neon-realtime.d.ts +0 -2
  162. package/dist/scaffold/neon-realtime.js +0 -97
  163. package/dist/scaffold/services.d.ts +0 -5
  164. package/dist/scaffold/services.js +0 -108
  165. package/dist/scaffold/stream.d.ts +0 -2
  166. package/dist/scaffold/stream.js +0 -114
  167. package/dist/scaffold/void.d.ts +0 -4
  168. package/dist/scaffold/void.js +0 -256
  169. package/dist/scaffold/web.d.ts +0 -2
  170. package/dist/scaffold/web.js +0 -128
  171. package/dist/vercel-project.d.ts +0 -101
  172. package/dist/vercel-project.js +0 -305
  173. package/dist/vercel.d.ts +0 -67
  174. package/dist/vercel.js +0 -581
  175. package/dist/vinext.d.ts +0 -2
  176. package/dist/vinext.js +0 -86
  177. package/dist/void-execution.d.ts +0 -10
  178. package/dist/void-execution.js +0 -94
  179. package/dist/void-migrations.d.ts +0 -6
  180. package/dist/void-migrations.js +0 -110
  181. package/dist/void-state.d.ts +0 -16
  182. package/dist/void-state.js +0 -65
  183. package/dist/void.d.ts +0 -3
  184. package/dist/void.js +0 -5
@@ -1,31 +1,28 @@
1
- import { usesVoidSelection } from './runtime-policy.js';
2
1
  import { scaffoldStyling } from './scaffold/styling.js';
3
2
  import { resourceName } from './render.js';
4
- import { STACK_DEPENDENCIES } from './dependencies.js';
5
3
  import { dependencyOrder } from './dependency-order.js';
6
4
  import { GENERATOR_VERSION } from './version.js';
7
- import { scaffoldWeb } from './scaffold/web.js';
8
5
  import { scaffoldApi } from './scaffold/api.js';
9
6
  import { scaffoldDatabase } from './scaffold/database.js';
10
- import { scaffoldStream } from './scaffold/stream.js';
11
- import { scaffoldNeonRealtime } from './scaffold/neon-realtime.js';
12
- import { scaffoldBetterAuth, scaffoldClerk } from './scaffold/auth.js';
13
- import { scaffoldRealtime, scaffoldQueues, scaffoldCron, scaffoldWorkflows, } from './scaffold/services.js';
7
+ import { scaffoldBetterAuth } from './scaffold/auth.js';
8
+ import { scaffoldWeb } from './platforms/web.js';
14
9
  import { scaffoldExpo } from './platforms/mobile.js';
15
- import { scaffoldElectron } from './platforms/desktop.js';
16
- import { scaffoldWxt } from './platforms/extension.js';
17
- import { scaffoldPrivateFiles, scaffoldRevenueCat } from './scaffold/integrations.js';
10
+ import { scaffoldPrivateFiles } from './scaffold/integrations.js';
11
+ import { scaffoldBilling } from './scaffold/billing.js';
18
12
  import { sharedPackage } from './scaffold/files.js';
19
13
  function requirements(purpose, tools, access, credentials, resources, verify) {
20
14
  return { purpose, tools, access, credentials, resources, verify };
21
15
  }
16
+ const BILLING_ENVIRONMENT_KEYS = [
17
+ 'BILLING_ORIGIN',
18
+ 'BILLING_ENVIRONMENT',
19
+ 'BILLING_PLANS_JSON',
20
+ 'BILLING_ENTITLEMENTS_JSON',
21
+ 'BILLING_PREMIUM_ENTITLEMENT',
22
+ ];
22
23
  function packageSource(name, source, dependencies) {
23
24
  return { name, source, dependencies };
24
25
  }
25
- function runtimeConfiguration({ runtimeApp, options }) {
26
- const legacy = !usesVoidSelection(options.products, options.hosting);
27
- return `apps/${runtimeApp}/${legacy ? 'wrangler.jsonc' : 'anhedral.cloudflare.json'}`;
28
- }
29
26
  function defineItems(configurations) {
30
27
  return Object.fromEntries(Object.entries(configurations).map(([name, configuration]) => [
31
28
  name,
@@ -42,47 +39,23 @@ function defineItems(configurations) {
42
39
  }
43
40
  /** Every product owns its source recipe, setup requirements and composition policy here. */
44
41
  const PRODUCT_ITEMS = defineItems({
45
- vinext: {
46
- type: 'application',
47
- description: 'Vinext web application on Cloudflare Workers',
48
- targets: ['apps/web'],
49
- selection: { conflicts: ['next'] },
50
- registryDependencies: ['ui'],
51
- setup: requirements('Web application on Cloudflare', ['Browser control', 'Wrangler'], [], [], ['Vinext React application and Cloudflare Worker'], ['Web flows, accessibility, production Worker build and deployed preview']),
52
- install: scaffoldWeb,
53
- },
54
42
  next: {
55
43
  type: 'application',
56
- description: 'Next.js web application on Vercel or OpenNext on Workers',
44
+ description: 'Full Next.js App Router web application on Cloudflare OpenNext',
57
45
  targets: ['apps/web'],
58
- selection: { conflicts: ['vinext'] },
59
- registryDependencies: ['ui'],
60
- setup: requirements('Web application', ['Browser control'], [], [], ['Next.js app; configure the selected hosting provider'], ['Web flows, accessibility, production hosting build and deployed preview']),
46
+ registryDependencies: ['workspace', 'typescript', 'eslint', 'styling', 'hono'],
47
+ setup: requirements('Server-rendered web application', ['Browser control', 'Wrangler'], ['Cloudflare Workers deployment access'], [], ['Next.js Worker, assets and scoped ANHEDRAL_API binding'], ['Request-rendered HTML, RSC, cookies and authenticated API routes']),
61
48
  install: scaffoldWeb,
49
+ environment: ['API_INTERNAL_URL', 'ANHEDRAL_PREVIEW_ORIGIN'],
62
50
  },
63
51
  expo: {
64
52
  type: 'application',
65
- description: 'Expo mobile application with native UI',
66
- targets: ['apps/mobile'],
53
+ description: 'Native Expo iOS and Android application with Anhedral native shadcn UI',
54
+ targets: ['apps/mobile', 'packages/native-ui'],
67
55
  registryDependencies: ['workspace', 'typescript', 'eslint', 'styling'],
68
- setup: requirements('Mobile application', ['Expo/EAS CLI', 'Xcode or Android SDK'], ['Client-owned Apple/Google developer accounts for store delivery'], ['Platform signing credentials; EAS access when used'], ['Expo app; native adapters, signing, store configuration'], ['Native simulator/device flows and signed native build; web export alone is insufficient']),
56
+ setup: requirements('Native iOS and Android application', ['Simulator or device'], ['For requested native distribution only: client-owned Apple/Google developer accounts'], ['For requested native builds only: platform signing credentials and EAS access when used'], ['Expo native client; signing and store configuration'], ['Simulator/device and signed-build acceptance']),
69
57
  install: scaffoldExpo,
70
- },
71
- electron: {
72
- type: 'application',
73
- description: 'Electron desktop application with its own web UI',
74
- targets: ['apps/desktop'],
75
- registryDependencies: ['workspace', 'typescript', 'eslint'],
76
- setup: requirements('Desktop application', ['Electron tooling', 'Platform packaging tools'], ['Signing/notarization account for the target platform'], ['Signing credentials; notarization credentials when required'], ['Electron app; packaging and distribution configuration'], ['Packaged desktop app, permissions, update/recovery behavior']),
77
- install: scaffoldElectron,
78
- },
79
- wxt: {
80
- type: 'application',
81
- description: 'WXT browser side-panel extension',
82
- targets: ['apps/extension'],
83
- registryDependencies: ['workspace', 'typescript', 'eslint', 'styling'],
84
- setup: requirements('Chrome side-panel extension', ['Chrome', 'WXT'], ['Extension store publisher access for distribution'], ['Store publishing credentials when required'], ['Extension app; minimal browser permissions and store package'], ['Installed side panel, background/content messaging and permission behavior']),
85
- install: scaffoldWxt,
58
+ environment: ['EXPO_PUBLIC_API_URL'],
86
59
  },
87
60
  hono: {
88
61
  type: 'application',
@@ -92,44 +65,12 @@ const PRODUCT_ITEMS = defineItems({
92
65
  setup: requirements('Shared OpenAPI backend', ['Wrangler'], ['Cloudflare Workers deployment access'], [], ['API Worker; application routes and authorization'], ['Contract validation, unauthenticated rejection and resource ownership']),
93
66
  install: scaffoldApi,
94
67
  },
95
- neon: {
96
- type: 'package',
97
- description: 'Reusable server database package with Neon HTTP, Drizzle and explicit migrations',
98
- targets: ['packages/db'],
99
- selection: { conflicts: ['d1'] },
100
- registryDependencies: ['workspace', 'typescript', 'eslint'],
101
- setup: requirements('PostgreSQL persistence through direct Neon HTTP and Drizzle', ['Neon integration or API'], ['Client-owned Neon project/branch access'], [
102
- 'Server-side DATABASE_URL; direct DATABASE_URL_UNPOOLED for migrations; separate environment roles',
103
- ], ['Neon project/branches, database roles and reviewed migrations'], ['Migration, runtime connectivity and authorization; HTTP has no interactive transactions']),
104
- install: scaffoldDatabase,
105
- environment: ['DATABASE_URL', 'DATABASE_URL_UNPOOLED'],
106
- runtime: 'server',
107
- resolveTargets: ({ runtimeApp }) => ['packages/db', `apps/${runtimeApp}`],
108
- },
109
- 'neon-realtime': {
110
- type: 'integration',
111
- description: 'Neon live SQL with server-sealed Drizzle queries and a browser-safe subscription client (beta)',
112
- targets: ['packages/neon-realtime'],
113
- selection: { requiresAny: ['neon'] },
114
- registryDependencies: ['workspace', 'typescript', 'eslint', 'neon'],
115
- fallbackDependency: 'neon',
116
- runtime: 'server',
117
- environment: ['NEON_REALTIME_SECRET', 'NEON_REALTIME_URL'],
118
- setup: requirements('Live PostgreSQL query results on the selected Neon branch', ['Neon Console or Neon CLI', 'Browser control'], ['Client-owned Neon project and branch with Realtime beta availability'], ['Server-only NEON_REALTIME_SECRET; public NEON_REALTIME_URL; existing server DATABASE_URL'], [
119
- 'Manually enable Realtime and logical replication on the selected branch; configure allowed browser origins',
120
- 'Tables with stable replica identity; authorized deterministic SELECT queries sealed on the server',
121
- ], [
122
- 'Authorized row isolation, access revocation, capability renewal, disconnect/reconnect and subscription cleanup',
123
- 'Beta has no RLS or performance guarantees; database compute and egress remain billable',
124
- ]),
125
- install: scaffoldNeonRealtime,
126
- },
127
68
  d1: {
128
69
  type: 'package',
129
70
  description: 'Reusable Drizzle D1 database package and explicit migration tooling',
130
- targets: ['packages/db'],
131
- selection: { conflicts: ['neon'] },
132
- registryDependencies: ['workspace', 'typescript', 'eslint'],
71
+ targets: ['packages/db', 'apps/api'],
72
+ selection: {},
73
+ registryDependencies: ['workspace', 'typescript', 'eslint', 'hono'],
133
74
  setup: requirements('SQLite-compatible hosted persistence', ['Wrangler'], ['Cloudflare D1 access'], [], ['D1 database, DB binding and reviewed migrations'], ['Migration, constraints, transactional behavior and runtime queries']),
134
75
  install: scaffoldDatabase,
135
76
  configure: ({ options }) => ({
@@ -143,66 +84,30 @@ const PRODUCT_ITEMS = defineItems({
143
84
  ],
144
85
  }),
145
86
  runtime: 'worker',
146
- resolveTargets: ({ runtimeApp }) => ['packages/db', `apps/${runtimeApp}`],
147
- },
148
- 'local-data': {
149
- type: 'package',
150
- description: 'Interface for platform-specific local persistence adapters',
151
- targets: ['packages/local-data'],
152
- registryDependencies: ['workspace', 'typescript', 'eslint'],
153
- setup: requirements('Device-local SQLite and files', ['Selected platform database/filesystem tooling'], [], [], ['Integration boundary; implement platform adapters and explicit synchronization if needed'], ['Persistence, offline writes and recovery on the selected device']),
154
- package: packageSource('local-data', `// Device-local SQLite and filesystem need platform-specific adapters.
155
- export interface LocalDataStore {
156
- read(key: string): Promise<string | null>;
157
- write(key: string, value: string): Promise<void>;
158
- }
159
- `, {}),
160
- },
161
- clerk: {
162
- type: 'integration',
163
- description: 'Managed identity starter and runtime integration',
164
- targets: ['apps/web', 'packages/auth'],
165
- selection: { conflicts: ['better-auth'], requiresAny: ['vinext', 'next', 'hono'] },
166
- registryDependencies: ['workspace', 'typescript', 'eslint'],
167
- setup: requirements('Managed identity', ['Clerk integration or dashboard'], ['Client-owned Clerk project access'], ['Clerk publishable key; server secret key; webhook secret when used'], ['Identity project, allowed URLs, SDK setup and protected routes'], ['Sign-in/out, session expiry, resource authorization and selected native client flows']),
168
- install: scaffoldClerk,
169
- environment: [
170
- 'NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY',
171
- 'EXPO_PUBLIC_CLERK_PUBLISHABLE_KEY',
172
- 'CLERK_PUBLISHABLE_KEY',
173
- 'CLERK_SECRET_KEY',
174
- ],
175
- resolveEnvironment: ({ has }) => [
176
- 'CLERK_SECRET_KEY',
177
- ...(has('vinext') || has('next') ? ['NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY'] : []),
178
- ...(has('hono') ? ['CLERK_PUBLISHABLE_KEY'] : []),
179
- ],
180
- runtime: 'server',
181
- resolveDependencies: ({ has }) => ['vinext', 'next', 'hono'].filter((id) => has(id)),
182
- resolveTargets: ({ has }) => [
183
- ...(has('vinext') || has('next') ? ['apps/web'] : []),
184
- ...(has('hono') ? ['packages/auth'] : []),
185
- ],
186
87
  },
187
88
  'better-auth': {
188
89
  type: 'integration',
189
90
  description: 'Database-backed identity schema and runtime routes',
190
- targets: ['packages/auth', 'packages/db', 'apps/web', 'apps/api'],
191
- selection: { conflicts: ['clerk'], requiresAny: ['neon', 'd1'] },
192
- registryDependencies: ['workspace', 'typescript', 'eslint'],
193
- setup: requirements('Application-managed identity', ['Selected database tooling'], ['Selected database migration/runtime access'], ['BETTER_AUTH_SECRET; BETTER_AUTH_URL'], ['Selected Neon or D1 database, auth schema, trusted origins and application routes'], ['Sign-in/out, session expiry, sign-up policy and resource authorization']),
91
+ targets: [
92
+ 'packages/auth',
93
+ 'packages/managed-email',
94
+ 'packages/db',
95
+ 'apps/api',
96
+ 'apps/mobile',
97
+ 'apps/web',
98
+ ],
99
+ selection: { requiresAll: ['d1', 'hono', 'expo'] },
100
+ registryDependencies: ['workspace', 'typescript', 'eslint', 'd1', 'expo', 'next'],
101
+ setup: requirements('Application-managed identity', ['Selected database tooling'], ['Selected database migration/runtime access'], ['BETTER_AUTH_SECRET; BETTER_AUTH_URL'], ['D1 database, auth schema, trusted origins and application routes'], ['Sign-in/out, session expiry, sign-up policy and resource authorization']),
194
102
  install: scaffoldBetterAuth,
195
- fallbackDependency: 'd1',
196
103
  environment: ['BETTER_AUTH_SECRET', 'BETTER_AUTH_URL'],
197
104
  runtime: 'server',
198
- resolveDependencies: ({ has }) => [has('neon') ? 'neon' : 'd1'],
199
- resolveTargets: ({ runtimeApp }) => ['packages/auth', 'packages/db', `apps/${runtimeApp}`],
200
105
  },
201
106
  r2: {
202
107
  type: 'integration',
203
- description: 'Private file binding and authorization guidance',
204
- targets: ['apps/web', 'apps/api'],
205
- registryDependencies: ['workspace', 'typescript', 'eslint'],
108
+ description: 'Private authenticated file upload, download and deletion',
109
+ targets: ['apps/api/src/private-files.ts'],
110
+ registryDependencies: ['workspace', 'typescript', 'eslint', 'better-auth', 'hono'],
206
111
  setup: requirements('Private remote files', ['Wrangler'], ['Cloudflare R2 bucket/binding access'], [], ['Private R2 bucket and FILES binding; authorized upload/download endpoints'], [
207
112
  'Public bucket access disabled; file ownership enforced; clients receive no storage credentials',
208
113
  ]),
@@ -211,189 +116,62 @@ export interface LocalDataStore {
211
116
  r2_buckets: [{ binding: 'FILES', bucket_name: resourceName(options.name, 'private-files') }],
212
117
  }),
213
118
  runtime: 'worker',
214
- resolveTargets: ({ runtimeApp }) => [`apps/${runtimeApp}/private-files.md`],
215
- },
216
- kv: {
217
- type: 'integration',
218
- description: 'Eventually consistent cache binding',
219
- targets: ['apps/web', 'apps/api'],
220
- registryDependencies: ['workspace', 'typescript', 'eslint'],
221
- setup: requirements('Eventually consistent cache/configuration', ['Wrangler'], ['Cloudflare KV namespace access'], [], ['KV namespace and CONFIG binding'], ['TTL and propagation behavior; never use KV as transactional authority']),
222
- configure: () => ({ kv_namespaces: [{ binding: 'CONFIG', id: 'REPLACE_WITH_KV_ID' }] }),
223
- installer: 'configuration',
224
- runtime: 'worker',
225
- resolveTargets: (context) => [runtimeConfiguration(context)],
226
119
  },
227
- realtime: {
228
- type: 'service',
229
- description: 'Durable Object room Worker with authorization boundary',
230
- targets: ['apps/realtime'],
231
- registryDependencies: ['workspace', 'typescript', 'eslint'],
232
- setup: requirements('Rooms and collaboration', ['Wrangler', 'Browser control'], ['Cloudflare Durable Objects deployment access'], [], ['Realtime Worker, Durable Object namespace/migration and WebSocket authorization'], ['Authorized room isolation, disconnect/reconnect and deployed WebSockets']),
233
- install: scaffoldRealtime,
234
- },
235
- stream: {
120
+ stripe: {
236
121
  type: 'integration',
237
- description: 'Cloudflare Stream one-to-many live video with WHIP ingest and WHEP playback (GA)',
238
- targets: ['packages/stream'],
239
- runtime: 'server',
240
- environment: ['STREAM_ACCOUNT_ID', 'STREAM_API_TOKEN'],
241
- setup: requirements('Ultra-low latency one-to-many live video', ['Cloudflare Stream API or dashboard', 'Browser control'], ['Client-owned Cloudflare account with Stream enabled; usage-based delivery billing'], [
242
- 'Server-only STREAM_ACCOUNT_ID and account-scoped STREAM_API_TOKEN with Stream Write permission',
243
- ], [
244
- 'Manual Stream activation and live input setup; server management factory with secret WHIP and WHEP endpoints',
245
- ], [
246
- 'Creator/input ownership, viewer authorization and signed playback when private, browser media/ICE, reconnect and session cleanup; live behavior unverified',
247
- ]),
248
- install: scaffoldStream,
249
- },
250
- queues: {
251
- type: 'service',
252
- description: 'Queue producer binding, consumer and dead-letter handling',
253
- targets: ['apps/jobs', 'apps/web', 'apps/api'],
254
- registryDependencies: ['workspace', 'typescript', 'eslint'],
255
- setup: requirements('Deferred jobs', ['Wrangler'], ['Cloudflare Queues configuration access'], [], ['Queue, producer/consumer bindings and failure handling'], ['Retries, idempotency, concurrency and dead-letter recovery']),
256
- install: scaffoldQueues,
257
- configure: ({ options }) => ({
258
- queues: { producers: [{ binding: 'JOBS', queue: resourceName(options.name, 'jobs') }] },
259
- }),
260
- runtime: 'optional-worker',
261
- resolveTargets: (context) => [
262
- 'apps/jobs',
263
- ...(context.has('hono') || context.has('vinext') || context.has('next')
264
- ? [runtimeConfiguration(context)]
265
- : []),
122
+ description: 'Authenticated Stripe checkout, portal and server entitlement projection',
123
+ targets: ['packages/billing', 'packages/contracts', 'apps/api', 'apps/mobile', 'apps/web'],
124
+ selection: { requiresAll: ['hono', 'better-auth', 'd1'] },
125
+ registryDependencies: [
126
+ 'workspace',
127
+ 'typescript',
128
+ 'eslint',
129
+ 'hono',
130
+ 'd1',
131
+ 'better-auth',
132
+ 'expo',
133
+ 'next',
266
134
  ],
267
- },
268
- cron: {
269
- type: 'service',
270
- description: 'Scheduled Worker',
271
- targets: ['apps/scheduled'],
272
- registryDependencies: ['workspace', 'typescript', 'eslint'],
273
- setup: requirements('Scheduled work', ['Wrangler'], ['Cloudflare Worker deployment access'], [], ['Scheduled Worker and environment-specific Cron Triggers'], ['Schedule, idempotency, failure visibility and overlapping runs']),
274
- install: scaffoldCron,
275
- },
276
- workflows: {
277
- type: 'service',
278
- description: 'Durable multi-step Worker',
279
- targets: ['apps/workflows'],
280
- registryDependencies: ['workspace', 'typescript', 'eslint'],
281
- setup: requirements('Durable multi-step processing', ['Wrangler'], ['Cloudflare Workflows deployment access'], [], ['Workflow Worker/binding and resumable steps'], ['Retry/resume, idempotency, cancellation and failure recovery']),
282
- install: scaffoldWorkflows,
283
- },
284
- openai: {
285
- type: 'package',
286
- description: 'Server-side OpenAI SDK factory',
287
- targets: ['packages/ai'],
288
- selection: { conflicts: ['ai-sdk'] },
289
- registryDependencies: ['workspace', 'typescript', 'eslint'],
290
- setup: requirements('Direct OpenAI integration', ['OpenAI integration or API'], ['Client-owned OpenAI project and model access'], ['OPENAI_API_KEY'], ['Server SDK factory; implement application behavior and spending limits'], ['Selected model, failure handling, private inputs and cost controls']),
291
- package: packageSource('ai', "import OpenAI from 'openai';\nexport function createAI(apiKey: string) { return new OpenAI({ apiKey }); }\n", { openai: STACK_DEPENDENCIES['openai'] }),
292
- environment: ['OPENAI_API_KEY'],
293
- },
294
- 'ai-sdk': {
295
- type: 'package',
296
- description: 'Server-side AI SDK and provider exports',
297
- targets: ['packages/ai'],
298
- selection: { conflicts: ['openai'] },
299
- registryDependencies: ['workspace', 'typescript', 'eslint'],
300
- setup: requirements('Streaming AI and provider abstraction', ['Selected AI provider integration or API'], ['Selected provider project/model access'], ['OPENAI_API_KEY for the generated default; selected provider credentials otherwise'], ['Server SDK factory; implement streaming, tools and application behavior'], ['Streaming, tool authorization, interruption and spending limits']),
301
- package: packageSource('ai', "export { generateText, streamText } from 'ai';\nexport { createOpenAI } from '@ai-sdk/openai';\n", { ai: STACK_DEPENDENCIES['ai'], '@ai-sdk/openai': STACK_DEPENDENCIES['@ai-sdk/openai'] }),
302
- environment: ['OPENAI_API_KEY'],
303
- },
304
- 'workers-ai': {
305
- type: 'integration',
306
- description: 'Workers AI runtime binding',
307
- targets: ['apps/web', 'apps/api'],
308
- registryDependencies: ['workspace', 'typescript', 'eslint'],
309
- setup: requirements('Cloudflare-hosted inference', ['Wrangler'], ['Cloudflare Workers AI model access'], [], ['AI binding and selected model invocation'], ['Supported model behavior, authorization and usage limits']),
310
- configure: () => ({ ai: { binding: 'AI' } }),
311
- installer: 'configuration',
312
- runtime: 'worker',
313
- resolveTargets: (context) => [runtimeConfiguration(context)],
314
- },
315
- resend: {
316
- type: 'package',
317
- description: 'Server-side email SDK factory',
318
- targets: ['packages/email'],
319
- registryDependencies: ['workspace', 'typescript', 'eslint'],
320
- setup: requirements('Outbound application email', ['Resend integration or API'], ['Client-owned Resend project; sending-domain DNS access'], ['RESEND_API_KEY; webhook secret when used'], ['Verified sending domain, sender and server integration'], [
321
- 'Delivery, suppression/bounce handling and webhook verification; inbound routing is separate',
322
- ]),
323
- package: packageSource('email', "import { Resend } from 'resend';\nexport function createEmail(apiKey: string) { return new Resend(apiKey); }\n", { resend: STACK_DEPENDENCIES['resend'] }),
324
- environment: ['RESEND_API_KEY'],
325
- },
326
- stripe: {
327
- type: 'package',
328
- description: 'Server-side billing SDK factory',
329
- targets: ['packages/billing'],
330
- registryDependencies: ['workspace', 'typescript', 'eslint'],
331
135
  setup: requirements('Web payments and subscriptions', ['Stripe integration or CLI'], ['Client-owned Stripe account; test/live access as required'], ['STRIPE_SECRET_KEY; STRIPE_WEBHOOK_SECRET'], ['Products/prices, signed webhooks and entitlement implementation'], ['Test purchase/cancellation, webhook replay and transactional idempotency']),
332
- package: packageSource('billing', "import Stripe from 'stripe';\nexport function createBilling(apiKey: string) { return new Stripe(apiKey); }\n", { stripe: STACK_DEPENDENCIES['stripe'] }),
333
- environment: ['STRIPE_SECRET_KEY', 'STRIPE_WEBHOOK_SECRET'],
136
+ install: scaffoldBilling,
137
+ environment: [...BILLING_ENVIRONMENT_KEYS, 'STRIPE_SECRET_KEY', 'STRIPE_WEBHOOK_SECRET'],
334
138
  },
335
139
  revenuecat: {
336
140
  type: 'integration',
337
- description: 'Cross-store entitlement integration guidance',
338
- targets: ['packages/billing/revenuecat.md'],
339
- selection: { requiresAll: ['stripe'] },
340
- registryDependencies: ['stripe'],
341
- setup: requirements('Cross-store subscription entitlements alongside Stripe', ['RevenueCat integration or API', 'Selected mobile store tooling'], ['RevenueCat project; App Store/Play Store product access'], ['Platform public SDK keys; server API/webhook credentials as required'], ['Integration guidance only; install platform SDKs and configure offerings/store products'], ['Sandbox purchase/restore, verified webhooks and entitlement reconciliation']),
342
- install: scaffoldRevenueCat,
343
- environment: ['EXPO_PUBLIC_REVENUECAT_IOS_API_KEY', 'EXPO_PUBLIC_REVENUECAT_ANDROID_API_KEY'],
344
- },
345
- sentry: {
346
- type: 'package',
347
- description: 'Platform-specific monitoring integration boundary',
348
- targets: ['packages/observability'],
349
- registryDependencies: ['workspace', 'typescript', 'eslint'],
350
- setup: requirements('Additional runtime/crash diagnostics', ['Sentry integration or API'], ['Client-owned Sentry project access'], ['SENTRY_DSN; source-map upload token when required'], ['Integration boundary; install/init runtime SDKs and configure private source-map uploads'], ['Captured runtime errors, source maps, privacy filtering and alert delivery']),
351
- package: packageSource('observability', "// Initialize the platform-specific Sentry SDK in each application's runtime entrypoint.\nexport const redactFields = ['authorization', 'cookie', 'password', 'token'];\n", {}),
352
- environment: ['SENTRY_DSN'],
353
- },
354
- basin: {
355
- type: 'package',
356
- description: 'Cloudflare analytical stream binding and event helper',
357
- targets: ['packages/analytics', 'packages/basin'],
358
- registryDependencies: ['workspace', 'typescript', 'eslint'],
359
- setup: requirements('Cloudflare analytical events', ['Wrangler', 'Cloudflare integration or API'], [
360
- 'Cloudflare analytics/Pipelines access; plan supporting selected services; Pipelines Setup grant for managed R2 sink setup',
361
- ], [], [
362
- 'Basin dataset/stream, ANALYTICS binding, optional private R2 sink and authorized sink writes',
363
- ], ['Private ingestion, event delivery, query results and archive retrieval when selected']),
364
- package: packageSource('analytics', `export interface EventStream { send(events: Record<string, unknown>[]): Promise<void> }
365
- export async function recordEvents(stream: EventStream, events: Record<string, unknown>[]) {
366
- await stream.send(events);
367
- }
368
- `, {}),
369
- resolvePackage: ({ has }, recipe) => ({
370
- ...recipe,
371
- name: has('posthog') ? 'basin' : 'analytics',
372
- }),
373
- resolveDependencies: ({ has }) => (has('posthog') ? ['posthog'] : []),
374
- resolveTargets: ({ has }) => [has('posthog') ? 'packages/basin' : 'packages/analytics'],
375
- configure: () => ({
376
- pipelines: [{ binding: 'ANALYTICS', stream: 'REPLACE_WITH_BASIN_STREAM_ID' }],
377
- }),
378
- runtime: 'worker',
379
- },
380
- posthog: {
381
- type: 'package',
382
- description: 'Server-side product analytics factory',
383
- targets: ['packages/analytics'],
384
- registryDependencies: ['workspace', 'typescript', 'eslint'],
385
- setup: requirements('Specialized product analytics', ['PostHog integration or API'], ['Client-owned PostHog project access'], ['POSTHOG_API_KEY; POSTHOG_HOST; separate privileged key if needed'], ['Analytics client factory; implement consent, event schema and privacy filtering'], ['Event receipt, consent behavior and redaction of private data']),
386
- package: packageSource('analytics', "import { PostHog } from 'posthog-node';\nexport function createAnalytics(apiKey: string, host: string) { return new PostHog(apiKey, { host }); }\n", { 'posthog-node': STACK_DEPENDENCIES['posthog-node'] }),
387
- environment: ['POSTHOG_API_KEY', 'POSTHOG_HOST'],
141
+ description: 'Native purchases, restore and server-enforced cross-store entitlements',
142
+ targets: ['packages/billing', 'packages/contracts', 'apps/api', 'apps/mobile', 'apps/web'],
143
+ selection: { requiresAll: ['hono', 'better-auth', 'd1'] },
144
+ registryDependencies: [
145
+ 'workspace',
146
+ 'typescript',
147
+ 'eslint',
148
+ 'hono',
149
+ 'd1',
150
+ 'better-auth',
151
+ 'expo',
152
+ 'next',
153
+ ],
154
+ setup: requirements('Cross-store subscription entitlements; Stripe is optional', ['RevenueCat integration or API', 'Selected mobile store tooling'], ['RevenueCat project; App Store/Play Store product access'], ['Platform public SDK keys; server API/webhook credentials as required'], [
155
+ 'Native purchase SDK and authenticated entitlement APIs; configure offerings/store products before acceptance',
156
+ ], ['Sandbox purchase/restore, verified webhooks and entitlement reconciliation']),
157
+ install: scaffoldBilling,
158
+ environment: [
159
+ ...BILLING_ENVIRONMENT_KEYS,
160
+ 'REVENUECAT_SECRET_KEY',
161
+ 'REVENUECAT_WEBHOOK_AUTHORIZATION',
162
+ 'REVENUECAT_WEBHOOK_SIGNING_SECRET',
163
+ 'REVENUECAT_APP_IDS_JSON',
164
+ 'REVENUECAT_PROJECT_ID',
165
+ 'EXPO_PUBLIC_REVENUECAT_IOS_API_KEY',
166
+ 'EXPO_PUBLIC_REVENUECAT_ANDROID_API_KEY',
167
+ ],
388
168
  },
389
169
  styling: {
390
170
  type: 'package',
391
171
  description: 'Shared platform-independent styling tokens',
392
172
  targets: ['packages/styling'],
393
173
  registryDependencies: ['workspace', 'typescript', 'eslint'],
394
- setup: requirements('Shared styling definitions', [], [], [], [
395
- 'Shared light/dark tokens and Tailwind v3 preset for Expo/WXT; adapt platform typography and components',
396
- ], ['Consistency across selected interfaces; preserve platform-specific components']),
174
+ setup: requirements('Shared styling definitions', [], [], [], ['Shared light/dark tokens, web CSS and Anhedral native shadcn port'], ['Consistency across selected interfaces; preserve platform-specific components']),
397
175
  package: packageSource('styling', `import { light, dark, spacing } from './tokens.cjs';
398
176
 
399
177
  export const styling = {
@@ -428,12 +206,6 @@ const FOUNDATION_ITEMS = defineItems({
428
206
  targets: ['packages/eslint-config'],
429
207
  registryDependencies: ['workspace'],
430
208
  },
431
- ui: {
432
- type: 'foundation',
433
- description: 'Shared shadcn/ui, React, Tailwind and Lucide foundation for web apps',
434
- targets: ['packages/ui'],
435
- registryDependencies: ['workspace', 'typescript', 'eslint'],
436
- },
437
209
  });
438
210
  function freeze(value) {
439
211
  if (value && typeof value === 'object') {
@@ -445,7 +217,7 @@ function freeze(value) {
445
217
  }
446
218
  const DEFINITIONS = freeze({ ...FOUNDATION_ITEMS, ...PRODUCT_ITEMS });
447
219
  function describe(definition) {
448
- const { install: _install, configure: _configure, resolveTargets: _targets, resolveEnvironment: _environment, resolveDependencies: _dependencies, resolvePackage: _package, fallbackDependency: _fallback, ...metadata } = definition;
220
+ const { install: _install, configure: _configure, ...metadata } = definition;
449
221
  return structuredClone(metadata);
450
222
  }
451
223
  export function getStackDefinition(name) {
package/dist/standard.js CHANGED
@@ -1,5 +1,4 @@
1
1
  import { writeProjectSection } from './project-config.js';
2
- import { usesVoidSelection } from './runtime-policy.js';
3
2
  import { configureDependencyPatches } from './dependency-patches.js';
4
3
  import { randomUUID } from 'node:crypto';
5
4
  import { registerGeneratedProject } from './catalog-registration.js';
@@ -8,12 +7,10 @@ import { existsSync, lstatSync, mkdirSync, readdirSync, realpathSync, rmdirSync
8
7
  import path from 'node:path';
9
8
  import { spawnSync } from 'node:child_process';
10
9
  import { execFile } from './util.js';
11
- import { supportsVoidRuntime } from './void.js';
12
- import { registerVercelApplication } from './vercel.js';
13
10
  import { registerApplication } from './delivery.js';
14
11
  import { runStagedTransaction } from './transaction.js';
15
12
  import { createSetupPlan } from './capabilities.js';
16
- import { bootstrapWorkspace, assertBootstrapPlatform, assertWorkspaceRuntime, } from './scaffold/bootstrap.js';
13
+ import { bootstrapWorkspace, assertWorkspaceRuntime } from './scaffold/bootstrap.js';
17
14
  import { composeStack } from './scaffold/compose.js';
18
15
  import { parseStandardOptions } from './registry/options.js';
19
16
  import { STANDARD_USAGE } from './registry/usage.js';
@@ -27,11 +24,7 @@ export async function scaffoldStandardProject(options, run = execFile, output =
27
24
  printResult('init', plan, { ...output, json: options.json });
28
25
  return;
29
26
  }
30
- assertBootstrapPlatform(run);
31
27
  assertWorkspaceRuntime(run);
32
- const voidWorkspace = usesVoidSelection(options.products, options.hosting);
33
- if (voidWorkspace && run === execFile && !supportsVoidRuntime(process.versions.node))
34
- throw new Error('New Cloudflare workspaces use Void and require Node.js 24.21.0 or newer. Planning remains available on older CLI-supported versions.');
35
28
  const root = options.root;
36
29
  const previousQuiet = process.env.ANHEDRAL_QUIET;
37
30
  if (options.json)
@@ -57,7 +50,7 @@ export async function scaffoldStandardProject(options, run = execFile, output =
57
50
  throw new Error('Destination changed before generation.');
58
51
  },
59
52
  build: async (stageRoot) => {
60
- printProgress('Creating the shadcn/Turborepo workspace…', display);
53
+ printProgress('Creating the Next.js/Expo/Hono workspace…', display);
61
54
  bootstrapWorkspace(stageRoot, options.name, run);
62
55
  printProgress('Composing the selected stack…', display);
63
56
  await composeStack(stageRoot, options, plan.registry);
@@ -65,15 +58,15 @@ export async function scaffoldStandardProject(options, run = execFile, output =
65
58
  schemaVersion: 1,
66
59
  id: randomUUID(),
67
60
  });
68
- if (options.products.includes('next') && options.hosting === 'vercel')
69
- registerVercelApplication(stageRoot);
70
61
  if (readdirSync(path.join(stageRoot, 'apps')).some((app) => existsSync(path.join(stageRoot, 'apps', app, 'wrangler.jsonc')) ||
71
62
  existsSync(path.join(stageRoot, 'apps', app, 'anhedral.cloudflare.json'))))
72
63
  registerApplication(stageRoot);
73
- printProgress('Resolving pinned dependencies…', display);
74
- run('pnpm', ['install', '--lockfile-only', '--no-frozen-lockfile'], stageRoot);
75
- if (configureDependencyPatches(stageRoot))
64
+ if (!options.skipInstall) {
65
+ printProgress('Resolving pinned dependencies…', display);
76
66
  run('pnpm', ['install', '--lockfile-only', '--no-frozen-lockfile'], stageRoot);
67
+ if (configureDependencyPatches(stageRoot))
68
+ run('pnpm', ['install', '--lockfile-only', '--no-frozen-lockfile'], stageRoot);
69
+ }
77
70
  recordScaffoldFiles(stageRoot);
78
71
  commitPaths.push(...readdirSync(stageRoot).filter((name) => name !== 'node_modules'));
79
72
  },
package/dist/version.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const GENERATOR_VERSION = "0.12.0";
1
+ export declare const GENERATOR_VERSION = "0.15.0";
package/dist/version.js CHANGED
@@ -1 +1 @@
1
- export const GENERATOR_VERSION = '0.12.0';
1
+ export const GENERATOR_VERSION = '0.15.0';
@@ -0,0 +1,23 @@
1
+ # Anhedral application stack
2
+
3
+ <picture>
4
+ <source media="(prefers-color-scheme: dark)" srcset="assets/anhedral-stack.png">
5
+ <source media="(prefers-color-scheme: light)" srcset="assets/anhedral-stack-light.png">
6
+ <img alt="Next.js web and Expo iOS/Android connect to Hono, Drizzle/D1 and private R2. Stripe and RevenueCat are optional payment additions." src="assets/anhedral-stack-light.png" width="1200">
7
+ </picture>
8
+
9
+ Every application starts with **Next.js web + Expo native + Hono + Drizzle/D1 + private R2**. Better Auth,
10
+ shared contracts and design tokens support the foundation. Stripe and RevenueCat are
11
+ the only optional additions; either can be selected independently.
12
+
13
+ Hono owns authentication, authorization, data and private files. The Next.js App Router supports SSR and React Server Components through Cloudflare
14
+ OpenNext. Web uses DOM shadcn UI; Expo iOS/Android uses the Anhedral native shadcn
15
+ port. UI implementations share contracts and tokens, not browser/native primitives.
16
+ Web API transport uses the `ANHEDRAL_API` service binding; native clients use the
17
+ configured HTTPS API. Stripe checkout and RevenueCat purchases reconcile to
18
+ shared server-enforced entitlements.
19
+
20
+ Source generation is separate from resource provisioning, migrations and deployment.
21
+ See the [stack standard](stack-standard.md) and [development workflow](software-factory.md).
22
+ The editable [diagram source](https://github.com/anhedral/anhedral-cli/blob/main/docs/assets/render-stack.mjs)
23
+ produces both themes from the same layout.
Binary file