352 字
2 分钟

Icons Gallery - Self-hosted Icons CDN Accelerated Service

Icons Gallery is an icon browsing and distribution service built on the upstream repository selfh.st/icons, providing fast and stable CDN access for users in mainland China.

Why This Project#

selfh.st/icons is a high-quality collection of self-hosted application icons, featuring 6000+ curated icons covering a wide range of common self-hosted services and applications. It is suitable for:

  • Dashboards like Homepage / Homarr / Dashy
  • NAS / Server application displays
  • Icon references in documentation and blogs

However, since the original resources are mainly hosted on GitHub, users in mainland China often encounter the following issues:

  • Slow access speeds
  • Failed icon loading
  • Unstable jsDelivr CDN

To address these problems, this CDN accelerated mirror service was created.

Speed Comparison#

jsDelivr#

jsDelivr

Peekabo

Features#

  • 6000+ icons, fully synced with selfh.st/icons repository
  • Support for SVG / PNG / WebP / AVIF / ICO formats
  • China CDN acceleration for fast and stable access
  • Online browsing, search, and category filtering
  • One-click copy of icon direct links
  • Light / Dark theme switching support

Usage#

Online Browsing#

Visit ico.bytecook.io directly. It supports keyword search and category filtering. Click on an icon to view details and copy the link.

CDN Reference#

Icon URL format:

https://ico.bytecook.io/{format}/{icon-name}.{format}

Examples:

  • https://ico.bytecook.io/svg/docker.svg
  • https://ico.bytecook.io/png/nginx.png
  • https://ico.bytecook.io/webp/portainer.webp

NPM Package Installation#

Terminal window
npm install @bytecook/icons
# or
pnpm add @bytecook/icons
# or
yarn add @bytecook/icons

Code Usage#

import { createIconUrl } from '@bytecook/icons';
// Default: SVG format, Peekabo CDN (China accelerated)
createIconUrl('nginx');
// => https://ico.bytecook.io/svg/nginx.svg
// Specify format
createIconUrl('nginx', { format: 'png' });
// => https://ico.bytecook.io/png/nginx.png
// Dark/Light variants
createIconUrl('nginx', { format: 'png', variant: 'dark' });
// => https://ico.bytecook.io/png/nginx-dark.png
// Use jsDelivr CDN (global)
createIconUrl('nginx', { cdn: 'jsdelivr' });
// => https://cdn.jsdelivr.net/gh/selfhst/icons@main/svg/nginx.svg

Factory Pattern#

import { createIconHelper } from '@bytecook/icons';
const icons = createIconHelper({ format: 'webp' });
icons.url('docker'); // WebP format
icons.svg('docker'); // Force SVG
icons.png('docker', 'dark'); // PNG dark variant

Icon Metadata#

import iconList from '@bytecook/icons/icons.json';
console.log(iconList.length); // 2360+ icons
// Each icon contains:
// { name, reference, category, svg, png, webp, light, dark, tags }

CDN Endpoints#

CDNURLDescription
Peekabohttps://ico.bytecook.ioChina accelerated (default)
jsDelivrhttps://cdn.jsdelivr.net/gh/selfhst/icons@mainGlobal CDN

Supported Formats#

  • SVG - Scalable vector graphics (recommended)
  • PNG - Raster images
  • WebP - Modern format with good compression
  • AVIF - Next-gen format with best compression
  • ICO - Windows icon format

Icon Variants#

Many icons support light and dark variants:

  • Standard: nginx.svg
  • Light variant: nginx-light.svg
  • Dark variant: nginx-dark.svg
Icons Gallery - Self-hosted Icons CDN Accelerated Service
https://catcat.blog/en/2026/01/icons-gallery-en
作者
猫猫博客
发布于
2026-01-06
许可协议
CC BY-NC-SA 4.0