connore 0.1.1 → 0.2.1
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/README.md +13 -8
- package/bin/ctxkit.js +5 -5
- package/package.json +2 -1
- package/packs/base/planning/START.md +29 -28
- package/packs/base/planning/blueprint-template.md +46 -46
- package/packs/base/planning/plan-template.md +46 -45
- package/packs/base/rules/anti-patterns.md +19 -16
- package/packs/base/rules/code-style.md +19 -16
- package/packs/base/rules/dependency-policy.md +19 -16
- package/packs/base/rules/error-handling.md +19 -16
- package/packs/base/rules/security-audit.md +47 -0
- package/packs/base/rules/security-baseline.md +19 -16
- package/packs/base/templates/bug-report.md +19 -16
- package/packs/base/templates/feature-spec.md +19 -16
- package/packs/base/templates/handoff.md +19 -16
- package/packs/base/templates/project-brief.md +19 -16
- package/packs/base/workflow/code-review.md +19 -16
- package/packs/base/workflow/debugging.md +18 -14
- package/packs/base/workflow/git-and-commits.md +19 -16
- package/packs/base/workflow/idea-to-spec.md +19 -16
- package/packs/base/workflow/session-handoff.md +19 -16
- package/packs/base/workflow/spec-to-plan.md +19 -16
- package/packs/knowledge/backend/api/conventions.md +21 -0
- package/packs/knowledge/backend/architecture/local-sqlite.md +20 -0
- package/packs/knowledge/backend/authentication/session-and-engine.md +24 -0
- package/packs/knowledge/backend/database/schema.md +21 -0
- package/packs/knowledge/components/custom/ambient-background.md +26 -0
- package/packs/knowledge/components/custom/ambient-background.tsx +12 -0
- package/packs/knowledge/components/custom/corner-frame.md +26 -0
- package/packs/knowledge/components/custom/corner-frame.tsx +48 -0
- package/packs/knowledge/components/custom/cta-button.md +26 -0
- package/packs/knowledge/components/custom/cta-button.tsx +10 -0
- package/packs/knowledge/components/custom/page-transition.md +26 -0
- package/packs/knowledge/components/custom/page-transition.tsx +10 -0
- package/packs/knowledge/components/custom/smooth-scroll.md +26 -0
- package/packs/knowledge/components/custom/smooth-scroll.tsx +32 -0
- package/packs/knowledge/components/motion-effects/README.md +30 -0
- package/packs/knowledge/components/ui-primitives/LICENSE +21 -0
- package/packs/knowledge/components/ui-primitives/README.md +22 -0
- package/packs/knowledge/components/ui-primitives/badge.md +26 -0
- package/packs/knowledge/components/ui-primitives/badge.tsx +48 -0
- package/packs/knowledge/components/ui-primitives/button.md +27 -0
- package/packs/knowledge/components/ui-primitives/button.tsx +66 -0
- package/packs/knowledge/components/ui-primitives/card.md +26 -0
- package/packs/knowledge/components/ui-primitives/card.tsx +102 -0
- package/packs/knowledge/components/ui-primitives/checkbox.md +26 -0
- package/packs/knowledge/components/ui-primitives/checkbox.tsx +32 -0
- package/packs/knowledge/components/ui-primitives/dialog.md +26 -0
- package/packs/knowledge/components/ui-primitives/dialog.tsx +168 -0
- package/packs/knowledge/components/ui-primitives/dropdown-menu.md +26 -0
- package/packs/knowledge/components/ui-primitives/dropdown-menu.tsx +268 -0
- package/packs/knowledge/components/ui-primitives/input.md +27 -0
- package/packs/knowledge/components/ui-primitives/input.tsx +18 -0
- package/packs/knowledge/components/ui-primitives/label.md +26 -0
- package/packs/knowledge/components/ui-primitives/label.tsx +23 -0
- package/packs/knowledge/components/ui-primitives/progress.md +26 -0
- package/packs/knowledge/components/ui-primitives/progress.tsx +30 -0
- package/packs/knowledge/components/ui-primitives/scroll-area.md +26 -0
- package/packs/knowledge/components/ui-primitives/scroll-area.tsx +54 -0
- package/packs/knowledge/components/ui-primitives/select.md +26 -0
- package/packs/knowledge/components/ui-primitives/select.tsx +191 -0
- package/packs/knowledge/components/ui-primitives/separator.md +26 -0
- package/packs/knowledge/components/ui-primitives/separator.tsx +27 -0
- package/packs/knowledge/components/ui-primitives/sonner.md +26 -0
- package/packs/knowledge/components/ui-primitives/sonner.tsx +49 -0
- package/packs/knowledge/components/ui-primitives/switch.md +26 -0
- package/packs/knowledge/components/ui-primitives/switch.tsx +32 -0
- package/packs/knowledge/components/ui-primitives/tabs.md +26 -0
- package/packs/knowledge/components/ui-primitives/tabs.tsx +89 -0
- package/packs/knowledge/components/ui-primitives/textarea.md +26 -0
- package/packs/knowledge/components/ui-primitives/textarea.tsx +17 -0
- package/packs/knowledge/components/ui-primitives/tooltip.md +26 -0
- package/packs/knowledge/components/ui-primitives/tooltip.tsx +56 -0
- package/packs/knowledge/design/aesthetics/app-shell.md +41 -0
- package/packs/knowledge/design/aesthetics/code-neutral.md +40 -0
- package/packs/knowledge/design/aesthetics/match.md +46 -0
- package/packs/knowledge/design/aesthetics/ruled-outline.md +40 -0
- package/packs/knowledge/design/aesthetics/solid-accent.md +43 -0
- package/packs/knowledge/design/animations/motion.md +40 -0
- package/packs/knowledge/design/project-style.md +50 -0
- package/packs/knowledge/design/references/benefit-card-grid.md +27 -0
- package/packs/knowledge/design/references/benefit-card-grid.png +0 -0
- package/packs/knowledge/design/references/cta-centered.md +27 -0
- package/packs/knowledge/design/references/cta-centered.png +0 -0
- package/packs/knowledge/design/references/cta-split-media.md +27 -0
- package/packs/knowledge/design/references/cta-split-media.png +0 -0
- package/packs/knowledge/design/references/dashboard-overview.md +31 -0
- package/packs/knowledge/design/references/dashboard-overview.png +0 -0
- package/packs/knowledge/design/references/faq-split-accordion.md +27 -0
- package/packs/knowledge/design/references/faq-split-accordion.png +0 -0
- package/packs/knowledge/design/references/feature-split-checklist.md +27 -0
- package/packs/knowledge/design/references/feature-split-checklist.png +0 -0
- package/packs/knowledge/design/references/footer-four-column.md +27 -0
- package/packs/knowledge/design/references/footer-four-column.png +0 -0
- package/packs/knowledge/design/references/footer-two-column.md +27 -0
- package/packs/knowledge/design/references/footer-two-column.png +0 -0
- package/packs/knowledge/design/references/hero-accent-curtain.md +27 -0
- package/packs/knowledge/design/references/hero-accent-curtain.png +0 -0
- package/packs/knowledge/design/references/hero-split-media.md +27 -0
- package/packs/knowledge/design/references/hero-split-media.png +0 -0
- package/packs/knowledge/design/references/logo-cloud-grid.md +27 -0
- package/packs/knowledge/design/references/logo-cloud-grid.png +0 -0
- package/packs/knowledge/design/references/logo-row-ruled.md +27 -0
- package/packs/knowledge/design/references/logo-row-ruled.png +0 -0
- package/packs/knowledge/design/references/pricing-three-card.md +27 -0
- package/packs/knowledge/design/references/pricing-three-card.png +0 -0
- package/packs/knowledge/design/references/steps-ruled-grid.md +27 -0
- package/packs/knowledge/design/references/steps-ruled-grid.png +0 -0
- package/packs/knowledge/design/rules.md +35 -0
- package/packs/knowledge/design/token-structure.md +46 -0
- package/packs/knowledge/design/tokens.md +55 -0
- package/packs/knowledge/frontend/README.md +50 -0
- package/packs/knowledge/frontend/SOURCES.md +40 -0
- package/packs/knowledge/frontend/accessibility/focus-and-dialogs.md +47 -0
- package/packs/knowledge/frontend/accessibility/semantics-and-keyboard.md +45 -0
- package/packs/knowledge/frontend/accessibility/wcag-targets.md +43 -0
- package/packs/knowledge/frontend/architecture/agent-context-files.md +43 -0
- package/packs/knowledge/frontend/architecture/app-foundations.md +43 -0
- package/packs/knowledge/frontend/architecture/error-handling.md +47 -0
- package/packs/knowledge/frontend/architecture/feature-modules.md +49 -0
- package/packs/knowledge/frontend/architecture/import-boundaries.md +44 -0
- package/packs/knowledge/frontend/architecture/naming.md +43 -0
- package/packs/knowledge/frontend/architecture/project-structure.md +48 -0
- package/packs/knowledge/frontend/architecture/routing.md +45 -0
- package/packs/knowledge/frontend/architecture/security.md +44 -0
- package/packs/knowledge/frontend/architecture/typescript.md +44 -0
- package/packs/knowledge/frontend/components/composition.md +45 -0
- package/packs/knowledge/frontend/components/data-display.md +47 -0
- package/packs/knowledge/frontend/components/library-choice.md +45 -0
- package/packs/knowledge/frontend/components/variants.md +44 -0
- package/packs/knowledge/frontend/forms/form-architecture.md +49 -0
- package/packs/knowledge/frontend/forms/multi-step.md +43 -0
- package/packs/knowledge/frontend/forms/validation.md +47 -0
- package/packs/knowledge/frontend/layout/responsive.md +41 -0
- package/packs/knowledge/frontend/page-blueprints/app-shell.md +16 -0
- package/packs/knowledge/frontend/page-blueprints/faq-footer.md +22 -0
- package/packs/knowledge/frontend/page-blueprints/feature-grid.md +22 -0
- package/packs/knowledge/frontend/page-blueprints/pricing.md +16 -0
- package/packs/knowledge/frontend/page-blueprints/saas-hero.md +24 -0
- package/packs/knowledge/frontend/patterns/dark-marketing.md +18 -0
- package/packs/knowledge/frontend/patterns/status-pill.md +19 -0
- package/packs/knowledge/frontend/performance/code-splitting.md +47 -0
- package/packs/knowledge/frontend/performance/images-and-vitals.md +44 -0
- package/packs/knowledge/frontend/performance/rendering.md +40 -0
- package/packs/knowledge/frontend/rendering/server-and-client.md +50 -0
- package/packs/knowledge/frontend/state/api-layer.md +49 -0
- package/packs/knowledge/frontend/state/async-ui-states.md +43 -0
- package/packs/knowledge/frontend/state/client-store.md +46 -0
- package/packs/knowledge/frontend/state/server-cache.md +42 -0
- package/packs/knowledge/frontend/state/state-categories.md +50 -0
- package/packs/knowledge/frontend/testing/component-tests.md +44 -0
- package/packs/knowledge/frontend/testing/strategy.md +46 -0
- package/packs/knowledge/inbox/README.md +14 -0
- package/packs/knowledge/workflows/authentication.md +18 -0
- package/packs/knowledge/workflows/crud.md +20 -0
- package/packs/knowledge/workflows/dashboard.md +22 -0
- package/packs/nextjs-fullstack/backend/auth-and-roles.md +19 -16
- package/packs/nextjs-fullstack/backend/background-jobs.md +19 -16
- package/packs/nextjs-fullstack/backend/caching.md +17 -14
- package/packs/nextjs-fullstack/backend/database.md +19 -16
- package/packs/nextjs-fullstack/backend/file-uploads.md +19 -16
- package/packs/nextjs-fullstack/backend/logging.md +17 -14
- package/packs/nextjs-fullstack/backend/migrations.md +17 -14
- package/packs/nextjs-fullstack/backend/rate-limiting.md +19 -16
- package/packs/nextjs-fullstack/backend/secrets-and-env.md +19 -16
- package/packs/nextjs-fullstack/backend/validation.md +19 -16
- package/packs/nextjs-fullstack/blueprints/ai-app.md +1 -1
- package/packs/nextjs-fullstack/blueprints/internal-tool.md +1 -1
- package/packs/nextjs-fullstack/blueprints/saas-app.md +1 -1
- package/packs/nextjs-fullstack/build-deploy/ci.md +18 -16
- package/packs/nextjs-fullstack/build-deploy/deploy.md +19 -16
- package/packs/nextjs-fullstack/build-deploy/monitoring.md +16 -14
- package/packs/nextjs-fullstack/build-deploy/performance.md +17 -14
- package/packs/nextjs-fullstack/build-deploy/project-structure.md +18 -16
- package/packs/nextjs-fullstack/build-deploy/release-checklist.md +20 -16
- package/packs/nextjs-fullstack/build-deploy/testing.md +19 -16
- package/packs/nextjs-fullstack/evals/README.md +18 -15
- package/packs/nextjs-fullstack/examples/golden-app/README.md +18 -16
- package/packs/nextjs-fullstack/frontend/accessibility.md +17 -14
- package/packs/nextjs-fullstack/frontend/components.md +19 -16
- package/packs/nextjs-fullstack/frontend/copy.md +46 -0
- package/packs/nextjs-fullstack/frontend/data-fetching.md +46 -0
- package/packs/nextjs-fullstack/frontend/forms.md +17 -14
- package/packs/nextjs-fullstack/frontend/layout.md +19 -16
- package/packs/nextjs-fullstack/frontend/loading-empty-error.md +19 -16
- package/packs/nextjs-fullstack/frontend/motion.md +17 -14
- package/packs/nextjs-fullstack/frontend/responsive.md +19 -16
- package/packs/nextjs-fullstack/frontend/seo.md +20 -16
- package/packs/nextjs-fullstack/frontend/tables.md +17 -14
- package/packs/nextjs-fullstack/frontend/tokens.md +18 -16
- package/packs/nextjs-fullstack/integrations/analytics.md +17 -14
- package/packs/nextjs-fullstack/integrations/email.md +17 -14
- package/packs/nextjs-fullstack/integrations/llm-apis.md +19 -16
- package/packs/nextjs-fullstack/integrations/oauth.md +19 -16
- package/packs/nextjs-fullstack/integrations/object-storage.md +19 -16
- package/packs/nextjs-fullstack/integrations/payments.md +17 -14
- package/packs/nextjs-fullstack/integrations/queues.md +17 -14
- package/packs/nextjs-fullstack/integrations/search.md +19 -16
- package/packs/nextjs-fullstack/integrations/webhooks.md +17 -14
- package/packs/nextjs-fullstack/playbooks/add-ai-feature.md +19 -16
- package/packs/nextjs-fullstack/playbooks/add-auth.md +19 -16
- package/packs/nextjs-fullstack/playbooks/add-crud.md +19 -16
- package/packs/nextjs-fullstack/playbooks/add-email.md +19 -16
- package/packs/nextjs-fullstack/playbooks/add-file-upload.md +19 -16
- package/packs/nextjs-fullstack/playbooks/add-webhook.md +19 -16
- package/packs/nextjs-fullstack/playbooks/ship-to-prod.md +20 -16
- package/plugins/connore/.claude-plugin/plugin.json +10 -0
- package/plugins/connore/hooks/hooks.json +16 -0
- package/plugins/connore/skills/connore-backend/SKILL.md +32 -0
- package/plugins/connore/skills/connore-handoff/SKILL.md +15 -0
- package/plugins/connore/skills/connore-routes/SKILL.md +16 -0
- package/plugins/connore/skills/connore-validate/SKILL.md +15 -0
- package/src/cli.js +110 -21
- package/src/commands/doctor.js +2 -0
- package/src/commands/edit.js +88 -0
- package/src/commands/graph.js +20 -0
- package/src/commands/handoff.js +45 -0
- package/src/commands/init.js +8 -3
- package/src/commands/lint.js +13 -5
- package/src/commands/log.js +49 -25
- package/src/commands/packs.js +21 -0
- package/src/commands/routes.js +13 -0
- package/src/commands/search.js +7 -2
- package/src/commands/update.js +5 -1
- package/src/lib/config.js +67 -64
- package/src/lib/graph.js +96 -0
- package/src/lib/index.js +88 -72
- package/src/lib/lessons.js +173 -173
- package/src/lib/lint.js +185 -67
- package/src/lib/mutate.js +26 -24
- package/src/lib/packs.js +25 -10
- package/src/lib/paths.js +1 -1
- package/src/lib/prompts.js +66 -0
- package/src/lib/report.js +41 -33
- package/src/lib/routes.js +59 -0
- package/src/lib/run.js +116 -73
- package/src/lib/search.js +24 -0
- package/src/lib/tokens.js +8 -0
|
@@ -1,43 +1,46 @@
|
|
|
1
1
|
---
|
|
2
2
|
title: Motion
|
|
3
3
|
type: doc
|
|
4
|
-
tags: [
|
|
4
|
+
tags: [motion, animation]
|
|
5
5
|
stack: nextjs
|
|
6
|
-
status:
|
|
7
|
-
verified:
|
|
8
|
-
description:
|
|
6
|
+
status: reviewed
|
|
7
|
+
verified: 2026-12-07
|
|
8
|
+
description: Load before adding animation.
|
|
9
9
|
---
|
|
10
10
|
|
|
11
11
|
# Motion
|
|
12
12
|
|
|
13
13
|
## Use when
|
|
14
|
-
|
|
14
|
+
A change should be easier to follow, or the owner asked for motion.
|
|
15
15
|
|
|
16
16
|
## Default
|
|
17
|
-
|
|
17
|
+
Animate the thing that changed, once. Honor reduced motion by showing the end state immediately.
|
|
18
18
|
|
|
19
19
|
## Use instead when
|
|
20
|
-
|
|
20
|
+
Nothing moved. Do not add a fade on every block.
|
|
21
21
|
|
|
22
22
|
## Never
|
|
23
|
-
|
|
23
|
+
Never use motion as the only sign of an error. Never leave motion running when the user asked for less.
|
|
24
24
|
|
|
25
25
|
## Why
|
|
26
|
-
|
|
26
|
+
Decorative motion makes a generated page feel the same everywhere.
|
|
27
27
|
|
|
28
28
|
## Steps
|
|
29
|
-
1.
|
|
29
|
+
1. Ask if the owner wants motion at all.
|
|
30
|
+
2. Animate one element that explains a change.
|
|
31
|
+
3. Provide the still end state under reduced motion.
|
|
32
|
+
4. Keep durations short.
|
|
30
33
|
|
|
31
34
|
## Done when
|
|
32
|
-
|
|
35
|
+
With reduced motion on, the information is still all there.
|
|
33
36
|
|
|
34
37
|
## Example
|
|
35
|
-
|
|
38
|
+
A panel opens. Reduced motion shows it open without the slide.
|
|
36
39
|
|
|
37
40
|
## Common mistakes
|
|
38
|
-
|
|
41
|
+
A bounce on every button. A loading animation with no text.
|
|
39
42
|
|
|
40
43
|
## Sources
|
|
41
|
-
|
|
44
|
+
Connore pack. Original wording. No vendor text copied.
|
|
42
45
|
|
|
43
46
|
License: MIT
|
|
@@ -1,43 +1,46 @@
|
|
|
1
1
|
---
|
|
2
|
-
title: Responsive
|
|
2
|
+
title: Responsive layout
|
|
3
3
|
type: doc
|
|
4
|
-
tags: [
|
|
4
|
+
tags: [layout, responsive]
|
|
5
5
|
stack: nextjs
|
|
6
|
-
status:
|
|
7
|
-
verified:
|
|
8
|
-
description:
|
|
6
|
+
status: reviewed
|
|
7
|
+
verified: 2026-12-07
|
|
8
|
+
description: Load when a layout should work on a narrow window.
|
|
9
9
|
---
|
|
10
10
|
|
|
11
|
-
# Responsive
|
|
11
|
+
# Responsive layout
|
|
12
12
|
|
|
13
13
|
## Use when
|
|
14
|
-
|
|
14
|
+
A page is wider than a phone, or a grid is about to get a media query.
|
|
15
15
|
|
|
16
16
|
## Default
|
|
17
|
-
|
|
17
|
+
Start from the narrow case. Add a breakpoint only where the content actually breaks. Prefer wrapping tracks to a device name.
|
|
18
18
|
|
|
19
19
|
## Use instead when
|
|
20
|
-
|
|
20
|
+
A print stylesheet. Handle that as its own pass.
|
|
21
21
|
|
|
22
22
|
## Never
|
|
23
|
-
|
|
23
|
+
Never design only at desktop width and then shrink the font until it fits.
|
|
24
24
|
|
|
25
25
|
## Why
|
|
26
|
-
|
|
26
|
+
The first real phone session is when overflow appears, and the agent patches it with overflow hidden.
|
|
27
27
|
|
|
28
28
|
## Steps
|
|
29
|
-
1.
|
|
29
|
+
1. Check the page at about 320px wide.
|
|
30
|
+
2. Let cards wrap instead of shrinking below a readable size.
|
|
31
|
+
3. Keep tap targets large enough to hit.
|
|
32
|
+
4. Do not hide the only copy of an action on small screens.
|
|
30
33
|
|
|
31
34
|
## Done when
|
|
32
|
-
|
|
35
|
+
No horizontal scroll at a narrow width, and the primary action is still on screen.
|
|
33
36
|
|
|
34
37
|
## Example
|
|
35
|
-
|
|
38
|
+
A three-card row becomes one column. The buy button stays under the price.
|
|
36
39
|
|
|
37
40
|
## Common mistakes
|
|
38
|
-
|
|
41
|
+
A hamburger that removes the only way to sign out. A fixed pixel sidebar.
|
|
39
42
|
|
|
40
43
|
## Sources
|
|
41
|
-
|
|
44
|
+
Connore pack. The 320px check matches the WCAG reflow idea, not a copied test.
|
|
42
45
|
|
|
43
46
|
License: MIT
|
|
@@ -1,43 +1,47 @@
|
|
|
1
1
|
---
|
|
2
|
-
title:
|
|
2
|
+
title: SEO audit
|
|
3
3
|
type: doc
|
|
4
|
-
tags: [
|
|
4
|
+
tags: [seo, metadata]
|
|
5
5
|
stack: nextjs
|
|
6
|
-
status:
|
|
7
|
-
verified:
|
|
8
|
-
description:
|
|
6
|
+
status: reviewed
|
|
7
|
+
verified: 2026-12-07
|
|
8
|
+
description: Load before shipping a public page or when asked why a page is missing from search.
|
|
9
9
|
---
|
|
10
10
|
|
|
11
|
-
#
|
|
11
|
+
# SEO audit
|
|
12
12
|
|
|
13
13
|
## Use when
|
|
14
|
-
|
|
14
|
+
A public page should be findable, or the user asks for an SEO pass.
|
|
15
15
|
|
|
16
16
|
## Default
|
|
17
|
-
|
|
17
|
+
Each public page has a unique title and description, a canonical url, and a sitemap that lists only pages you want crawled. Private pages are noindex.
|
|
18
18
|
|
|
19
19
|
## Use instead when
|
|
20
|
-
|
|
20
|
+
A signed-in app with no public pages. Do not add a marketing sitemap for it.
|
|
21
21
|
|
|
22
22
|
## Never
|
|
23
|
-
|
|
23
|
+
Never noindex the marketing site by accident. Never put private urls in the sitemap. Never copy a title across every page.
|
|
24
24
|
|
|
25
25
|
## Why
|
|
26
|
-
|
|
26
|
+
Agents ship a single title and a robots file that blocks the whole host.
|
|
27
27
|
|
|
28
28
|
## Steps
|
|
29
|
-
1.
|
|
29
|
+
1. Give each public route its own title and description.
|
|
30
|
+
2. Add a canonical url for that route.
|
|
31
|
+
3. Serve sitemap.xml with the public urls only.
|
|
32
|
+
4. Serve robots.txt that allows the public host and points at the sitemap.
|
|
33
|
+
5. Add structured data only for a type you actually are, such as an article or a product, and match the visible text.
|
|
30
34
|
|
|
31
35
|
## Done when
|
|
32
|
-
|
|
36
|
+
A private route is absent from the sitemap. Two public pages do not share a title.
|
|
33
37
|
|
|
34
38
|
## Example
|
|
35
|
-
|
|
39
|
+
Pricing has its own description. The settings page sends noindex and is not in the sitemap.
|
|
36
40
|
|
|
37
41
|
## Common mistakes
|
|
38
|
-
|
|
42
|
+
One layout title for the whole site. A robots file copied from a boilerplate that disallows /.
|
|
39
43
|
|
|
40
44
|
## Sources
|
|
41
|
-
|
|
45
|
+
Connore pack. No search-console result is claimed.
|
|
42
46
|
|
|
43
47
|
License: MIT
|
|
@@ -1,43 +1,46 @@
|
|
|
1
1
|
---
|
|
2
2
|
title: Tables
|
|
3
3
|
type: doc
|
|
4
|
-
tags: [
|
|
4
|
+
tags: [tables, lists]
|
|
5
5
|
stack: nextjs
|
|
6
|
-
status:
|
|
7
|
-
verified:
|
|
8
|
-
description:
|
|
6
|
+
status: reviewed
|
|
7
|
+
verified: 2026-12-07
|
|
8
|
+
description: Load before rendering a list of records.
|
|
9
9
|
---
|
|
10
10
|
|
|
11
11
|
# Tables
|
|
12
12
|
|
|
13
13
|
## Use when
|
|
14
|
-
|
|
14
|
+
The user scans many rows of their own data.
|
|
15
15
|
|
|
16
16
|
## Default
|
|
17
|
-
|
|
17
|
+
One row per record, a header that names the columns, and an empty state when there are no rows. Paginate or filter when the list can grow.
|
|
18
18
|
|
|
19
19
|
## Use instead when
|
|
20
|
-
|
|
20
|
+
Three items. A stack of cards is enough.
|
|
21
21
|
|
|
22
22
|
## Never
|
|
23
|
-
|
|
23
|
+
Never render an unbounded query into the page. Never make the row clickable with no keyboard path.
|
|
24
24
|
|
|
25
25
|
## Why
|
|
26
|
-
|
|
26
|
+
A table of every row in the database will time out and hide the empty case.
|
|
27
27
|
|
|
28
28
|
## Steps
|
|
29
|
-
1.
|
|
29
|
+
1. Select the columns the user named.
|
|
30
|
+
2. Filter by the tenant.
|
|
31
|
+
3. Limit the page size.
|
|
32
|
+
4. Give the empty result a sentence and one action.
|
|
30
33
|
|
|
31
34
|
## Done when
|
|
32
|
-
|
|
35
|
+
Zero rows shows the empty state, and a keyboard can open a row.
|
|
33
36
|
|
|
34
37
|
## Example
|
|
35
|
-
|
|
38
|
+
Invoices show date, status, and total, twenty at a time.
|
|
36
39
|
|
|
37
40
|
## Common mistakes
|
|
38
|
-
|
|
41
|
+
A table with no headers. Loading ten thousand rows on first paint.
|
|
39
42
|
|
|
40
43
|
## Sources
|
|
41
|
-
|
|
44
|
+
Connore pack. Original wording. No vendor text copied.
|
|
42
45
|
|
|
43
46
|
License: MIT
|
|
@@ -1,43 +1,45 @@
|
|
|
1
1
|
---
|
|
2
|
-
title:
|
|
2
|
+
title: Design tokens
|
|
3
3
|
type: doc
|
|
4
|
-
tags: [
|
|
4
|
+
tags: [tokens, color, type]
|
|
5
5
|
stack: nextjs
|
|
6
|
-
status:
|
|
7
|
-
verified:
|
|
8
|
-
description:
|
|
6
|
+
status: reviewed
|
|
7
|
+
verified: 2026-12-07
|
|
8
|
+
description: Load when choosing a color, a font, or a radius.
|
|
9
9
|
---
|
|
10
10
|
|
|
11
|
-
#
|
|
11
|
+
# Design tokens
|
|
12
12
|
|
|
13
13
|
## Use when
|
|
14
|
-
|
|
14
|
+
A visual value is about to be written into a component.
|
|
15
15
|
|
|
16
16
|
## Default
|
|
17
|
-
|
|
17
|
+
Ask the owner for mode, accent, and feel first. Record the answer. Put the values in one token layer. Components read the tokens.
|
|
18
18
|
|
|
19
19
|
## Use instead when
|
|
20
|
-
|
|
20
|
+
The owner already named the values. Use those and do not ask again.
|
|
21
21
|
|
|
22
22
|
## Never
|
|
23
|
-
|
|
23
|
+
Never invent a palette because the prompt did not mention color. Never average two recorded colors into a third.
|
|
24
24
|
|
|
25
25
|
## Why
|
|
26
|
-
|
|
26
|
+
A guessed palette becomes the product. The owner then spends the review undoing it.
|
|
27
27
|
|
|
28
28
|
## Steps
|
|
29
|
-
1.
|
|
29
|
+
1. If mode or accent is unset, ask and stop.
|
|
30
|
+
2. Write the chosen values as tokens, named by role.
|
|
31
|
+
3. Use the token in the component. Do not paste the hex at the call site.
|
|
30
32
|
|
|
31
33
|
## Done when
|
|
32
|
-
|
|
34
|
+
Changing the accent means editing the token, not hunting through components.
|
|
33
35
|
|
|
34
36
|
## Example
|
|
35
|
-
|
|
37
|
+
The owner says dark and one green. The button reads the accent token. A second screen does not introduce a blue link color.
|
|
36
38
|
|
|
37
39
|
## Common mistakes
|
|
38
|
-
|
|
40
|
+
A hex on the className. A font picked because it is the framework default.
|
|
39
41
|
|
|
40
42
|
## Sources
|
|
41
|
-
|
|
43
|
+
Connore pack. Owner choice comes before any sample palette.
|
|
42
44
|
|
|
43
45
|
License: MIT
|
|
@@ -1,43 +1,46 @@
|
|
|
1
1
|
---
|
|
2
2
|
title: Analytics
|
|
3
3
|
type: doc
|
|
4
|
-
tags: [
|
|
4
|
+
tags: [analytics]
|
|
5
5
|
stack: nextjs
|
|
6
|
-
status:
|
|
7
|
-
verified:
|
|
8
|
-
description:
|
|
6
|
+
status: reviewed
|
|
7
|
+
verified: 2026-12-07
|
|
8
|
+
description: Load before adding a tracker or an event.
|
|
9
9
|
---
|
|
10
10
|
|
|
11
11
|
# Analytics
|
|
12
12
|
|
|
13
13
|
## Use when
|
|
14
|
-
|
|
14
|
+
The user asked to measure a product action.
|
|
15
15
|
|
|
16
16
|
## Default
|
|
17
|
-
|
|
17
|
+
Track the few events the user named. Send them from one helper. Do not send personal content, secrets, or form values.
|
|
18
18
|
|
|
19
19
|
## Use instead when
|
|
20
|
-
|
|
20
|
+
Nobody asked for measurement. Do not add a vendor.
|
|
21
21
|
|
|
22
22
|
## Never
|
|
23
|
-
|
|
23
|
+
Never log the request body into analytics. Never add a second tracker for the same event.
|
|
24
24
|
|
|
25
25
|
## Why
|
|
26
|
-
|
|
26
|
+
Agents paste a snippet on every page and the product starts collecting things the user did not ask to collect.
|
|
27
27
|
|
|
28
28
|
## Steps
|
|
29
|
-
1.
|
|
29
|
+
1. List the events with the user. Stop at that list.
|
|
30
|
+
2. Call one function with the event name and the ids, not the text.
|
|
31
|
+
3. Load the script only where the user agreed.
|
|
32
|
+
4. Document how to turn it off.
|
|
30
33
|
|
|
31
34
|
## Done when
|
|
32
|
-
|
|
35
|
+
The named events fire once, and no form value is in the payload.
|
|
33
36
|
|
|
34
37
|
## Example
|
|
35
|
-
|
|
38
|
+
project_created carries the project id. It does not carry the project name if that name is customer data.
|
|
36
39
|
|
|
37
40
|
## Common mistakes
|
|
38
|
-
|
|
41
|
+
A tracker in the root layout before the user asked. Sending the search query.
|
|
39
42
|
|
|
40
43
|
## Sources
|
|
41
|
-
|
|
44
|
+
Connore pack.
|
|
42
45
|
|
|
43
46
|
License: MIT
|
|
@@ -1,43 +1,46 @@
|
|
|
1
1
|
---
|
|
2
2
|
title: Email
|
|
3
3
|
type: doc
|
|
4
|
-
tags: [
|
|
4
|
+
tags: [email]
|
|
5
5
|
stack: nextjs
|
|
6
|
-
status:
|
|
7
|
-
verified:
|
|
8
|
-
description:
|
|
6
|
+
status: reviewed
|
|
7
|
+
verified: 2026-12-07
|
|
8
|
+
description: Load before sending mail from the product.
|
|
9
9
|
---
|
|
10
10
|
|
|
11
11
|
# Email
|
|
12
12
|
|
|
13
13
|
## Use when
|
|
14
|
-
|
|
14
|
+
A sign-up, a receipt, or a password reset.
|
|
15
15
|
|
|
16
16
|
## Default
|
|
17
|
-
|
|
17
|
+
Send from the server or a job. Use a template with the few fields you intend. Do not put a secret in the mail body beyond a one-time link.
|
|
18
18
|
|
|
19
19
|
## Use instead when
|
|
20
|
-
|
|
20
|
+
Mail the user asked you not to send. Do not add a drip.
|
|
21
21
|
|
|
22
22
|
## Never
|
|
23
|
-
|
|
23
|
+
Never send from the client. Never put a password or a session token in the email. Never email every user because a loop forgot a filter.
|
|
24
24
|
|
|
25
25
|
## Why
|
|
26
|
-
|
|
26
|
+
A client-sent mail is spoofable, and a bad loop is how a product spams its own customers.
|
|
27
27
|
|
|
28
28
|
## Steps
|
|
29
|
-
1.
|
|
29
|
+
1. Name the one event that sends the mail.
|
|
30
|
+
2. Render the template with escaped fields.
|
|
31
|
+
3. Send after the write commits, from a job if the provider is slow.
|
|
32
|
+
4. Log the message id, not the body, when it fails.
|
|
30
33
|
|
|
31
34
|
## Done when
|
|
32
|
-
|
|
35
|
+
The mail goes out once for the event, and a failed send does not roll back a payment.
|
|
33
36
|
|
|
34
37
|
## Example
|
|
35
|
-
|
|
38
|
+
A reset link expires and does not include the user's password.
|
|
36
39
|
|
|
37
40
|
## Common mistakes
|
|
38
|
-
|
|
41
|
+
Sending inside the render. A template that injects raw HTML from the user's name.
|
|
39
42
|
|
|
40
43
|
## Sources
|
|
41
|
-
|
|
44
|
+
Connore pack.
|
|
42
45
|
|
|
43
46
|
License: MIT
|
|
@@ -1,43 +1,46 @@
|
|
|
1
1
|
---
|
|
2
|
-
title:
|
|
2
|
+
title: Model APIs
|
|
3
3
|
type: doc
|
|
4
|
-
tags: [
|
|
4
|
+
tags: [ai, api]
|
|
5
5
|
stack: nextjs
|
|
6
|
-
status:
|
|
7
|
-
verified:
|
|
8
|
-
description:
|
|
6
|
+
status: reviewed
|
|
7
|
+
verified: 2026-12-07
|
|
8
|
+
description: Load before calling a model from the product.
|
|
9
9
|
---
|
|
10
10
|
|
|
11
|
-
#
|
|
11
|
+
# Model APIs
|
|
12
12
|
|
|
13
13
|
## Use when
|
|
14
|
-
|
|
14
|
+
A feature needs a model response.
|
|
15
15
|
|
|
16
16
|
## Default
|
|
17
|
-
|
|
17
|
+
Call the model from the server. Cap the tokens and the spend the user agreed to. Store the prompt id, not the secret.
|
|
18
18
|
|
|
19
19
|
## Use instead when
|
|
20
|
-
|
|
20
|
+
The user is pasting into a chat and no product call exists. Do not add a client.
|
|
21
21
|
|
|
22
22
|
## Never
|
|
23
|
-
|
|
23
|
+
Never call the model from the browser with a secret. Never send a vault file or a password in the prompt.
|
|
24
24
|
|
|
25
25
|
## Why
|
|
26
|
-
|
|
26
|
+
The key leaks, or the bill grows with no cap.
|
|
27
27
|
|
|
28
28
|
## Steps
|
|
29
|
-
1.
|
|
29
|
+
1. Confirm the job, the model, and the cap with the user.
|
|
30
|
+
2. Keep the key in the server environment.
|
|
31
|
+
3. Timeout and return a plain error the user can retry.
|
|
32
|
+
4. Record the eval result when the prompt changes.
|
|
30
33
|
|
|
31
34
|
## Done when
|
|
32
|
-
|
|
35
|
+
A missing key fails on the server with a generic error, and the key is not in the client bundle.
|
|
33
36
|
|
|
34
37
|
## Example
|
|
35
|
-
|
|
38
|
+
A summary call runs in a route handler with a token cap.
|
|
36
39
|
|
|
37
40
|
## Common mistakes
|
|
38
|
-
|
|
41
|
+
A client component that imports the key. An unbounded retry loop.
|
|
39
42
|
|
|
40
43
|
## Sources
|
|
41
|
-
|
|
44
|
+
Connore pack. Original wording. No vendor text copied.
|
|
42
45
|
|
|
43
46
|
License: MIT
|
|
@@ -1,43 +1,46 @@
|
|
|
1
1
|
---
|
|
2
|
-
title:
|
|
2
|
+
title: OAuth
|
|
3
3
|
type: doc
|
|
4
|
-
tags: [
|
|
4
|
+
tags: [auth, oauth]
|
|
5
5
|
stack: nextjs
|
|
6
|
-
status:
|
|
7
|
-
verified:
|
|
8
|
-
description:
|
|
6
|
+
status: reviewed
|
|
7
|
+
verified: 2026-12-07
|
|
8
|
+
description: Load before adding sign-in through another provider.
|
|
9
9
|
---
|
|
10
10
|
|
|
11
|
-
#
|
|
11
|
+
# OAuth
|
|
12
12
|
|
|
13
13
|
## Use when
|
|
14
|
-
|
|
14
|
+
The user chose a provider instead of a password.
|
|
15
15
|
|
|
16
16
|
## Default
|
|
17
|
-
|
|
17
|
+
Start the redirect on the server. Check the state value on the way back. Store the account id, not the provider token, unless a later call needs it.
|
|
18
18
|
|
|
19
19
|
## Use instead when
|
|
20
|
-
|
|
20
|
+
Password sign-in is enough. Do not add a provider to look complete.
|
|
21
21
|
|
|
22
22
|
## Never
|
|
23
|
-
|
|
23
|
+
Never put the client secret in the browser. Never skip the state check.
|
|
24
24
|
|
|
25
25
|
## Why
|
|
26
|
-
|
|
26
|
+
Without state, a return url can be forged.
|
|
27
27
|
|
|
28
28
|
## Steps
|
|
29
|
-
1.
|
|
29
|
+
1. Confirm the provider with the user.
|
|
30
|
+
2. Keep the secret on the server.
|
|
31
|
+
3. Send a random state and reject a mismatch.
|
|
32
|
+
4. Create the session only after the provider confirms the user.
|
|
30
33
|
|
|
31
34
|
## Done when
|
|
32
|
-
|
|
35
|
+
A mismatched state creates no session, and the secret is not in the client.
|
|
33
36
|
|
|
34
37
|
## Example
|
|
35
|
-
|
|
38
|
+
The callback rejects a missing state and shows the sign-in page again.
|
|
36
39
|
|
|
37
40
|
## Common mistakes
|
|
38
|
-
|
|
41
|
+
Trusting the email in the query string. Logging the provider token.
|
|
39
42
|
|
|
40
43
|
## Sources
|
|
41
|
-
|
|
44
|
+
Connore pack. Original wording. No vendor text copied.
|
|
42
45
|
|
|
43
46
|
License: MIT
|
|
@@ -1,43 +1,46 @@
|
|
|
1
1
|
---
|
|
2
|
-
title: Object
|
|
2
|
+
title: Object storage
|
|
3
3
|
type: doc
|
|
4
|
-
tags: [
|
|
4
|
+
tags: [files, storage]
|
|
5
5
|
stack: nextjs
|
|
6
|
-
status:
|
|
7
|
-
verified:
|
|
8
|
-
description:
|
|
6
|
+
status: reviewed
|
|
7
|
+
verified: 2026-12-07
|
|
8
|
+
description: Load before storing a file outside the database.
|
|
9
9
|
---
|
|
10
10
|
|
|
11
|
-
# Object
|
|
11
|
+
# Object storage
|
|
12
12
|
|
|
13
13
|
## Use when
|
|
14
|
-
|
|
14
|
+
A user uploads a file, or the app generates one.
|
|
15
15
|
|
|
16
16
|
## Default
|
|
17
|
-
|
|
17
|
+
Store the bytes in object storage. Store the key and the owner in the database. Serve through a check, not a public bucket, unless the user asked for public.
|
|
18
18
|
|
|
19
19
|
## Use instead when
|
|
20
|
-
|
|
20
|
+
A tiny text field. Keep it in the row.
|
|
21
21
|
|
|
22
22
|
## Never
|
|
23
|
-
|
|
23
|
+
Never put the storage secret in the client. Never trust the filename the user sent as the storage key.
|
|
24
24
|
|
|
25
25
|
## Why
|
|
26
|
-
|
|
26
|
+
A public bucket plus a guessed name is a leak.
|
|
27
27
|
|
|
28
28
|
## Steps
|
|
29
|
-
1.
|
|
29
|
+
1. Check the session and the owner before issuing an upload.
|
|
30
|
+
2. Generate the storage key yourself.
|
|
31
|
+
3. Save the key on the owning row.
|
|
32
|
+
4. On read, check the owner again.
|
|
30
33
|
|
|
31
34
|
## Done when
|
|
32
|
-
|
|
35
|
+
A user cannot fetch another tenant's object by guessing the key.
|
|
33
36
|
|
|
34
37
|
## Example
|
|
35
|
-
|
|
38
|
+
An avatar key is avatars/<org>/<id>, and the read checks the org.
|
|
36
39
|
|
|
37
40
|
## Common mistakes
|
|
38
|
-
|
|
41
|
+
Using the original filename as the key. A bucket policy that allows public read of private files.
|
|
39
42
|
|
|
40
43
|
## Sources
|
|
41
|
-
|
|
44
|
+
Connore pack. Original wording. No vendor text copied.
|
|
42
45
|
|
|
43
46
|
License: MIT
|
|
@@ -1,43 +1,46 @@
|
|
|
1
1
|
---
|
|
2
2
|
title: Payments
|
|
3
3
|
type: doc
|
|
4
|
-
tags: [
|
|
4
|
+
tags: [payments, billing]
|
|
5
5
|
stack: nextjs
|
|
6
|
-
status:
|
|
7
|
-
verified:
|
|
8
|
-
description:
|
|
6
|
+
status: reviewed
|
|
7
|
+
verified: 2026-12-07
|
|
8
|
+
description: Load before taking money or granting paid access.
|
|
9
9
|
---
|
|
10
10
|
|
|
11
11
|
# Payments
|
|
12
12
|
|
|
13
13
|
## Use when
|
|
14
|
-
|
|
14
|
+
A checkout, a subscription, or a refund.
|
|
15
15
|
|
|
16
16
|
## Default
|
|
17
|
-
|
|
17
|
+
The provider hosts the card form. Your server creates the session and grants access only from a verified webhook. The database holds the status.
|
|
18
18
|
|
|
19
19
|
## Use instead when
|
|
20
|
-
|
|
20
|
+
A free product. Do not add a payment dependency.
|
|
21
21
|
|
|
22
22
|
## Never
|
|
23
|
-
|
|
23
|
+
Never handle the card number on your server. Never grant access because the browser said the payment worked. Never invent a price the user did not set.
|
|
24
24
|
|
|
25
25
|
## Why
|
|
26
|
-
|
|
26
|
+
The browser return can be forged. The webhook is the record.
|
|
27
27
|
|
|
28
28
|
## Steps
|
|
29
|
-
1.
|
|
29
|
+
1. Confirm the plans and amounts with the user.
|
|
30
|
+
2. Create the checkout session on the server.
|
|
31
|
+
3. On the webhook, verify the signature and the event id.
|
|
32
|
+
4. Write the subscription status. Read that status for access.
|
|
30
33
|
|
|
31
34
|
## Done when
|
|
32
|
-
|
|
35
|
+
A forged success redirect does not unlock the product. A replayed event does not grant twice.
|
|
33
36
|
|
|
34
37
|
## Example
|
|
35
|
-
|
|
38
|
+
The user closes the tab on the success page. Access still turns on when the webhook lands.
|
|
36
39
|
|
|
37
40
|
## Common mistakes
|
|
38
|
-
|
|
41
|
+
Unlocking inside the success page. Storing the card token in your users table.
|
|
39
42
|
|
|
40
43
|
## Sources
|
|
41
|
-
|
|
44
|
+
Connore pack. Vendor choice stays with the user.
|
|
42
45
|
|
|
43
46
|
License: MIT
|