Brand DNA: add a bring-your-own-key AI provider
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 5/5
- Estimated time
- Over a week
- Newbie friendliness
- 52/100
- Issue type
- Feature
- Clarity
- Clearly specified
- Activity status
- Active
- Tech stack
- nextjs, typescript
Research direction
Start with docs/brand-dna-providers.md, then read lib/brand-dna/providers/mock-ai.ts, types.ts, and store/brand-dna-store.ts to understand the provider interface and existing on-device image preparation. Define request building and error handling with unit tests that use no network, and document key storage in docs/storage.md and docs/brand-dna-providers.md. Done means one real vision provider works end to end, keeps the key in IndexedDB, previews the image sent, and falls back to the on-device result on failure.
Written by the indexing model from the issue text.
Description
Summary
Brand DNA has an on-device provider and a mock AI provider. Add a real AI provider where people paste their own API key (stored only in their browser, never sent anywhere except the model provider they choose) and the image is described by a vision model.
Where to look
docs/brand-dna-providers.md: how to add a providerlib/brand-dna/providers/mock-ai.tsandtypes.tsstore/brand-dna-store.ts
Behaviour
- The key lives in IndexedDB only, is never added to exports, project files or share links, and can be removed with one click.
- Send only the downscaled image the on-device provider already prepares; show exactly what will be sent before the first request.
- Failures (bad key, rate limit, network) show a clear message and fall back to the on-device result.
Acceptance criteria
- The provider works end to end with one real vision API (name it in the PR).
-
docs/storage.mdanddocs/brand-dna-providers.mddescribe where the key lives. - Unit tests cover request building and error handling without network access.
Getting started: fork the repo, then pnpm install and pnpm dev (Node 22+, pnpm 11, no API keys). Before opening a PR, run pnpm typecheck && pnpm test && pnpm lint && pnpm format:check && pnpm check:dashes && pnpm build (CI fails on unformatted files, so pnpm format first). See CONTRIBUTING.md and the first contribution walkthrough.
Everything needed is in the repository. This doesn't need maintainer access, secrets or paid services. Comment below to claim it, and ask questions here any time.
- Dominant language
- TypeScript
- Stars
- 11
- Forks
- 3
- Avg merge
- 4h 4m
- Merged PRs (30d)
- 74
Getting set up
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from yakew7/DesignHub
-
area: projects difficulty: medium enhancement help wanted performance v2.0.0
Difficulty 4/5 3-5 days Newbie friendliness 55/100
Maintainers usually reply within 1 day
-
area: backgrounds difficulty: hard enhancement help wanted performance v2.0.0
Difficulty 4/5 3-5 days Newbie friendliness 68/100
Maintainers usually reply within 1 day
-
dependencies difficulty: easy enhancement help wanted v2.0.0
Difficulty 4/5 3-5 days Newbie friendliness 68/100
Maintainers usually reply within 1 day
-
area: mockups area: social difficulty: medium enhancement help wanted performance v2.0.0
Difficulty 4/5 3-5 days Newbie friendliness 65/100
Maintainers usually reply within 1 day
-
area: ui difficulty: medium enhancement help wanted performance v2.0.0
Difficulty 4/5 3-5 days Newbie friendliness 68/100
Maintainers usually reply within 1 day
All issues in yakew7/DesignHub
Similar issues
-
a10y a10y-audit ai-driven-qa claude
Difficulty 2/5 1-3 hours Newbie friendliness 86/100
linagora/twake-directory-manager#219 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
Maintainers usually reply within 1 day
-
type: bug
Difficulty 2/5 1-3 hours Newbie friendliness 79/100
Maintainers usually reply within 1 day
-
0️⃣ phase/new
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
Maintainers usually reply within 1 day
-
Pulse v7: buildPreferencesFromTelos() bypasses telosSectionOrFile(), renders empty on unified-TELOS installsPossibly taken @zephyr91 claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
danielmiessler/LifeOS#2393 ·
Maintainers usually reply within 4 days