API v1.0No auth · CORS enabled · Edge cached
Documentation
Everything to integrate 18,039 icons — one endpoint, any color, size, or format. Copy, paste, ship.
Base URL
https://hylab.vercel.app01
Quick start
01
Get an icon
By name
GET /api/icons/home02
Customize
Color, size, format
?color=7c9a82&size=3203
Use it
Any stack
<img src="…/home?color=7c9a82" />02
Endpoints
GET
/api/iconsList icons with pagination and optional filters.
Query
page1Page numberlimit50Items per page — max 100category—Category slug — e.g. navigation, actionset—Family — e.g. tabler, lucide, phosphor (alias: source)EXAMPLE
https://hylab.vercel.app/api/icons?set=tabler&category=navigation&page=1&limit=20GET
/api/icons/:nameGet a single icon by name with on-the-fly customization.
Path params
name *Icon name — e.g. home, search, heart — pathQuery
colorcurrentColorHex without # — e.g. 7c9a82size24Pixels — 1 to 512stroke2Stroke width — 0.5 to 4formatsvgsvg · png · webpEXAMPLE
https://hylab.vercel.app/api/icons/home?color=7c9a82&size=32&format=svgGET
/api/icons/searchSearch by name, tags, or category.
Path params
q *Query string — queryEXAMPLE
https://hylab.vercel.app/api/icons/search?q=arrowGET
/api/icons/categoriesAll categories with counts — filterable by family.
Query
set—Filter categories to a family — e.g. ?set=tablerEXAMPLE
https://hylab.vercel.app/api/icons/categories?set=tablerGET
/api/icons/setsAll icon sets (sources) with counts — filterable by category.
Query
category—Filter families to a category — e.g. ?category=navigationEXAMPLE
https://hylab.vercel.app/api/icons/sets?category=navigation03
Customization
Query params for
/api/icons/:nameAll optionalcolorstringcurrentColorHex without # — applied to stroke and fill.sizenumber24Width & height — 1 to 512.strokenumber2Stroke width — 0.5 to 4.fillbooleanfalseFill shape instead of stroke only.formatstringsvgsvg, png, or webp.SVG
Vector, scalable — best for web
PNG
Raster, transparent background
WebP
Modern, smaller than PNG
04
Code examples
HTML
<img src="https://hylab.vercel.app/api/icons/home?color=7c9a82&size=32" alt="Home" />05
Icon sets & categories
Sources — 10 libraries, 18,039 icons
Tabler
MIT · consistent stroke
Remix
Line & fill variants
Carbon
IBM Design Language
Lucide
Feather successor
Phosphor
6 weights
Iconoir
No frameworks
BoxIcons
Simple line
CSS.gg
Pure CSS
Octicons
GitHub Primer
Heroicons
Tailwind Labs
06
AI agent prompt
System prompt for Cursor, Copilot, Windsurf, Claude…
You are an AI coding assistant that helps developers integrate icons using HyLab Icons API.
Base URL: https://hylab.vercel.app
Endpoints:
GET /api/icons/:name?color=7c9a82&size=32&format=svg&stroke=2
GET /api/icons?set=tabler&category=navigation&page=1&limit=20
GET /api/icons/search?q=arrow
GET /api/icons/categories?set=tabler
GET /api/icons/sets?category=navigation
Families (10): tabler (5093), remix (3229), carbon (2665), lucide (1582), phosphor (1512), iconoir (1383), boxicons (814), octicons (733), cssgg (704), heroicons (324)
Categories: navigation, action, communication, social, files, media, interface, status, commerce, charts, layout, development, weather, miscellaneous
Browse: /browse?set=tabler or /browse?set=tabler&category=navigation — shareable URL
Usage:
- List family only: GET /api/icons?set=phosphor
- Family + category: GET /api/icons?set=tabler&category=action
- Search: GET /api/icons/search?q=arrow
- Then return: https://hylab.vercel.app/api/icons/{name}?color={color}&size={size}
HTML: <img src="URL" alt="name" />
Add to
.cursorrules, AGENTS.md or .github/copilot-instructions.mdRate limits & caching
Cache-Control: public, max-age=3600 · CORS * · PNG/WebP via sharp