openbrand-asset-extraction
```markdown
What this skill does
```markdown
---
name: openbrand-asset-extraction
description: Extract brand assets (logos, colors, backdrops, brand name) from any website URL using OpenBrand
triggers:
- extract brand assets from a website
- get logo and colors from a URL
- fetch brand colors from a website
- extract favicon and brand name from a domain
- get og image and brand assets
- pull brand kit from a website URL
- extract brand assets like Brand.dev
- get brand logo colors backdrop from URL
---
# OpenBrand Asset Extraction
> Skill by [ara.so](https://ara.so) — Daily 2026 Skills collection.
OpenBrand extracts brand assets — logos, colors, backdrop images, and brand name — from any website URL. It is an open-source alternative to Brand.dev, available as an npm package, REST API, MCP server, or agent skill.
## Installation
### npm package (no API key required)
```bash
npm add openbrand
# or
bun add openbrand
```
### MCP server for Claude Code / Cursor
```bash
# Without API key (uses local extraction)
claude mcp add --transport stdio openbrand -- npx -y openbrand-mcp
# With API key (uses hosted API)
claude mcp add --transport stdio \
--env OPENBRAND_API_KEY=$OPENBRAND_API_KEY \
openbrand -- npx -y openbrand-mcp
```
Or add to `.claude/settings.json`:
```json
{
"mcpServers": {
"openbrand": {
"command": "npx",
"args": ["-y", "openbrand-mcp"],
"env": {
"OPENBRAND_API_KEY": "your_api_key_here"
}
}
}
}
```
### Agent skill (Claude Code, Cursor, Codex, Gemini CLI)
```bash
npx skills add ethanjyx/openbrand
```
### Self-host the web app
```bash
git clone https://github.com/ethanjyx/openbrand.git
cd openbrand
bun install
bun dev
# Open http://localhost:3000
```
No environment variables required for local dev.
## npm Package Usage
### Basic extraction
```typescript
import { extractBrandAssets } from "openbrand";
const result = await extractBrandAssets("https://stripe.com");
if (result.ok) {
const { brand_name, logos, colors, backdrop_images } = result.data;
console.log("Brand name:", brand_name); // "Stripe"
console.log("Logos:", logos); // LogoAsset[]
console.log("Colors:", colors); // ColorAsset[]
console.log("Backdrops:", backdrop_images); // BackdropAsset[]
} else {
console.error("Error code:", result.error.code); // "ACCESS_BLOCKED" | "NOT_FOUND" | "SERVER_ERROR" | ...
console.error("Error message:", result.error.message); // human-readable explanation
}
```
### Working with logos
```typescript
import { extractBrandAssets } from "openbrand";
const result = await extractBrandAssets("https://github.com");
if (result.ok) {
const { logos } = result.data;
// Find the highest-resolution logo
const best = logos.reduce((a, b) =>
(a.width ?? 0) * (a.height ?? 0) >= (b.width ?? 0) * (b.height ?? 0) ? a : b
);
console.log("Best logo URL:", best.url);
console.log("Dimensions:", best.width, "x", best.height);
console.log("Format:", best.format); // "svg" | "png" | "ico" | ...
console.log("Source:", best.source); // "favicon" | "apple-touch-icon" | "nav-logo" | "inline-svg"
}
```
### Working with colors
```typescript
import { extractBrandAssets } from "openbrand";
const result = await extractBrandAssets("https://linear.app");
if (result.ok) {
const { colors } = result.data;
colors.forEach((color) => {
console.log("Hex:", color.hex); // "#5E6AD2"
console.log("Source:", color.source); // "theme-color" | "manifest" | "logo-dominant"
});
// Get the primary brand color
const primary = colors.find((c) => c.source === "theme-color") ?? colors[0];
console.log("Primary color:", primary?.hex);
}
```
### Working with backdrop images
```typescript
import { extractBrandAssets } from "openbrand";
const result = await extractBrandAssets("https://vercel.com");
if (result.ok) {
const { backdrop_images } = result.data;
backdrop_images.forEach((img) => {
console.log("URL:", img.url);
console.log("Source:", img.source); // "og:image" | "css-background" | "hero-image"
console.log("Alt:", img.alt);
});
// Get the OG image (best for social previews)
const ogImage = backdrop_images.find((img) => img.source === "og:image");
}
```
### Error handling patterns
```typescript
import { extractBrandAssets } from "openbrand";
async function getBrandSafely(url: string) {
const result = await extractBrandAssets(url);
if (!result.ok) {
switch (result.error.code) {
case "ACCESS_BLOCKED":
// Site blocks scrapers — try a different approach or skip
console.warn("Site blocks automated access:", url);
return null;
case "NOT_FOUND":
console.warn("URL not found:", url);
return null;
case "SERVER_ERROR":
console.error("Target server error:", result.error.message);
return null;
default:
console.error("Unknown error:", result.error.message);
return null;
}
}
return result.data;
}
```
### Batch extraction
```typescript
import { extractBrandAssets } from "openbrand";
const urls = [
"https://stripe.com",
"https://github.com",
"https://vercel.com",
"https://linear.app",
];
// Parallel extraction with error resilience
const results = await Promise.allSettled(
urls.map((url) => extractBrandAssets(url))
);
const brands = results
.map((r, i) => ({ url: urls[i], result: r }))
.filter(({ result }) => result.status === "fulfilled" && (result as PromiseFulfilledResult<any>).value.ok)
.map(({ url, result }) => ({
url,
...(result as PromiseFulfilledResult<any>).value.data,
}));
console.log("Successfully extracted:", brands.length, "brands");
```
## REST API Usage
Get a free API key at [openbrand.sh/dashboard](https://openbrand.sh/dashboard).
### cURL
```bash
curl "https://openbrand.sh/api/extract?url=https://stripe.com" \
-H "Authorization: Bearer $OPENBRAND_API_KEY"
```
### TypeScript fetch
```typescript
async function extractBrand(url: string) {
const res = await fetch(
`https://openbrand.sh/api/extract?url=${encodeURIComponent(url)}`,
{
headers: {
Authorization: `Bearer ${process.env.OPENBRAND_API_KEY}`,
},
}
);
if (!res.ok) {
throw new Error(`API error: ${res.status} ${res.statusText}`);
}
return res.json();
}
const brand = await extractBrand("https://stripe.com");
console.log(brand.brand_name); // "Stripe"
```
### Python requests
```python
import requests
import os
def extract_brand(url: str) -> dict:
res = requests.get(
"https://openbrand.sh/api/extract",
params={"url": url},
headers={"Authorization": f"Bearer {os.environ['OPENBRAND_API_KEY']}"},
)
res.raise_for_status()
return res.json()
brand = extract_brand("https://stripe.com")
print(brand["brand_name"]) # "Stripe"
print(brand["colors"]) # list of color assets
```
## What Gets Extracted
| Asset | Sources |
|---|---|
| **Logos** | favicons, apple-touch-icons, header/nav logos, inline SVGs (with dimension probing) |
| **Brand colors** | `theme-color` meta tag, `manifest.json`, dominant colors from logo imagery |
| **Backdrop images** | `og:image`, CSS backgrounds, hero/banner images |
| **Brand name** | `og:site_name`, `application-name`, logo alt text, page `<title>` |
## Common Patterns
### Building a brand card component
```typescript
import { extractBrandAssets } from "openbrand";
interface BrandCard {
name: string;
logoUrl: string | null;
primaryColor: string | null;
ogImage: string | null;
}
async function buildBrandCard(url: string): Promise<BrandCard | null> {
const result = await extractBrandAssets(url);
if (!result.ok) return null;
const { brand_name, logos, colors, backdrop_images } = result.data;
// Prefer SVG, then largest raster
const logo =
logos.find((l) => l.format === "svg") ??
logos.sort(
(a, b) => (b.width ?? 0) * (b.height ?? 0) - (a.width ?? 0) * Related in Writing & Docs
jax-development
IncludedUse this skill when the user is writing, debugging, profiling, refactoring, reviewing, benchmarking, parallelising, exporting, or explaining JAX code, or when they mention JAX, jax.numpy, jit, grad, value_and_grad, vmap, scan, lax, random keys, pytrees, jax.Array, sharding, Mesh, PartitionSpec, NamedSharding, pmap, shard_map, Pallas, XLA, StableHLO, checkify, profiler, or the JAX repo. It helps turn NumPy or PyTorch-style code into pure functional JAX, fix tracer/control-flow/shape/PRNG bugs, remove recompiles and host-device syncs, choose transforms and sharding strategies, inspect jaxpr/lowering/IR, and benchmark compiled code correctly.
nature-article-writer
IncludedDrafts, rewrites, diagnostically critiques, and style-calibrates primary research manuscripts for Nature and Nature Portfolio journals. Use when the user wants a Nature-style title, summary paragraph or abstract, introduction, results, discussion, methods, figure legends, presubmission enquiry, cover letter, reviewer response, or when a scientific draft sounds generic, jargon-heavy, structurally weak, or AI-ish and needs precise, broad-reader-friendly prose without inventing data, analyses, or references. Best for primary research articles and letters rather than reviews or press releases unless explicitly adapting one.
deckrd
IncludedDocument-driven framework that derives requirements, specifications, implementation plans, and executable tasks from goals through structured AI dialogue. Use when user says "write requirements", "create spec", "plan implementation", "derive tasks", "structure this feature", "break down into tasks", or "document this module". Also use for reverse engineering existing code into docs (/deckrd rev). Do NOT use for direct code writing — use /deckrd-coder after tasks are generated. Do NOT use when the user only wants to run or fix existing code without planning.
clinical-decision-support
IncludedGenerate professional clinical decision support (CDS) documents for pharmaceutical and clinical research settings, including patient cohort analyses (biomarker-stratified with outcomes) and treatment recommendation reports (evidence-based guidelines with decision algorithms). Supports GRADE evidence grading, statistical analysis (hazard ratios, survival curves, waterfall plots), biomarker integration, and regulatory compliance. Outputs publication-ready LaTeX/PDF format optimized for drug development, clinical research, and evidence synthesis.
handling-sf-data
IncludedSalesforce data operations with 130-point scoring. Use this skill to create, update, delete, bulk import/export, generate test data, and clean up org records using sf CLI and anonymous Apex. TRIGGER when: user creates test data, performs bulk import/export, uses sf data CLI commands, needs data factory patterns for Apex tests, or needs to seed/clean records in a Salesforce org. DO NOT TRIGGER when: SOQL query writing only (use querying-soql), Apex test execution (use running-apex-tests), or metadata deployment (use deploying-metadata).
accelint-ac-to-playwright
IncludedConvert and validate acceptance criteria for Playwright test automation. Use when user asks to (1) review/evaluate/check if AC are ready for automation, (2) assess if AC can be converted as-is, (3) validate AC quality for Playwright, (4) turn AC into tests, (5) generate tests from acceptance criteria, (6) convert .md bullets or .feature Gherkin files to Playwright specs, (7) create test automation from requirements. Handles both bullet-style markdown and Gherkin syntax with JSON test plan generation and validation.