The Brand Object

Templates

Text to copy into your own code: one JSON Schema for brand context from any endpoint, a system prompt that takes it, and adapters from each vendor's response.

Each endpoint uses different names for the same things. Code that calls more than one endpoint needs a shape of its own. These templates give you one shape and the code around it:

  • a schema for brand context that each of the eight responses can fill
  • adapters that fill the schema
  • a system prompt that reads it

Copy them. There is nothing to install.

  1. A brand context JSON SchemaA JSON Schema for brand context from any vendor: name, voice, positioning, colors with roles, type, logos, rules, files, and where and when it was read.
  2. A system prompt that takes brand contextA system prompt template for brand context, with sections for the brand, voice, look, rules and files, filled in from two real Linear responses.
  3. Adapters from each response to the schemaTypeScript functions that map each brand context endpoint's response onto one BrandContext shape: Brandfetch, Context.dev, Firecrawl, Logo.dev and Rainbrand.