BlockDex

Components

Registries

Free blocks

Method

BlockDex

Components

Registries

Free blocks

Method

Open API

BlockDex

Components

Registries

Free blocks

Method

Open API

Components/atroui/project-brief

Project Brief

atroui/project-brief
FreeUtility

Shared ProjectBrief type + OG/thumbnail href helpers for Scope → Planner → social card glue.

Install it

npx shadcn@latest add https://atroui.com/r/project-brief.json

Source

registry/default/lib/project-brief.tsatroui.com/r/project-brief.json
1/**
2 * Shared launch brief — glue between Scope → Planner → OG / Thumbnail.
3 * Host-owned, serializable JSON. No AtroUI backend required.
4 *
5 * Install: npx shadcn@latest add @atroui/project-brief
6 */
7
8export type ProjectBrief = {
9 name: string
10 oneLiner: string
11 audience: string
12 pages: string[]
13 tone: string
14 constraints: string[]
15 ogTitle?: string
16 ogSubtitle?: string
17 thumbnailTitle?: string
18}
19
20export const EMPTY_PROJECT_BRIEF: ProjectBrief = {
21 name: "",
22 oneLiner: "",
23 audience: "",
24 pages: [],
25 tone: "",
26 constraints: [],
27}
28
29/** localStorage key for optional client-side persistence on the host. */
30export const PROJECT_BRIEF_STORAGE_KEY = "atroui:project-brief"
31
32export function isProjectBrief(value: unknown): value is ProjectBrief {
33 if (!value || typeof value !== "object") return false
34 const v = value as Record<string, unknown>
35 return (
36 typeof v.name === "string" &&
37 typeof v.oneLiner === "string" &&
38 typeof v.audience === "string" &&
39 Array.isArray(v.pages) &&
40 typeof v.tone === "string" &&
41 Array.isArray(v.constraints)
42 )
43}
44
45export function parseProjectBrief(raw: string): ProjectBrief | null {
46 try {
47 const data = JSON.parse(raw) as unknown
48 return isProjectBrief(data) ? data : null
49 } catch {
50 return null
51 }
52}
53
54export function briefOgTitle(brief: ProjectBrief): string {
55 return (brief.ogTitle ?? brief.name).trim()
56}
57
58export function briefOgSubtitle(brief: ProjectBrief): string {
59 return (brief.ogSubtitle ?? brief.oneLiner).trim()
60}
61
62export function briefThumbnailTitle(brief: ProjectBrief): string {
63 return (brief.thumbnailTitle ?? brief.ogTitle ?? brief.name).trim()
64}
65
66export function buildOgHref(
67 brief: ProjectBrief,
68 options?: { path?: string; style?: string }
69): string {
70 const path = options?.path ?? "/og"
71 const title = briefOgTitle(brief)
72 const subtitle = briefOgSubtitle(brief)
73 const params = new URLSearchParams({ mode: "quick" })
74 if (title) params.set("title", title)
75 if (subtitle) params.set("subtitle", subtitle)
76 if (options?.style) params.set("style", options.style)
77 const qs = params.toString()
78 return `${path}?${qs}#og-workspace`
79}
80
81export function buildThumbnailHref(
82 brief: ProjectBrief,
83 options?: { path?: string }
84): string {
85 const path = options?.path ?? "/thumbnail"
86 const title = briefThumbnailTitle(brief)
87 const params = new URLSearchParams()
88 if (title) params.set("title", title)
89 const qs = params.toString()
90// … truncated

Files it writes

  • registry/default/lib/project-brief.ts

Facts

Registry
atroui
Type
registry:lib
Access
Free
Files written
1
Licence
MIT
In the index
at or before 2026-08-13
Last confirmed
today

Go to the source

atroui.com atroui/atroui on GitHub Raw registry item This item as JSON

More from atroui

All 82 items
Same registry, same kind — the ones you would have found next
ComponentRegistryKindAccessInstallsCommand
AnalyticsanalyticsatrouiUtilitiesFreeno deps
BrandbrandatrouiUtilitiesFreeno deps
SEO helpersseoatrouiUtilitiesFreeno deps
Site URLsite-urlatrouiUtilitiesFreeno deps
UtilsutilsatrouiUtilitiesFree2 deps

Also from Kynth Studios

Built for the same person as BlockDex

SkillWorks

Claude Code skills and plugins, scored

skillworks.kynth.studio

RuleStack

AGENTS.md gallery and agent-config comparison

rulestack.kynth.studio

KitGrade

SaaS starter kits, scored from measured facts

kitgrade.kynth.studio

The studio list

One product, taken apart, once a month

Kynth Studios pulls one shipped product open every month — what it does, what it cost to build, what the pipeline behind it looks like, and what the numbers did. One email a month, nothing in between.

Double opt-in — we send one confirmation link and nothing else until you click it.

BlockDex

Built by

Kynth Studios

the studio behind SkillWorks, RuleStack and KitGrade

part of Toolproof, the measurement layer for AI agent tooling

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

© 2026 BlockDex. A Kynth Studios product. Changelog

BlockDex

The studio list

One product, taken apart, once a month

Kynth Studios pulls one shipped product open every month — what it does, what it cost to build, what the pipeline behind it looks like, and what the numbers did. One email a month, nothing in between.

Double opt-in — we send one confirmation link and nothing else until you click it.

BlockDex

Built by

Kynth Studios

the studio behind SkillWorks, RuleStack and KitGrade

part of Toolproof, the measurement layer for AI agent tooling

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

© 2026 BlockDex. A Kynth Studios product. Changelog

BlockDex

The studio list

One product, taken apart, once a month

Kynth Studios pulls one shipped product open every month — what it does, what it cost to build, what the pipeline behind it looks like, and what the numbers did. One email a month, nothing in between.

Double opt-in — we send one confirmation link and nothing else until you click it.

BlockDex

Built by

Kynth Studios

the studio behind SkillWorks, RuleStack and KitGrade

part of Toolproof, the measurement layer for AI agent tooling

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

© 2026 BlockDex. A Kynth Studios product. Changelog

BlockDex