Cognitive Asset Engine
A retrieval tool for creators. It reads an abstract idea — a “spark” — and returns the raw materials and the edit strategy needed to compose it. Think of it as Perplexity for deep project research and Visio for asset search: an assistant for the gap between imagination and a finished piece.
It does not generate the final image. Generators often refuse public figures and other guarded subjects. This engine instead interprets colloquial, emotional, or ironic language and points to organic source material: transparent PNGs, background plates, fonts, and a step-by-step way to assemble them in Photoshop, Lightroom, Figma, or Illustrator.
Who it is for
Pinterest creators, film makers, and other artists who work like this:
- A vague idea appears.
- They search for something that matches what they pictured.
- They collect the exact assets that idea needs. This step is slow.
- They cut, grade, paste, and composite across several tools until the result feels like the original thought.
- They publish it, privately or publicly.
The product targets steps 2 and 3. The aim is to shorten that collection loop, on the order of a few percent, by being closer to how people actually describe an image they cannot fully name.
How a spark is read
People rarely describe an image literally. A prompt like “person with a red shirt and blue pants holding an apple, ankles bent” may be a meme or a joke, not a wardrobe request. The mocked engine decomposes each query into three lists:
- Literal entities — Brad Pitt, a red shirt, an apple
- Subtext / vibe — ironic, cinematic, GTA 6
- Required assets — transparent PNGs, neon plates, a display font
That decomposition is the stand-in for affective computing and vector search. The current backend is fixture data, not a live embedding model.
Example
create a pin of brad pitt, de caprio, jennifer lawerance as gta 6 posters
The engine treats “pin” as a tall poster, repairs the names, and reads “GTA 6” as Vice City neon and an ironic loading-screen treatment. It returns cutouts, night plates, a condensed display face, and an edit sequence. It does not invent likenesses of those people. Image URLs in the mock are placeholders.
What exists now
This is the foundation, not the split workspace yet.
| Piece | Status |
|---|---|
Next.js app at E:\cognitive-asset-engine |
Running |
| Poppins, Tailwind, shadcn/ui primitives | Installed |
| Quiet home shell | Built |
POST /api/cognitive-search |
Mocked and verified |
| Chat pane, moodboard, loading states, PayPal purchase button | Not built |
The home page states the product in one line: interpret an abstract idea, then retrieve the cutouts, plates, type, and edit strategy to compose it.
Stack
- Next.js 16 (App Router), React 19, TypeScript
- Tailwind CSS 4
- shadcn/ui: card, badge, button, input, textarea, skeleton, accordion, scroll area
- Lucide icons
- Poppins as the sans font
Mock endpoint
POST /api/cognitive-search
{ "query": "create a pin of brad pitt, de caprio, jennifer lawerance as gta 6 posters" }
The response always has the same shape:
- decomposition —
literal_entities,subtext_vibe,required_assets - understanding_log — how the spark was interpreted
- assets — type, URL, tags, tool badges (
Ps,Lr,Figma,Ai), source, andorganicorpremium - strategy_guide — numbered edit steps
- acp_agent_status — dummy PayPal Agent Commerce status, with no wallet and no live checkout
The GTA poster spark returns the full fixture, including: “3 premium assets require licensing. ACP Agent standing by to negotiate and procure.” Other queries return a thinner set with the same fields. An empty query returns 400.
What comes next
A two-pane workspace:
- Left: a sticky spark input, a short “thinking” sequence, the understanding log and strategy guide, and an ACP card with “Authorize Agent to Procure Premium Assets.”
- Right: a moodboard of asset cards, with download, copy, and find-similar actions, checkerboard frames for transparent PNGs, and tool badges.
Built With
- faiss
- fastapi
- paypal-agent-toolkit
- paypal-javascript-sdk
- paypal-mcp-server
- paypal-orders-v2-api
- paypal-sandbox
- paypal-server-sdk
- siglip-2-naflex