Libraries and resources for vibe coding
The AI agent from the “Vibe coding: websites” and “Vibe coding: interfaces” topics writes code fast, but by default it often reinvents things. It draws an icon out of primitives instead of using a ready one, hacks together a naive <canvas> chart instead of a proper library, swaps a map for a static picture. Name a specific, proven library in your prompt, and the result will almost always come faster and work better than if the agent picks a solution itself. This topic isn’t an exhaustive list of everything on the market. It’s a starter kit of categories and specific names worth keeping at hand and pasting straight into your prompt to the agent.
Icons: Phosphor
Phosphor is an open icon library with several weights (regular, bold, fill, duotone and more) and a consistent grid that fits many interface styles. In your prompt, it’s enough to name the library and the weight explicitly: “use icons from Phosphor, regular weight, 24px.” Otherwise the agent will draw SVG icons itself, and they’ll come out with uneven line weights and won’t match each other.

Draw an SVG icon for the order status “[order created / paid / being packed / in transit / delivered / canceled]” for an online store interface. Return only the SVG code.Charts and data visualization: ECharts
Apache ECharts is an open library for charts and dashboards: line, bar and pie charts, heatmaps, network graphs. Animation and responsiveness come out of the box. If you’re vibe coding a prototype with data (analytics, a dashboard, a report), saying “build the chart with ECharts” saves a lot of time for both the agent and you. Without it, the agent builds the chart by hand on <canvas> or SVG from scratch.
Ready-made UI components: shadcn/ui
shadcn/ui is a set of ready-made, stylistically neutral UI components (buttons, modals, forms, tables) for React. You don’t install them like a regular library; they’re copied straight into the project’s code. The agent sees the component’s full source and can edit it freely, instead of dealing with a “black box” from node_modules. That’s exactly why shadcn/ui became a common default in agent tools: in v0 it’s the standard component set, and other agents reach for it readily too. It’s simply easier and safer for an agent to change what it can read in full than to guess how a hidden dependency behaves. A good habit is to ask for it directly: “build the form with shadcn/ui components, don’t invent your own.”
The pros and cons of shadcn/ui and a comparison with other open systems are in the “Design system in code: from Figma, from scratch or off the shelf” topic.
Animation: Motion and GSAP
A reference from Codrops (see the section below) gives you the idea, but the agent still writes the code, and it needs a library to build what you have in mind reliably instead of hand-assembling the animation in bare CSS. Motion is the most common animation library for React projects. Until late 2024 it was called Framer Motion, and you’ll still see the old name in guides and agent answers. Today it’s an independent open-source project (Framer is only a sponsor now). Its syntax is declarative: “animate this property from A to B over this much time.” It fits the component approach well and handles elements appearing and disappearing in an interface. GSAP is a more mature, platform-independent tool. It’s stronger at complex timelines and keeping many animations in sync, for example an animation tied to page scroll. For a typical designer’s prototype, Motion is usually enough. Name GSAP to the agent explicitly when you need a complex, synchronized sequence that a simple “animate this” can’t describe.
AI as a feature: AI SDK
Sometimes the task is bigger than vibe coding a prototype with AI: you need to build a call to an AI model into the product itself (the “AI as a feature inside a prototype” topic). The agent doesn’t have to write the model API integration from scratch. Vercel AI SDK is a popular library for this from Vercel. It gives you ready, proven ways to send a request to a model, handle a streaming (gradually typed-out) response, and show a loading state. There’s no need to reinvent that for every project. Phrase your prompt to the agent as explicitly as with the other libraries in this topic: “connect the model call through Vercel AI SDK instead of writing the API integration by hand.”
Any integration like this has a cost: the model call goes through the provider’s paid API key. The key must live only on the server, in a server route and an environment variable, never in client code. Otherwise any visitor can grab it from the browser and spend your money. Set a monthly spending limit in the provider’s console right away. More on this in the “Securing a vibe-coded project” topic.
Maps and geodata
A ready-made map visual in a prototype is a common request. Understand the pricing differences up front, or they’ll turn into an unpleasant surprise in production:
- OpenStreetMap + Leaflet/MapLibre means open map data and open libraries to display it. For a prototype, this is almost always the best starting choice: no key and no lock-in. But the public OpenStreetMap tile servers aren’t built for production. A live product needs a tile provider like MapTiler or Stadia. Their free plans are meant for prototypes and non-commercial projects; a commercial product needs a paid one. Don’t promise a client that the map is “free forever.”
- Google Maps API, Mapbox are better in visuals and data (especially local data for many regions). But both start with a limited free monthly quota, after which billing kicks in. Talk this through with the client before you start, not after an API bill shows up unexpectedly.
Phrase your prompt to the agent with the source named explicitly: “add an interactive map with Leaflet and OpenStreetMap tiles, no paid API key” for a prototype, and with MapTiler or Stadia tiles for production. Otherwise the agent may default to Google Maps and quietly move the project onto a paid plan.
Inspiration and learning frontend animation: Codrops
Codrops is a site with tutorials and open code for frontend animation, interactive effects and unconventional layouts. It’s less a library to use directly and more a bank of references you can feed straight to the agent: “here’s an effect from Codrops (paste the link or code); adapt a similar card reveal animation for my project.” A useful habit when vibe coding unusual, delightful interactions: look for a reference on Codrops before asking the agent to invent an animation from scratch.
Keep four more resources next to Codrops. Fountn collects designer-picked tools, mockups and UI kits. Its main feature is converting a live website into a layered Figma file (one free per day), which is handy for taking a reference apart. 60fps is a collection of micro-interactions from top apps (a reference for behavior, not code). 21st.dev has ready React components you can hand to the agent as a sample. CodePen has live examples with code. From a link, the agent will only see the page shell, so copy the three code panels (HTML, CSS, JS) for it or export the pen as a zip.
How to phrase these prompts to the agent
One principle for every category in this topic: name the specific library right in the task. Don’t rely on the agent’s default choice.
Add a monthly sales chart to the dashboard with Apache ECharts, status icons from Phosphor (regular), a store map with Leaflet and OpenStreetMap tiles without a paid key, and the filter form with shadcn/ui components
If a library is already used somewhere in the project, explicitly ask the agent to reuse it instead of adding a second similar one: “the project already has shadcn/ui; use its components and don’t add a new library for the same job.”
Command examples for practice
Here’s a screenshot of a competitor’s dashboard with charts (paste it). Suggest which ECharts chart types would suit a similar data structure
Build a set of 5 order status icons (processing, shipped, delivered, canceled, returned) from the Phosphor library, duotone weight
Compare OpenStreetMap/Leaflet and Google Maps for a delivery map in an app: which should I pick for an MVP with no API budget
Here’s an animation reference from Codrops: a link to the article and a link to the demo repository on GitHub (paste both). Explain in your own words what’s happening technically before I ask the agent to recreate itThe demo code lives in a separate repository; the article itself usually links to it.
Build a product card reveal animation on scroll with GSAP, not CSS transitions. It needs precise sync with the scroll position
Connect a chat helper to my prototype through Vercel AI SDK, and show the model’s answer as it types (streaming), not in one chunk after the full answer. The API key stays on the server only: a server route and an environment variable, never in client code. If the project has no server side, tell me first where it will liveAsk the agent to build the same small interface element (an icon or a chart) twice. The first time without naming a library, the second time naming a specific library from this topic. Compare both results and the time each one took.
Sources
- shadcn/ui Introductionui.shadcn.com
components are copied into the project’s code instead of installed as a package
- Tile Usage Policyoperations.osmfoundation.org
the public OSM tile servers come with no guarantees and aren’t for production
- MapTiler Cloud Pricingmaptiler.com
the free plan is for non-commercial use only
- Stadia Maps Pricingstadiamaps.com
the free plan excludes commercial use
- Mapbox Pricingmapbox.com
free up to 50,000 map loads a month
- AI SDK Introductionai-sdk.dev
Vercel’s TypeScript library for calling models and streaming
Found a mistake or an outdated fact? Write to hey@iskra.guide