Favicons, Apple touch icons, and web manifest icons - defined in document.head.
Icons cover browser tabs, bookmarks, the iOS home screen, and Android / PWA install. Bini.js uses raw <link> tags inside document.head for all icon definitions.
<link rel="icon"> - SVG and ICO with sizes<link rel="apple-touch-icon"> - 180×180 for iOS home screen<link rel="manifest"> + public/site.webmanifestpublic/ - no extra config requiredIn the root layout, place icon tags directly inside document.head. This is the pattern used by every Bini.js project. It applies in both development and production.
document.head override any tags injected with the same rel.| Tag | Purpose | Description |
|---|---|---|
| link rel="icon" | Favicon | Standard favicon with type and sizes |
| link rel="shortcut icon" | Legacy favicon | Legacy shortcut icon |
| link rel="apple-touch-icon" | iOS home screen | 180×180 recommended |
| link rel="mask-icon" | Pinned tab | Safari pinned tab icon |
| Attribute | Type | Description |
|---|---|---|
| href | string | URL to icon file |
| type | string | MIME type e.g. image/svg+xml |
| sizes | string | Size e.g. 32x32, 180x180 |
| rel | string | Relationship, e.g. icon or apple-touch-icon |
Prefer SVG for modern browsers, with PNG and ICO as fallbacks.
| File | Size | Purpose |
|---|---|---|
| favicon.svg | any | Modern browsers - scalable |
| favicon.ico | 32×32 | Legacy fallback |
| favicon-32x32.png | 32×32 | Standard tab icon |
| favicon-16x16.png | 16×16 | Small tab icon |
Used when a user adds your site to the iOS home screen. iOS applies rounded corners unless you supply a precomposed asset.
apple-touch-icon.png in public/ also works for automatic detection.The web app manifest supplies icons for Android home screen, splash, and PWA install.
Put assets in public/. Replace the defaults with your own files.
logo.png in public/ is often used as the source icon for platform icon generation.Control social preview cards.
Export document.head for site-wide head tags and page-level SEO.
Create your first pages and wrap them in shared layouts.
Match URL segments with dynamic parameters and catch-alls.
Deploy to Node, Vercel, Netlify, Cloudflare, or Deno, or build native apps in CI.
Review CLI flags and system requirements.
Favicons, Apple touch icons, and web manifest icons - defined in document.head.
Icons cover browser tabs, bookmarks, the iOS home screen, and Android / PWA install. Bini.js uses raw <link> tags inside document.head for all icon definitions.
<link rel="icon"> - SVG and ICO with sizes<link rel="apple-touch-icon"> - 180×180 for iOS home screen<link rel="manifest"> + public/site.webmanifestpublic/ - no extra config requiredIn the root layout, place icon tags directly inside document.head. This is the pattern used by every Bini.js project. It applies in both development and production.
document.head override any tags injected with the same rel.| Tag | Purpose | Description |
|---|---|---|
| link rel="icon" | Favicon | Standard favicon with type and sizes |
| link rel="shortcut icon" | Legacy favicon | Legacy shortcut icon |
| link rel="apple-touch-icon" | iOS home screen | 180×180 recommended |
| link rel="mask-icon" | Pinned tab | Safari pinned tab icon |
| Attribute | Type | Description |
|---|---|---|
| href | string | URL to icon file |
| type | string | MIME type e.g. image/svg+xml |
| sizes | string | Size e.g. 32x32, 180x180 |
| rel | string | Relationship, e.g. icon or apple-touch-icon |
Prefer SVG for modern browsers, with PNG and ICO as fallbacks.
| File | Size | Purpose |
|---|---|---|
| favicon.svg | any | Modern browsers - scalable |
| favicon.ico | 32×32 | Legacy fallback |
| favicon-32x32.png | 32×32 | Standard tab icon |
| favicon-16x16.png | 16×16 | Small tab icon |
Used when a user adds your site to the iOS home screen. iOS applies rounded corners unless you supply a precomposed asset.
apple-touch-icon.png in public/ also works for automatic detection.The web app manifest supplies icons for Android home screen, splash, and PWA install.
Put assets in public/. Replace the defaults with your own files.
logo.png in public/ is often used as the source icon for platform icon generation.Control social preview cards.
Export document.head for site-wide head tags and page-level SEO.
Create your first pages and wrap them in shared layouts.
Match URL segments with dynamic parameters and catch-alls.
Deploy to Node, Vercel, Netlify, Cloudflare, or Deno, or build native apps in CI.
Review CLI flags and system requirements.