/install favicons
Favicons
Generate cross-platform website icons using the Node.js favicons library.
Use Cases
Use this skill when the user needs to generate website icons, create a PWA icon set for a website, generate app icons for different platforms (iOS, Android, Windows), or produce a complete icon package including HTML tags and manifest files.
Installing Dependencies
Ensure favicons is installed in the project before execution:
npm install favicons
Quick Start
import { favicons } from "favicons";
const response = await favicons(source, configuration);
Workflow
- Confirm Source Image: Requires a clear app icon source image (recommended 512x512 or larger, supports PNG/SVG)
- Configure Options: Set app name, icon path, platform toggles, etc., as needed
- Execute Generation: Run the script to generate icon files
- Output Files: Obtain image files, configuration files, and HTML tags
Executing Icon Generation
Use the bundled script to generate icons:
node \x3Cskill-path>/scripts/generate_favicons.js \x3Csource-image> \x3Coutput-directory> \x3Cconfig-JSON>
Example
# Basic usage
node scripts/generate_favicons.js ./logo.png ./dist
# Full configuration
node scripts/generate_favicons.js ./logo.png ./dist '{
"appName": "My App",
"appShortName": "App",
"background": "#2196F3",
"icons": {"android": true, "appleIcon": true, "windows": true}
}'
Configuration Reference
For detailed configuration options, refer to config_reference.md.
Common Configuration
| Option | Description |
|---|---|
appName |
Application name |
appShortName |
Application short name (displayed on desktop) |
path |
Icon deployment path prefix |
background |
Icon background color |
icons.android |
Generate Android icons |
icons.appleIcon |
Generate Apple Touch icons |
icons.favicons |
Generate generic favicons |
Disabling Specific Platforms
{
icons: {
android: false, // Skip Android icons
appleStartup: false, // Skip Apple startup images
yandex: false // Skip Yandex icons
}
}
Output Files
The generated directory contains:
- Image Files: PNG icons of various sizes
- Configuration Files:
manifest.json,browserconfig.xml - HTML Tag File:
favicon-tags.html(can be directly copied into\x3Chead>)
FAQ
Why are some icons missing? Some icons (such as macOS SVG, Windows tile silhouette effects) require additional module support; the project will follow up continuously.
Generation failed?
- Ensure the source image exists and is in the correct format
- Check that Node.js version >= 14
- Ensure the
faviconspackage is installed correctly
- Make sure OpenClaw is installed (local or Docker)
- Run the install command in chat:
/install favicons - After installation, invoke the skill by name or use
/favicons - Provide required inputs per the skill's parameter spec and get structured output
What is Favicons?
Use the favicons Node.js library to generate multi-platform website icons (Favicons). It is an AI Agent Skill for Claude Code / OpenClaw, with 83 downloads so far.
How do I install Favicons?
Run "/install favicons" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.
Is Favicons free?
Yes, Favicons is completely free, licensed under MIT-0. You can download, install and use it at no cost.
Which platforms does Favicons support?
Favicons is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).
Who created Favicons?
It is built and maintained by OpenLark (@openlark); the current version is v1.0.0.