forked from aayushman-singh/open-canvas
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
226 lines (226 loc) · 16.8 KB
/
Copy pathpackage.json
File metadata and controls
226 lines (226 loc) · 16.8 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
{
"name": "opencanvas",
"description": "Open Canvas — a desktop canvas site builder — start from a template, edit positioned design primitives with AI, switch style kits, and publish instantly.",
"author": "Aayushman Singh",
"license": "MIT",
"repository": {
"type": "git",
"url": "git+https://github.com/aayushman-singh/open-canvas.git"
},
"keywords": [
"site-builder",
"canvas",
"cloudflare-workers",
"hono",
"ai",
"design"
],
"private": true,
"type": "module",
"scripts": {
"dev": "wrangler dev",
"dev:all": "bun run scripts/dev-all.mjs",
"deploy": "bun run editor-client:build && bun run dashboard-client:build && wrangler deploy",
"build": "bun run editor-client:build && bun run dashboard-client:build && wrangler deploy --dry-run --outdir=dist",
"editor-client:build": "bun run scripts/build-editor-client.ts",
"editor-client:build:dev": "bun run scripts/build-editor-client.ts --dev",
"dashboard-client:build": "bun run scripts/build-dashboard-client.ts",
"dashboard-client:build:dev": "bun run scripts/build-dashboard-client.ts --dev",
"typecheck": "tsc --noEmit && tsc --noEmit -p src/editor-client && tsc --noEmit -p src/dashboard-client",
"lint": "eslint .",
"lint:fix": "eslint . --fix",
"format": "prettier --write .",
"format:check": "prettier --check .",
"host-config:smoke": "bun run src/host-config.smoke.ts",
"host-literal-guard:smoke": "bun run src/host-literal-guard.smoke.ts",
"canvas:smoke": "bun run src/canvas/smoke.ts",
"adr-0016-du-narrowing:smoke": "bun run src/canvas/adr-0016-du-narrowing.smoke.ts",
"adr-0020-csp-nonce:smoke": "bun run src/security/adr-0020-csp-nonce.smoke.ts",
"validate-parity:smoke": "bun run src/canvas/validate-parity.smoke.ts",
"inspector-dispatch:smoke": "bun run src/canvas/elements/inspector-dispatch.smoke.ts",
"agent-tool-dispatch:smoke": "bun run src/canvas/elements/agent-tool-dispatch.smoke.ts",
"sidebar-dispatch:smoke": "bun run src/canvas/elements/sidebar-dispatch.smoke.ts",
"element-files:smoke": "bun run src/canvas/elements/element-files.smoke.ts",
"nav-render:smoke": "bun run src/canvas/elements/nav-render.smoke.ts",
"canvas-agent:smoke": "bun run src/agent/canvas-agent-smoke.ts",
"rebrand-plan:smoke": "bun run src/agent/rebrand/plan.smoke.ts",
"yjs-projection:smoke": "bun run src/canvas/yjs-projection.smoke.ts",
"notifications:smoke": "bun run src/notifications/smoke.ts",
"notifications:integration-smoke": "bun --env-file=.env run src/notifications/inbox.integration-smoke.ts",
"inbox-actions:smoke": "bun run src/notifications/inbox-actions.smoke.ts",
"summarise-flash:integration-smoke": "bun --env-file=.env run src/agent/chat/summarise-flash.integration-smoke.ts",
"applylocalstate-repro:smoke": "bun run src/canvas/applylocalstate-repro.smoke.ts",
"section-import:smoke": "bun run src/canvas/section-import-smoke.ts",
"section-import-anchor:smoke": "bun run src/canvas/section-import-anchor.smoke.ts",
"import:smoke": "bun run src/routes/api/import-smoke.ts",
"assets:smoke": "bun run src/assets/smoke.ts",
"emit:smoke": "bun run src/addons/emit.smoke.ts",
"chat-session-race:smoke": "bun run src/agent/chat/session-race.smoke.ts",
"snapshot-replay:smoke": "bun run src/canvas/snapshot-replay.smoke.ts",
"site-pinned-only-migration:smoke": "bun run src/canvas/site-pinned-only-migration.smoke.ts",
"auth-access:smoke": "bun run src/auth/access.smoke.ts",
"clerk-dev-rebuild:smoke": "bun run src/auth/clerk-dev-rebuild.smoke.ts",
"customer-resolution-dedup:smoke": "bun run src/auth/customer-resolution-dedup.smoke.ts",
"sign-out:smoke": "bun run src/auth/sign-out-route.smoke.ts",
"seed:assets": "bun run src/assets/seed-script.ts",
"seed:apogee-demo": "bun run scripts/seed-apogee-demo.ts",
"fix:dead-contact-urls": "bun run scripts/fix-dead-contact-urls.ts",
"fix:dead-contact-urls:smoke": "bun run scripts/fix-dead-contact-urls.smoke.ts",
"sync-brand-icons:smoke": "bun run scripts/sync-brand-icons.smoke.ts",
"landing:preview": "bun run src/landing/build-preview.ts",
"review:smoke": "bun run --preload ./src/review-smoke-bun-shim.ts src/review-smoke.ts",
"sections:smoke": "bun run src/routes/api/sections-smoke.ts",
"canvas-state-gate:smoke": "bun run src/routes/api/canvas-state-gate.smoke.ts",
"canvas-save-validator:smoke": "bun run src/routes/api/canvas-save-validator.smoke.ts",
"canvas-agent-apply-validator:smoke": "bun run src/routes/api/canvas-agent-apply-validator.smoke.ts",
"canvas-assets-404-cache:smoke": "bun run src/routes/api/canvas-assets-404-cache.smoke.ts",
"collaborators:smoke": "bun run src/routes/api/collaborators-smoke.ts",
"site-settings:smoke": "bun run src/routes/dashboard/site-settings.smoke.ts",
"dashboard-shell:smoke": "bun run src/routes/dashboard/shell.smoke.ts",
"responsive:smoke": "bun run src/canvas/responsive/smoke.ts",
"version:smoke": "bun run src/version/smoke.ts",
"version-route-collab-access:smoke": "bun run src/version/route-collab-access.smoke.ts",
"coedit:smoke": "bun run src/live/co-edit/smoke.ts",
"customdomain:smoke": "bun run src/custom-domain/smoke.ts",
"og:smoke": "bun run src/og-image/smoke.ts",
"og:section-smoke": "bun run src/og-image/section-og.smoke.ts",
"forms:smoke": "bun run src/forms/smoke.ts",
"turnstile-key:smoke": "bun run src/canvas/elements/turnstile-key.smoke.ts",
"embed:smoke": "bun run src/embed/smoke.ts",
"password:smoke": "bun run src/password/smoke.ts",
"themes:smoke": "bun run src/themes/smoke.ts",
"charts:smoke": "bun run src/charts/smoke.ts",
"fonts:smoke": "bun run src/fonts/smoke.ts",
"film-reel:smoke": "bun run src/editor/film-reel-smoke.ts",
"inspector-actions:smoke": "bun run src/editor-client/inspector-actions.smoke.ts",
"collection-template-edit:smoke": "bun run src/editor-client/collection-template-edit.smoke.ts",
"collection-template-edit-view:smoke": "bun run src/editor-client/collection-template-edit-view.smoke.ts",
"collection-template-substitution-warning:smoke": "bun run src/canvas/elements/collection-template-substitution-warning.smoke.ts",
"collection-template-multi-collab-presence:smoke": "bun run src/editor-client/collection-template-multi-collab-presence.smoke.ts",
"co-edit-reopen-presence:smoke": "bun run src/editor-client/co-edit-reopen-presence.smoke.ts",
"delete-shortcut:smoke": "bun run src/editor-client/delete-shortcut.smoke.ts",
"create-editor:smoke": "bun run src/editor-client/create-editor.smoke.ts",
"create-editor-runtime:smoke": "bun run src/editor-client/create-editor-runtime.smoke.ts",
"editor-client-regression:smoke": "bun run src/editor-client/regression.smoke.ts",
"ai-undo-sidecar:smoke": "bun run src/editor-client/ai-undo-sidecar.smoke.ts",
"custom-kit-css:smoke": "bun run src/editor-client/custom-kit-css.smoke.ts",
"resize-handles:smoke": "bun run src/editor-client/resize-handles.smoke.ts",
"pinned-section-affordances:smoke": "bun run src/editor-client/pinned-section-affordances.smoke.ts",
"action-icon-parity:smoke": "bun run src/editor-client/action-icon-parity.smoke.ts",
"page-crud:smoke": "bun run src/editor-client/page-crud.smoke.ts",
"set-active-page-pan:smoke": "bun run src/editor-client/set-active-page-pan.smoke.ts",
"search:smoke": "bun run src/search/smoke.ts",
"a11y:smoke": "bun run src/a11y/smoke.ts",
"a11y-remediation:smoke": "bun run src/a11y/remediation.smoke.ts",
"interactive:smoke": "bun run src/interactive/smoke.ts",
"popup:smoke": "bun run src/interactive/popup.smoke.ts",
"code:smoke": "bun run src/code/smoke.ts",
"seo:smoke": "bun run src/seo/smoke.ts",
"jsonld:smoke": "bun run src/seo/json-ld.smoke.ts",
"sitemap:smoke": "bun run src/seo/sitemap/smoke.ts",
"apex-seo:smoke": "bun run src/seo/apex.smoke.ts",
"collection:smoke": "bun run src/canvas/elements/collection-smoke.ts",
"collection-materializer:smoke": "bun run src/canvas/elements/collection-materializer.smoke.ts",
"portfolio-seed-entries:smoke": "bun run src/templates/portfolio-seed-entries.smoke.ts",
"collection-per-entry-og:smoke": "bun run src/canvas/elements/collection-per-entry-og.smoke.ts",
"collections-scaffold:smoke": "bun run src/canvas/collections-scaffold.smoke.ts",
"collection-scaffold-button:smoke": "bun run src/editor-client/collection-scaffold.smoke.ts",
"collection-empty-preview:smoke": "bun run src/editor-client/collection-empty-preview.smoke.ts",
"collection-selection:smoke": "bun run src/editor-client/selection.smoke.ts",
"site-load-migration:smoke": "bun run src/editor-client/site-load-migration.smoke.ts",
"collection-add-sidebar:smoke": "bun run src/editor-client/collection-add-sidebar.smoke.ts",
"publish-warnings:smoke": "bun run src/routes/api/publish-warnings.smoke.ts",
"a11y-report:smoke": "bun run src/routes/dashboard/a11y-report.smoke.ts",
"migrate-neon:smoke": "bun run scripts/migrate-neon.smoke.ts",
"table:smoke": "bun run src/canvas/elements/table-smoke.ts",
"text-typography:smoke": "bun run src/canvas/elements/text-typography.smoke.ts",
"text-richtext:smoke": "bun run src/canvas/elements/text-richtext.smoke.ts",
"text-richtext-color:smoke": "bun run src/canvas/elements/text-richtext-color.smoke.ts",
"mark-toolbar-color:smoke": "bun run src/editor-client/mark-toolbar-color.smoke.ts",
"text-overflow-hidden:smoke": "bun run src/canvas/text-overflow-hidden.smoke.ts",
"text-fontload-remeasure:smoke": "bun run src/editor-client/text-fontload-remeasure.smoke.ts",
"layout-primitives:smoke": "bun run src/canvas/layout-primitives.smoke.ts",
"action-expressiveness:smoke": "bun run src/canvas/action-expressiveness.smoke.ts",
"action-icon-shrink:smoke": "bun run src/canvas/action-icon-shrink.smoke.ts",
"inspector-action-label:smoke": "bun run src/editor-client/inspector-action-label.smoke.ts",
"inspector-element-state-guards:smoke": "bun run src/editor-client/inspector-element-state-guards.smoke.ts",
"inspector-entry-separators:smoke": "bun run src/editor-client/inspector-entry-separators.smoke.ts",
"tabs-element:smoke": "bun run src/canvas/tabs-element.smoke.ts",
"visitor-mode:smoke": "bun run src/themes/visitor-mode/smoke.ts",
"chat:smoke": "bun run src/agent/chat/smoke.ts",
"i18n:smoke": "bun run src/i18n/smoke.ts",
"public-404:smoke": "bun run src/routes/public-404.smoke.ts",
"public-invite:smoke": "bun run src/routes/public-invite.smoke.ts",
"wishlist:smoke": "bun run src/wishlist-smoke.ts",
"video-bg:smoke": "bun run src/canvas/video-bg.smoke.ts",
"section-accent-border:smoke": "bun run src/canvas/section-accent-border.smoke.ts",
"variant-presets:smoke": "bun run src/canvas/variant-presets.smoke.ts",
"pointer-fx:smoke": "bun run src/interactive/pointer-fx.smoke.ts",
"variant-parity:smoke": "bun run src/interactive/variant-parity.smoke.ts",
"custom-scripts:smoke": "bun run src/addons/custom-scripts.smoke.ts",
"google-analytics:smoke": "bun run src/addons/google-analytics.smoke.ts",
"render-utils:smoke": "bun run src/canvas/elements/render-utils.smoke.ts",
"on-site-edit-security:smoke": "bun run src/auth/on-site-edit-security.smoke.ts",
"layout-engine:smoke": "bun run src/canvas/layout/engine-smoke.ts",
"google-maps:smoke": "bun run src/embed/google-maps.smoke.ts",
"expand-short-link:smoke": "bun run src/embed/expand-short-link.smoke.ts",
"editor-auth:smoke": "bun run src/live/editor-auth.smoke.ts",
"theme:smoke": "bun run src/theme/smoke.ts",
"element-dispatch:smoke": "bun run src/editor/element-dispatch.smoke.ts",
"section-library-schema:smoke": "bun run src/db/section-library-schema.smoke.ts",
"section-library-boot-upsert:smoke": "bun run src/canvas/section-library/boot-upsert.smoke.ts",
"section-library-extraction:smoke": "bun run src/canvas/section-library/extraction.smoke.ts",
"section-library-testimonial-fixtures:smoke": "bun run src/canvas/section-library/testimonial-fixtures.smoke.ts",
"section-library-composition:smoke": "bun run src/canvas/section-library/composition.smoke.ts",
"sections-picker:smoke": "bun run src/editor-client/sections-picker.smoke.ts",
"reel-drag:smoke": "bun run src/editor-client/reel-drag.smoke.ts",
"carousel-hydration:smoke": "bun run src/editor-client/carousel-hydration.smoke.ts",
"text-inspector-font-family-v3:smoke": "bun run src/editor-client/text-inspector-font-family-v3.smoke.ts",
"owner-only-sweep:smoke": "bun run src/auth/owner-only-sweep.smoke.ts",
"ai-rate-limit:smoke": "bun run src/billing/ai-rate-limit.smoke.ts",
"ci:smoke": "bun run host-config:smoke && bun run host-literal-guard:smoke && bun run canvas:smoke && bun run validate-parity:smoke && bun run canvas-state-gate:smoke && bun run canvas-save-validator:smoke && bun run canvas-agent-apply-validator:smoke && bun run canvas-assets-404-cache:smoke && bun run assets:smoke && bun run inspector-dispatch:smoke && bun run agent-tool-dispatch:smoke && bun run sidebar-dispatch:smoke && bun run element-files:smoke && bun run nav-render:smoke && bun run yjs-projection:smoke && bun run canvas-agent:smoke && bun run rebrand-plan:smoke && bun run element-dispatch:smoke && bun run inspector-actions:smoke && bun run collection-template-edit:smoke && bun run collection-template-edit-view:smoke && bun run collection-template-substitution-warning:smoke && bun run collection-template-multi-collab-presence:smoke && bun run co-edit-reopen-presence:smoke && bun run delete-shortcut:smoke && bun run create-editor:smoke && bun run create-editor-runtime:smoke && bun run editor-client-regression:smoke && bun run ai-undo-sidecar:smoke && bun run custom-kit-css:smoke && bun run resize-handles:smoke && bun run pinned-section-affordances:smoke && bun run action-icon-parity:smoke && bun run action-icon-shrink:smoke && bun run inspector-action-label:smoke && bun run inspector-element-state-guards:smoke && bun run inspector-entry-separators:smoke && bun run page-crud:smoke && bun run set-active-page-pan:smoke && bun run emit:smoke && bun run chat-session-race:smoke && bun run snapshot-replay:smoke && bun run site-pinned-only-migration:smoke && bun run collection-materializer:smoke && bun run portfolio-seed-entries:smoke && bun run text-richtext:smoke && bun run text-richtext-color:smoke && bun run mark-toolbar-color:smoke && bun run text-overflow-hidden:smoke && bun run text-fontload-remeasure:smoke && bun run collection-per-entry-og:smoke && bun run collections-scaffold:smoke && bun run collection-scaffold-button:smoke && bun run collection-empty-preview:smoke && bun run collection-selection:smoke && bun run site-load-migration:smoke && bun run collection-add-sidebar:smoke && bun run publish-warnings:smoke && bun run a11y-report:smoke && bun run migrate-neon:smoke && bun run section-library-schema:smoke && bun run section-library-boot-upsert:smoke && bun run section-library-extraction:smoke && bun run section-library-testimonial-fixtures:smoke && bun run section-library-composition:smoke && bun run sections-picker:smoke && bun run section-import-anchor:smoke && bun run reel-drag:smoke && bun run carousel-hydration:smoke && bun run inbox-actions:smoke && bun run section-accent-border:smoke && bun run variant-presets:smoke && bun run pointer-fx:smoke && bun run variant-parity:smoke && bun run text-inspector-font-family-v3:smoke && bun run customer-resolution-dedup:smoke && bun run version-route-collab-access:smoke && bun run owner-only-sweep:smoke && bun run ai-rate-limit:smoke",
"e2e": "npx playwright test",
"e2e:headed": "npx playwright test --headed",
"e2e:ui": "npx playwright test --ui",
"prepare": "simple-git-hooks"
},
"simple-git-hooks": {
"pre-commit": "bunx lint-staged --no-stash && bun run typecheck && bun run ci:smoke"
},
"lint-staged": {
"src/**/*.{ts,tsx}": "eslint --fix"
},
"dependencies": {
"@clerk/backend": "^3.4.11",
"@google/genai": "2.5.0",
"@neondatabase/serverless": "^1.1.0",
"@resvg/resvg-wasm": "2.6.2",
"drizzle-orm": "^0.45.2",
"hono": "^4.12.21",
"katex": "^0.17.0",
"markdown-it": "^14.2.0",
"postgres": "^3.4.9",
"satori": "0.26.0",
"shiki": "^4.1.0",
"y-protocols": "^1.0.7",
"yjs": "^13.6.30"
},
"devDependencies": {
"@cloudflare/workers-types": "^4.20260521.1",
"@playwright/test": "^1.60.0",
"@types/katex": "^0.16.8",
"@types/markdown-it": "^14.1.2",
"@typescript-eslint/eslint-plugin": "^8.59.4",
"@typescript-eslint/parser": "^8.59.4",
"aws4fetch": "^1.0.20",
"drizzle-kit": "^0.31.10",
"eslint": "^10.4.0",
"eslint-config-prettier": "^10.1.8",
"lint-staged": "^17.0.5",
"prettier": "^3.8.3",
"simple-git-hooks": "^2.13.1",
"typescript": "^6.0.3",
"typescript-eslint": "^8.59.4",
"wrangler": "^4.93.0"
}
}