wize-dev-kit 0.1.4 → 0.1.5
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.
- package/CHANGELOG.md +39 -1
- package/package.json +1 -1
- package/src/app-overlay/playbooks/apple-hig.md +112 -0
- package/src/app-overlay/playbooks/detox-maestro.md +179 -0
- package/src/app-overlay/playbooks/device-matrix.md +121 -0
- package/src/app-overlay/playbooks/material-design-3.md +135 -0
- package/src/app-overlay/playbooks/mobile-perf-budgets.md +145 -0
- package/src/app-overlay/playbooks/permissions-ux.md +147 -0
- package/src/app-overlay/playbooks/touch-targets-and-gestures.md +127 -0
- package/src/app-overlay/stack-catalog.md +178 -0
- package/src/web-overlay/playbooks/playwright-vitest.md +211 -0
- package/src/web-overlay/playbooks/responsive-breakpoints.md +104 -0
- package/src/web-overlay/playbooks/semantic-html.md +114 -0
- package/src/web-overlay/playbooks/wcag-aa.md +97 -0
- package/src/web-overlay/playbooks/web-perf-budgets.md +140 -0
- package/src/web-overlay/stack-catalog.md +208 -0
|
@@ -0,0 +1,208 @@
|
|
|
1
|
+
---
|
|
2
|
+
catalog: web-stack
|
|
3
|
+
owner: wize-agent-architect # Tony (with Fury on strategy)
|
|
4
|
+
applies_when: web-overlay active
|
|
5
|
+
status: ready
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
# Web Stack Catalog — Tony's Reference
|
|
9
|
+
|
|
10
|
+
Tony reads this during the architecture interview. The catalog is opinionated but lists trade-offs honestly; the final pick depends on the PRD audience, Fury's NFR budget, and team comfort.
|
|
11
|
+
|
|
12
|
+
## 1. Decision dimensions
|
|
13
|
+
|
|
14
|
+
Pick by **dimension order**, not "which framework I like":
|
|
15
|
+
|
|
16
|
+
1. **Audience reach** — public marketing + SEO, or authenticated app?
|
|
17
|
+
2. **Latency budget** — sub-1s LCP on 3G, or richer-but-slower OK?
|
|
18
|
+
3. **Team familiarity** — favor the boring choice the team has shipped before.
|
|
19
|
+
4. **Backend coupling** — separate API, fullstack monolith, or BaaS?
|
|
20
|
+
5. **Deploy target** — edge platform, container, or self-managed?
|
|
21
|
+
|
|
22
|
+
## 2. Front-end frameworks
|
|
23
|
+
|
|
24
|
+
### Next.js (React)
|
|
25
|
+
|
|
26
|
+
| | |
|
|
27
|
+
|---|---|
|
|
28
|
+
| **Pick when** | SEO-critical pages + product app in one codebase. Strong ecosystem. |
|
|
29
|
+
| **Strengths** | App Router (RSC), edge runtime, ISR, large hiring pool. |
|
|
30
|
+
| **Costs** | RSC mental model still maturing; vendor lock-in toward Vercel optional but present. |
|
|
31
|
+
| **Bundle baseline** | React runtime ~45 KB gz + framework code. |
|
|
32
|
+
| **Best for** | Public products needing SEO + auth product behind same domain. |
|
|
33
|
+
|
|
34
|
+
### Nuxt 3 (Vue)
|
|
35
|
+
|
|
36
|
+
| | |
|
|
37
|
+
|---|---|
|
|
38
|
+
| **Pick when** | Vue-shop wanting Next-tier DX. |
|
|
39
|
+
| **Strengths** | Composition API ergonomics, auto-imports, modules ecosystem. |
|
|
40
|
+
| **Costs** | Smaller third-party SDK coverage than React. |
|
|
41
|
+
| **Bundle baseline** | Vue runtime ~30 KB gz. |
|
|
42
|
+
| **Best for** | Marketing + dashboard hybrid where Vue is the team's stack. |
|
|
43
|
+
|
|
44
|
+
### SvelteKit
|
|
45
|
+
|
|
46
|
+
| | |
|
|
47
|
+
|---|---|
|
|
48
|
+
| **Pick when** | Smallest runtime + fastest TTI. |
|
|
49
|
+
| **Strengths** | Compile-to-no-runtime, intuitive reactivity, edge-first. |
|
|
50
|
+
| **Costs** | Smaller hiring pool, fewer enterprise integrations. |
|
|
51
|
+
| **Bundle baseline** | ~0 KB framework runtime; only your code. |
|
|
52
|
+
| **Best for** | Latency-sensitive products, content-heavy + interactive. |
|
|
53
|
+
|
|
54
|
+
### Astro
|
|
55
|
+
|
|
56
|
+
| | |
|
|
57
|
+
|---|---|
|
|
58
|
+
| **Pick when** | Content-first (docs, marketing, blog) with islands of interactivity. |
|
|
59
|
+
| **Strengths** | Zero-JS by default; mix frameworks per island. |
|
|
60
|
+
| **Costs** | Not a SPA; not the right tool for heavy state apps. |
|
|
61
|
+
| **Bundle baseline** | ~0 KB unless you opt into an island. |
|
|
62
|
+
| **Best for** | Marketing sites, docs portals, mostly-static products. |
|
|
63
|
+
|
|
64
|
+
### Remix
|
|
65
|
+
|
|
66
|
+
| | |
|
|
67
|
+
|---|---|
|
|
68
|
+
| **Pick when** | Forms + nested routes + progressive enhancement matter. |
|
|
69
|
+
| **Strengths** | Web fundamentals first; great for "works without JS" requirements. |
|
|
70
|
+
| **Costs** | Smaller community than Next; some patterns ported back to Next. |
|
|
71
|
+
| **Bundle baseline** | React runtime + Remix glue. |
|
|
72
|
+
| **Best for** | Form-heavy apps (admin, e-commerce flows). |
|
|
73
|
+
|
|
74
|
+
### SPAs without SSR (CRA-style, Vite + React/Vue/Svelte)
|
|
75
|
+
|
|
76
|
+
| | |
|
|
77
|
+
|---|---|
|
|
78
|
+
| **Pick when** | Authenticated app behind login; SEO not required. |
|
|
79
|
+
| **Strengths** | Simplest mental model; fast iteration. |
|
|
80
|
+
| **Costs** | Slow LCP for first-time visitors; no SEO. |
|
|
81
|
+
| **Best for** | Internal tools, dashboards, B2B authenticated apps. |
|
|
82
|
+
|
|
83
|
+
### Laravel + Vue (Inertia)
|
|
84
|
+
|
|
85
|
+
| | |
|
|
86
|
+
|---|---|
|
|
87
|
+
| **Pick when** | PHP back-end exists + team is PHP-fluent. |
|
|
88
|
+
| **Strengths** | Server-rendered routing + SPA UX; great DX in monolith mode. |
|
|
89
|
+
| **Costs** | PHP hosting realities; smaller real-time ecosystem. |
|
|
90
|
+
| **Best for** | Brownfield Laravel apps modernizing the front-end. |
|
|
91
|
+
|
|
92
|
+
## 3. Back-end / data layer
|
|
93
|
+
|
|
94
|
+
### Supabase
|
|
95
|
+
|
|
96
|
+
| | |
|
|
97
|
+
|---|---|
|
|
98
|
+
| **Pick when** | Need Postgres + auth + storage + realtime with low setup. |
|
|
99
|
+
| **Strengths** | Full Postgres power, RLS, edge functions, GoTrue auth. |
|
|
100
|
+
| **Costs** | Lock-in to Supabase service surface (mitigated by being Postgres underneath). |
|
|
101
|
+
|
|
102
|
+
### PlanetScale / Neon (managed Postgres)
|
|
103
|
+
|
|
104
|
+
| | |
|
|
105
|
+
|---|---|
|
|
106
|
+
| **Pick when** | Need managed serverless Postgres without the rest of Supabase. |
|
|
107
|
+
| **Strengths** | Branching DBs, generous free tiers, edge-friendly. |
|
|
108
|
+
| **Costs** | You ship your own auth, storage, realtime. |
|
|
109
|
+
|
|
110
|
+
### Drizzle ORM
|
|
111
|
+
|
|
112
|
+
| | |
|
|
113
|
+
|---|---|
|
|
114
|
+
| **Pick when** | TypeScript-first ORM, edge-runtime compatibility matters. |
|
|
115
|
+
| **Strengths** | Tiny runtime, SQL-y; great for serverless. |
|
|
116
|
+
| **Costs** | Smaller ecosystem than Prisma. |
|
|
117
|
+
|
|
118
|
+
### Prisma
|
|
119
|
+
|
|
120
|
+
| | |
|
|
121
|
+
|---|---|
|
|
122
|
+
| **Pick when** | Larger team; tooling and migrations are paramount. |
|
|
123
|
+
| **Strengths** | Excellent migrations, generated client, mature ecosystem. |
|
|
124
|
+
| **Costs** | Heavier runtime; edge story improved but not as native as Drizzle. |
|
|
125
|
+
|
|
126
|
+
### tRPC
|
|
127
|
+
|
|
128
|
+
| | |
|
|
129
|
+
|---|---|
|
|
130
|
+
| **Pick when** | Single TS monorepo, server + client share types. |
|
|
131
|
+
| **Strengths** | Type-safe end-to-end; minimal overhead. |
|
|
132
|
+
| **Costs** | Not language-agnostic; OpenAPI shim needed for external consumers. |
|
|
133
|
+
|
|
134
|
+
### GraphQL (Apollo / urql / Relay)
|
|
135
|
+
|
|
136
|
+
| | |
|
|
137
|
+
|---|---|
|
|
138
|
+
| **Pick when** | Many client consumers, federated data sources. |
|
|
139
|
+
| **Strengths** | Per-client shape, schema-first design. |
|
|
140
|
+
| **Costs** | Server complexity; caching nuance; not always worth it for one client. |
|
|
141
|
+
|
|
142
|
+
## 4. Authentication
|
|
143
|
+
|
|
144
|
+
| Choice | Pick when |
|
|
145
|
+
|---|---|
|
|
146
|
+
| Supabase Auth (GoTrue) | Using Supabase already. |
|
|
147
|
+
| Clerk / Auth0 | Need polished UI + SSO out of the box; team avoids auth complexity. |
|
|
148
|
+
| WorkOS | Enterprise SSO + SCIM from day one. |
|
|
149
|
+
| Lucia | Self-hosted, TS, full control, smaller team. |
|
|
150
|
+
| Roll-your-own | Almost never. |
|
|
151
|
+
|
|
152
|
+
## 5. Hosting / deploy
|
|
153
|
+
|
|
154
|
+
| Choice | Pick when |
|
|
155
|
+
|---|---|
|
|
156
|
+
| **Vercel** | Next.js / Nuxt / SvelteKit, edge functions, generous DX. |
|
|
157
|
+
| **Cloudflare Pages + Workers** | Latency, global edge, low cost. |
|
|
158
|
+
| **Fly.io** | Need a real container with TCP, sticky regions. |
|
|
159
|
+
| **Coolify** (self-hosted PaaS) | Want Vercel-ish DX on own infra. |
|
|
160
|
+
| **Render / Railway** | Container apps + databases under one billing. |
|
|
161
|
+
| **Self-hosted Docker** | Heavy compliance constraints. |
|
|
162
|
+
|
|
163
|
+
## 6. Styling
|
|
164
|
+
|
|
165
|
+
| Choice | Pick when |
|
|
166
|
+
|---|---|
|
|
167
|
+
| **Tailwind CSS** | Token-first design system, utility-class team comfort. |
|
|
168
|
+
| **CSS Modules** | Component-scoped, no runtime, easy SSR. |
|
|
169
|
+
| **Vanilla Extract** | Type-safe styling at build time. |
|
|
170
|
+
| **shadcn-ui / Radix Primitives** | Need accessible primitives without ceding design. |
|
|
171
|
+
| **Linaria / Compiled** | CSS-in-JS without runtime cost. |
|
|
172
|
+
|
|
173
|
+
Mantis owns tokens (`.wize/solutioning/design-system/tokens.json`); Tony picks the system that maps those tokens cleanly.
|
|
174
|
+
|
|
175
|
+
## 7. State management
|
|
176
|
+
|
|
177
|
+
| Choice | Pick when |
|
|
178
|
+
|---|---|
|
|
179
|
+
| **React Server Components / Suspense** | Most data is server-derived. |
|
|
180
|
+
| **TanStack Query** | Heavy client-side data + caching. |
|
|
181
|
+
| **Zustand** | Small global state; no boilerplate. |
|
|
182
|
+
| **Jotai** | Atoms feel right for the domain. |
|
|
183
|
+
| **Pinia** (Vue) | Default Vue store. |
|
|
184
|
+
| **Redux Toolkit** | Time-travel, complex async pipelines, large team. |
|
|
185
|
+
|
|
186
|
+
## 8. Forms
|
|
187
|
+
|
|
188
|
+
| Choice | Pick when |
|
|
189
|
+
|---|---|
|
|
190
|
+
| **React Hook Form + Zod** | Type-safe schemas, low re-render count. |
|
|
191
|
+
| **Conform** | Server-progressive enhancement (Remix). |
|
|
192
|
+
| **TanStack Form** | TanStack ecosystem, schema-agnostic. |
|
|
193
|
+
|
|
194
|
+
## 9. Anti-patterns Tony flags fast
|
|
195
|
+
|
|
196
|
+
- Mixing **SSR + heavy client state** without a clear seam.
|
|
197
|
+
- Loading `lodash` for one function.
|
|
198
|
+
- Using **Redux for an app with 3 stores** of 5 keys each.
|
|
199
|
+
- Picking a tech because it's on a HackerNews front page.
|
|
200
|
+
- Defaulting to GraphQL for a one-client app.
|
|
201
|
+
|
|
202
|
+
## 10. Recording the choice
|
|
203
|
+
|
|
204
|
+
Tony writes the chosen stack into:
|
|
205
|
+
|
|
206
|
+
- `.wize/planning/tech-vision.md` (Fury): family + non-negotiables.
|
|
207
|
+
- `.wize/solutioning/architecture.md` (Tony): concrete picks + reasons.
|
|
208
|
+
- `.wize/solutioning/adrs/ADR-001-stack.md`: the trade-off log for future readers.
|