NSGo Iconify
An offline, generated Iconify icon library for NSGo. Each icon is an independent Go source file, each Iconify prefix is its own Go package, and the generated API returns the *core.SVG value NSGo already renders. The complete collections listed below are included as importable Go packages; the generator accepts additional prefixes from the pinned Iconify catalog and checks their SVG compatibility before emitting a pack.
Use the Go version and NSGo dependency declared in go.mod (currently Go 1.27.3 and NSGo v0.3.4). Install the included pack with:
go get github.com/ayangweb/nsgo-iconify/icons/lucide@latest
import (
"github.com/ayangweb/nsgo-iconify/icons/lucide"
"github.com/nsgo-dev/nsgo/core"
)
var search core.Node = core.Icon{
SVG: lucide.Search(),
Label: "搜索",
Style: core.Style{FontSize: 20},
}
core.Icon inherits the surrounding text color for SVG currentColor; it preserves the source aspect ratio and accepts a label for accessibility. Use core.SVGView when the document should be sized and colored as authored. The SVG is parsed locally and cached on first use. No network access or Icônes service is involved at runtime.
Why Go packages work this way
NSGo's core.Icon accepts *core.SVG, and core.ParseSVG/core.MustParseSVG provide the existing SVG path. The generator follows the same per-accessor lazy-cache pattern documented by NSGo's Lucide pack, but writes one Go file per icon. Each file has its own zero-value cache and function-local SVG string; there is no icon registry or package initializer containing the collection.
Go does not have JavaScript-style package tree shaking, but its linker removes unreachable functions and their associated data. scripts/verify-treeshaking.py builds and runs 0-, 1-, 10- and 100-icon programs and checks that the exact SVG payloads for unused accessors are absent from each executable. The zero-icon control blank-imports the pack while keeping the SVG renderer reachable. The measured sizes and checked payload counts are in docs/tree-shaking-results.json. This verifies the generated Go package behavior on the recorded Go toolchain; other Go versions and build modes can change absolute binary size.
Measured with Go 1.27.4 on macOS arm64 using -trimpath -buildvcs=false -ldflags='-s -w':
| Accessors used |
Executable bytes |
Unique pack SVGs retained |
Unique pack SVGs absent |
| 0 |
3,693,522 |
0 |
2,208 |
| 1 |
3,693,522 |
1 |
2,207 |
| 10 |
3,693,522 |
10 |
2,198 |
| 100 |
3,759,570 |
90 |
2,118 |
Some names share SVG data. Section alignment explains equal file sizes for small counts; inspecting the payloads establishes removal directly.
Included collections
These complete packs are checked in and need no generation step. Each icons/<prefix> is its own Go module (module github.com/ayangweb/nsgo-iconify/icons/<prefix>, requiring NSGo), so go get github.com/ayangweb/nsgo-iconify/icons/<prefix>@latest fetches only that pack instead of the whole repository. Packs also no longer carry a second copy of every SVG, which keeps git archive at HEAD to 338,279,675 bytes, inside Go's 500 MiB limit for a repository fetched directly. The first fetch of a revision still slices that archive, so installing one pack takes roughly a minute; later packs reuse the cached clone. Counts include canonical entries and aliases, including hidden upstream entries.
| Collection |
Import path suffix |
Accessors |
Icon-data license |
| @icons |
icons/at-icons |
706 |
MIT |
| Academicons |
icons/academicons |
158 |
OFL-1.1 |
| andrsrxn/icons |
icons/andrsrxn |
3,394 |
MIT |
| Ant Design Icons |
icons/ant-design |
1,888 |
MIT |
| Bootstrap Icons |
icons/bi |
2,090 |
MIT |
| Boxicons |
icons/boxicons |
3,768 |
MIT |
| Boxicons Brands |
icons/bxl |
301 |
MIT |
| BoxIcons v2 |
icons/bx |
2,423 |
MIT |
| BoxIcons v2 Solid |
icons/bxs |
665 |
MIT |
| Brandico |
icons/brandico |
45 |
CC-BY-SA-3.0 |
| Bytesize Icons |
icons/bytesize |
102 |
MIT |
| Carbon |
icons/carbon |
2,808 |
Apache-2.0 |
| Charm Icons |
icons/charm |
263 |
MIT |
| Circum Icons |
icons/circum |
288 |
MPL-2.0 |
| Clarity |
icons/clarity |
1,105 |
MIT |
| Codicons |
icons/codicon |
665 |
CC-BY-4.0 |
| coolicons |
icons/coolicons |
28,770 |
MIT |
| coolicons v4 |
icons/ci |
716 |
CC-BY-4.0 |
| CoreUI Brands |
icons/cib |
831 |
CC0-1.0 |
| CoreUI Free |
icons/cil |
562 |
CC-BY-4.0 |
| Covid Icons |
icons/covid |
142 |
CC-BY-4.0 |
| Cryptocurrency Icons |
icons/cryptocurrency |
489 |
CC0-1.0 |
| Cuida Icons |
icons/cuida |
182 |
Apache-2.0 |
| Dinkie Icons |
icons/dinkie-icons |
1,198 |
MIT |
| Duoicons |
icons/duo-icons |
91 |
MIT |
| Element Plus |
icons/ep |
293 |
MIT |
| Elusive Icons |
icons/el |
304 |
OFL-1.1 |
| Emoji One (Monotone) |
icons/emojione-monotone |
1,713 |
CC-BY-4.0 |
| Energy Icons |
icons/energy-icons |
8,252 |
MIT |
| Entypo+ |
icons/entypo |
321 |
CC-BY-SA-4.0 |
| Entypo+ Social |
icons/entypo-social |
76 |
CC-BY-SA-4.0 |
| Eva Icons |
icons/eva |
490 |
MIT |
| EVicons |
icons/evicons |
92 |
MIT |
| Evil Icons |
icons/ei |
70 |
MIT |
| Feather Icon |
icons/fe |
255 |
MIT |
| Feather Icons |
icons/feather |
286 |
MIT |
| File Icons |
icons/file-icons |
930 |
ISC |
| Flex color icons |
icons/streamline-flex-color |
1,000 |
CC-BY-4.0 |
| Flex free icons |
icons/streamline-flex |
1,500 |
CC-BY-4.0 |
| Fluent UI MDL2 |
icons/fluent-mdl2 |
1,735 |
MIT |
| Fluent UI System Icons |
icons/fluent |
20,894 |
MIT |
| Font Awesome 4 |
icons/fa |
786 |
OFL-1.1 |
| Font Awesome 5 Brands |
icons/fa-brands |
461 |
CC-BY-4.0 |
| Font Awesome 5 Regular |
icons/fa-regular |
151 |
CC-BY-4.0 |
| Font Awesome 5 Solid |
icons/fa-solid |
1,024 |
CC-BY-4.0 |
| Font Awesome 6 Brands |
icons/fa6-brands |
518 |
CC-BY-4.0 |
| Font Awesome 6 Regular |
icons/fa6-regular |
164 |
CC-BY-4.0 |
| Font Awesome 6 Solid |
icons/fa6-solid |
1,408 |
CC-BY-4.0 |
| Font Awesome Brands |
icons/fa7-brands |
608 |
CC-BY-4.0 |
| Font Awesome Regular |
icons/fa7-regular |
272 |
CC-BY-4.0 |
| Font Awesome Solid |
icons/fa7-solid |
2,000 |
CC-BY-4.0 |
| Font-GIS |
icons/gis |
367 |
CC-BY-4.0 |
| FontAudio |
icons/fad |
155 |
CC-BY-4.0 |
| Fontelico |
icons/fontelico |
34 |
CC-BY-SA-3.0 |
| Fontisto |
icons/fontisto |
615 |
MIT |
| FormKit Icons |
icons/formkit |
144 |
MIT |
| Framework7 Icons |
icons/f7 |
1,253 |
MIT |
| Freehand color icons |
icons/streamline-freehand-color |
1,000 |
CC-BY-4.0 |
| Freehand free icons |
icons/streamline-freehand |
1,000 |
CC-BY-4.0 |
| Game Icons |
icons/game-icons |
4,137 |
CC-BY-3.0 |
| Garden SVG Icons |
icons/garden |
1,491 |
Apache-2.0 |
| GeoGlyphs |
icons/geo |
30 |
MIT |
| Ginetex Care Symbols |
icons/ginetex |
50 |
MIT |
| Gitlab SVGs |
icons/pajamas |
416 |
MIT |
| Glyphs |
icons/glyphs |
3,452 |
MIT |
| Google Material Icons |
icons/ic |
11,914 |
Apache-2.0 |
| Gravity UI Icons |
icons/gravity-ui |
816 |
MIT |
| Griddy Icons |
icons/griddy-icons |
2,010 |
MIT |
| Guidance |
icons/guidance |
360 |
CC-BY-4.0 |
| Health Icons |
icons/healthicons |
3,579 |
MIT |
| HeroIcons |
icons/heroicons |
1,297 |
MIT |
| HeroIcons v1 Outline |
icons/heroicons-outline |
385 |
MIT |
| HeroIcons v1 Solid |
icons/heroicons-solid |
389 |
MIT |
| Huge Icons |
icons/hugeicons |
6,166 |
MIT |
| Humbleicons |
icons/humbleicons |
288 |
MIT |
| IconaMoon |
icons/iconamoon |
1,818 |
CC-BY-4.0 |
| Iconito Food |
icons/iconito |
120 |
MIT |
| IconMind |
icons/iconmind |
31,722 |
MIT |
| Icons8 Windows 10 Icons |
icons/icons8 |
234 |
MIT |
| Innowatio Font |
icons/iwwa |
105 |
Apache-2.0 |
| Jam Icons |
icons/jam |
940 |
MIT |
| Keyline Icons |
icons/keyline-icons |
17,448 |
MIT |
| Ligature Symbols |
icons/ls |
348 |
OFL-1.1 |
| Line Awesome |
icons/la |
2,353 |
Apache-2.0 |
| Logos free icons |
icons/streamline-logos |
1,362 |
CC-BY-4.0 |
| Lucide |
icons/lucide |
2,457 |
ISC, with inherited Feather MIT notices |
| Lucide Extended |
icons/lucide-extended |
3,052 |
ISC |
| Lucide Lab |
icons/lucide-lab |
388 |
ISC |
| Majesticons |
icons/majesticons |
1,045 |
MIT |
| Maki |
icons/maki |
604 |
CC0-1.0 |
| Map Icons |
icons/map |
167 |
OFL-1.1 |
| Material Design Iconic Font |
icons/zmdi |
885 |
OFL-1.1 |
| Material Design Icons |
icons/mdi |
14,001 |
Apache-2.0 |
| Material Design Light |
icons/mdi-light |
304 |
OFL-1.1 |
| Material Symbols |
icons/material-symbols |
24,701 |
Apache-2.0 |
| Material Symbols Light |
icons/material-symbols-light |
24,167 |
Apache-2.0 |
| Matita |
icons/matita |
440 |
MIT |
| Medical Icons |
icons/medical-icon |
144 |
MIT |
| Memes |
icons/streamline-memes |
84 |
CC-BY-4.0 |
| Memory Icons |
icons/memory |
655 |
Apache-2.0 |
| Meteor Icons |
icons/meteor-icons |
440 |
MIT |
| Mono Icons |
icons/mi |
180 |
MIT |
| Mono Icons |
icons/mono-icons |
180 |
MIT |
| Myna UI Icons |
icons/mynaui |
2,894 |
MIT |
| Nimbus |
icons/nimbus |
140 |
MIT |
| Nonicons |
icons/nonicons |
69 |
MIT |
| NRK Core Icons |
icons/nrk |
637 |
CC-BY-4.0 |
| Octicons |
icons/octicon |
988 |
MIT |
| OOUI |
icons/ooui |
431 |
MIT |
| Open Iconic |
icons/oi |
223 |
MIT |
| OpenSearch UI |
icons/oui |
444 |
Apache-2.0 |
| Oreo Doodle Icons |
icons/doodle-icons |
204 |
MIT |
| OSM Icons |
icons/osmic |
169 |
CC0-1.0 |
| Pepicons |
icons/pepicons |
430 |
CC-BY-4.0 |
| Pepicons Print |
icons/pepicons-print |
1,286 |
CC-BY-4.0 |
| Phosphor |
icons/ph |
9,198 |
MIT |
| Pico-icon |
icons/picon |
824 |
OFL-1.1 |
| Pinhead Map Icons |
icons/pinhead |
3,287 |
CC0-1.0 |
| Pixel free icons |
icons/streamline-pixel |
662 |
CC-BY-4.0 |
| Pixel Icon |
icons/pixel |
578 |
CC-BY-4.0 |
| Pixelarticons |
icons/pixelarticons |
1,308 |
MIT |
| Plump color icons |
icons/streamline-plump-color |
1,000 |
CC-BY-4.0 |
| Plump free icons |
icons/streamline-plump |
1,499 |
CC-BY-4.0 |
| Prime Icons |
icons/prime |
313 |
MIT |
| ProIcons |
icons/proicons |
577 |
MIT |
| Remix Icon |
icons/ri |
3,244 |
Apache-2.0 |
| Rivet Icons |
icons/rivet-icons |
210 |
BSD-3-Clause |
| Röntgen |
icons/roentgen |
574 |
CC-BY-4.0 |
| Sharp color icons |
icons/streamline-sharp-color |
1,000 |
CC-BY-4.0 |
| Sharp free icons |
icons/streamline-sharp |
1,500 |
CC-BY-4.0 |
| SidekickIcons |
icons/sidekickicons |
672 |
MIT |
| Simple Icons |
icons/simple-icons |
3,757 |
CC0-1.0 |
| Simple line icons |
icons/simple-line-icons |
194 |
MIT |
| SmartIcons Glyph |
icons/si-glyph |
799 |
CC-BY-SA-4.0 |
| Stash Icons |
icons/stash |
982 |
MIT |
| Streamline Block |
icons/streamline-block |
300 |
CC-BY-4.0 |
| Streamline Emojis |
icons/streamline-emojis |
787 |
CC-BY-4.0 |
| Subway Icon Set |
icons/subway |
307 |
CC-BY-4.0 |
| System UIcons |
icons/system-uicons |
432 |
Unlicense |
| Tabler Flags |
icons/tabler-flags |
297 |
MIT |
| Tabler Icons |
icons/tabler |
6,806 |
MIT |
| Temaki |
icons/temaki |
557 |
CC0-1.0 |
| TopCoat Icons |
icons/topcoat |
89 |
Apache-2.0 |
| Typicons |
icons/typcn |
336 |
CC-BY-SA-4.0 |
| uiw icons |
icons/uiw |
214 |
MIT |
| UIX Icons Regular |
icons/uix |
23,322 |
MIT |
| UIX Icons Solid |
icons/uix-solid |
23,322 |
MIT |
| Unicons Monochrome |
icons/uim |
298 |
Apache-2.0 |
| Unicons Solid |
icons/uis |
190 |
Apache-2.0 |
| Vaadin Icons |
icons/vaadin |
636 |
Apache-2.0 |
| Vadivam |
icons/vadivam |
2,046 |
MIT |
| Vesper Icons |
icons/vs |
172 |
OFL-1.1 |
| Weather Icons |
icons/wi |
601 |
OFL-1.1 |
| Web Symbols Liga |
icons/websymbol |
85 |
OFL-1.1 |
| WebHostingHub Glyphs |
icons/whh |
2,125 |
OFL-1.1 |
| with icons |
icons/withicons |
7,000 |
MIT |
| with icons Anime |
icons/withicons-anime |
1,000 |
MIT |
| with icons Bauhaus |
icons/withicons-bauhaus |
1,000 |
MIT |
| with icons Bento |
icons/withicons-bento |
1,000 |
MIT |
| with icons Brutal |
icons/withicons-brutal |
1,000 |
MIT |
| with icons Christmas |
icons/withicons-christmas |
1,000 |
MIT |
| with icons Clay |
icons/withicons-clay |
1,000 |
MIT |
| with icons Coquette |
icons/withicons-coquette |
1,000 |
MIT |
| with icons Cunar |
icons/withicons-lunar |
1,000 |
MIT |
| with icons Dock |
icons/withicons-dock |
1,000 |
MIT |
| with icons Glass |
icons/withicons-glass |
1,000 |
MIT |
| with icons Gothic |
icons/withicons-gothic |
1,000 |
MIT |
| with icons Halloween |
icons/withicons-halloween |
1,000 |
MIT |
| with icons Kawaii |
icons/withicons-kawaii |
1,000 |
MIT |
| with icons Liquid |
icons/withicons-liquid |
1,000 |
MIT |
| with icons Luxe |
icons/withicons-luxe |
1,000 |
MIT |
| with icons Pastel |
icons/withicons-pastel |
1,000 |
MIT |
| with icons Plush |
icons/withicons-plush |
1,000 |
MIT |
| with icons Rangoli |
icons/withicons-rangoli |
1,000 |
MIT |
| with icons Retro |
icons/withicons-retro |
1,000 |
MIT |
| with icons Skeuo |
icons/withicons-skeuo |
1,000 |
MIT |
| with icons Soft 3D |
icons/withicons-soft3d |
1,000 |
MIT |
| with icons Sticker |
icons/withicons-sticker |
1,000 |
MIT |
| with icons Suite |
icons/withicons-suite |
1,000 |
MIT |
| with icons Utsav |
icons/withicons-utsav |
1,000 |
MIT |
| with icons Valentine |
icons/withicons-valentine |
1,000 |
MIT |
| Zondicons |
icons/zondicons |
301 |
MIT |
The bundled packs contain 406,261 accessors in total. The installation report records a public go get of all 182 pack modules at the recorded revision plus one accessor call per pack; every pack module is also covered by in-repo go test/go vet in docs/pack-module-results.json. Each pack carries its own go.mod; the root module keeps only the generator and library tests, so packs are tested per module rather than through go test ./.... Package names drop dashes from the prefix (icons/ant-design declares antdesign, icons/fa7-solid declares fa7solid, icons/material-symbols declares materialsymbols, icons/simple-icons declares simpleicons, and the rest of the dashed prefixes likewise). Each pack includes its own LICENSE, ATTRIBUTION.md, upstream.json and test-only accessor catalog. Carbon, cuida, garden, Material Icons, iwwa, la, Material Symbols Light, Material Symbols, MDI, memory, oui, Remix Icon, topcoat, uim, uis and vaadin also include the complete Apache terms as LICENSE-TERMS.
For example, install and use two different collections directly:
go get github.com/ayangweb/nsgo-iconify/icons/mdi@latest github.com/ayangweb/nsgo-iconify/icons/tabler@latest
import (
"github.com/ayangweb/nsgo-iconify/icons/mdi"
"github.com/ayangweb/nsgo-iconify/icons/tabler"
"github.com/nsgo-dev/nsgo/core"
)
var home core.Node = core.Icon{SVG: mdi.Home(), Label: "Home"}
var searchTabler core.Node = core.Icon{SVG: tabler.Search(), Label: "Search"}
icons/lucide contains the pinned Iconify Lucide set: 2,209 canonical JSON entries and 248 aliases at the recorded source revision. This includes hidden upstream entries; the generated metadata separates canonical entries, aliases and hidden entries. Every accessor is a file such as icons/lucide/search.go, and the SVG string literal in that file is the only copy of the icon: standalone .svg assets are written only when generation is called with -svg-assets.
The checked-in catalog lists 281 Iconify collections and their author, license, SPDX identifier, version, tags and category. At the pinned revision those collections report 564,705 icons in total. Collections outside the table can be generated on demand, subject to their individual licenses and SVG compatibility.
The additional collection verification report records generation, read-only regeneration, compilation, exhaustive accessor tests and vet in an independent module:
| Collection |
Verified scope |
Generated accessors |
| Ant Design Icons |
Complete collection, including aliases |
1,888 |
| Bootstrap Icons |
Complete collection, including aliases |
2,090 |
| Charm Icons |
Complete collection, including aliases |
263 |
| Feather |
Complete collection, including aliases |
286 |
| Heroicons |
Complete collection, including aliases |
1,297 |
| Tabler |
Complete collection, including aliases |
6,806 |
| MDI |
Complete collection, including aliases |
14,001 |
| Octicons |
Complete collection, including aliases |
988 |
| Phosphor |
Complete collection, including aliases |
9,198 |
| Prime Icons |
Complete collection, including aliases |
313 |
| Remix Icon |
Complete collection, including aliases |
3,244 |
| Simple Icons |
Complete collection, including aliases |
3,757 |
| Logos |
google-icon, vue, github-icon |
3 |
| Noto |
red-heart, grinning-face |
2 |
| Flag |
cn-4x3, us-4x3 |
2 |
These 44,138 accessors are also generated in a temporary independent module during verification. The table under Included collections identifies which complete packs ship in the repository. Color/gradient/flag samples establish the listed samples' parser and build compatibility, not entire-collection coverage or visual equivalence on every native backend.
The separate complete collection audit is refreshed against the pinned commit and covers all 281 catalogued collections: 607,924 canonical entries and aliases. 197 collections pass every entry, 78 need an explicit compatible subset, and circle-flags, icon-park-twotone, line-md, streamline-cyber, svg-spinners and uix-sharp are rejected wholesale.
| Collection |
Prefix |
Entries checked |
Compatible |
Rejected |
| IconOven |
iconoven |
18,236 |
8,577 |
9,659 |
| Fluent Emoji |
fluent-emoji |
3,181 |
182 |
2,999 |
| OpenMoji |
openmoji |
4,655 |
1,930 |
2,725 |
| IconPark Solid |
icon-park-solid |
1,970 |
975 |
995 |
| Sargam Icons |
si |
1,305 |
633 |
672 |
| Noto Emoji |
noto |
4,123 |
3,660 |
463 |
| Meteocons |
meteocons |
450 |
20 |
430 |
| Reicon |
reicon |
6,590 |
6,204 |
386 |
| Pepicons Pencil |
pepicons-pencil |
1,275 |
1,020 |
255 |
| Pepicons Pop! |
pepicons-pop |
1,298 |
1,043 |
255 |
| Cyber color icons |
streamline-cyber-color |
500 |
272 |
228 |
| IonIcons |
ion |
2,607 |
2,390 |
217 |
| Famicons |
famicons |
1,342 |
1,128 |
214 |
| Noto Emoji (v1) |
noto-v1 |
2,319 |
2,106 |
213 |
| Stickies color icons |
streamline-stickies-color |
200 |
1 |
199 |
| theSVG Color |
thesvg-color |
5,248 |
5,087 |
161 |
| Mage Icons |
mage |
1,042 |
883 |
159 |
| Flagpack |
flagpack |
256 |
110 |
146 |
| Lets Icons |
lets-icons |
1,544 |
1,404 |
140 |
| Struq Icons |
struq |
347 |
207 |
140 |
| Arcticons |
arcticons |
15,865 |
15,765 |
100 |
| SVG Logos |
logos |
2,341 |
2,254 |
87 |
| VSCode Icons |
vscode-icons |
1,733 |
1,651 |
82 |
| IconPark |
icon-park |
2,658 |
2,583 |
75 |
| IconPark Outline |
icon-park-outline |
2,658 |
2,583 |
75 |
| Ultimate free icons |
streamline-ultimate |
1,999 |
1,945 |
54 |
| Iconoir |
iconoir |
2,020 |
1,980 |
40 |
| Devicon |
devicon |
1,180 |
1,152 |
28 |
| Emoji One (Colored) |
emojione |
2,159 |
2,131 |
28 |
| Solar |
solar |
10,002 |
9,981 |
21 |
| CoreUI Flags |
cif |
199 |
183 |
16 |
| Flag Icons |
flag |
548 |
532 |
16 |
| Material Icon Theme |
material-icon-theme |
1,182 |
1,167 |
15 |
| Skill Icons |
skill-icons |
400 |
385 |
15 |
| Kubernetes Icons |
k8s |
38 |
24 |
14 |
| UnJS Logos |
unjs |
63 |
50 |
13 |
| Flat UI Icons |
flat-ui |
100 |
88 |
12 |
| Akar Icons |
akar-icons |
464 |
454 |
10 |
| EOS Icons |
eos-icons |
253 |
243 |
10 |
| Fluent UI System Color Icons |
fluent-color |
890 |
880 |
10 |
| Fluent Emoji High Contrast |
fluent-emoji-high-contrast |
1,596 |
1,586 |
10 |
| selfh.st/icons |
selfhst |
7,501 |
7,491 |
10 |
| Quill Icons |
quill |
146 |
137 |
9 |
| Web3 Icons Branded |
token-branded |
4,193 |
4,184 |
9 |
| Ultimate color icons |
streamline-ultimate-color |
998 |
990 |
8 |
| Fluent Emoji Flat |
fluent-emoji-flat |
3,181 |
3,174 |
7 |
| Google Cloud Icons |
gcp |
214 |
207 |
7 |
| Kameleon color icons |
streamline-kameleon-color |
600 |
593 |
7 |
| Radix Icons |
radix-icons |
345 |
339 |
6 |
| Flat Color Icons |
flat-color-icons |
329 |
324 |
5 |
| theSVG |
thesvg |
3,813 |
3,808 |
5 |
| Catppuccin Icons |
catppuccin |
660 |
656 |
4 |
| Firefox OS Emoji |
fxemoji |
1,034 |
1,030 |
4 |
| Grommet Icons |
grommet-icons |
637 |
633 |
4 |
| Xero Emoji |
xero-emoji |
3,958 |
3,954 |
4 |
| BPMN |
bpmn |
112 |
109 |
3 |
| Cryptocurrency Color Icons |
cryptocurrency-color |
483 |
480 |
3 |
| Flowbite Icons |
flowbite |
833 |
830 |
3 |
| with icons Chrome |
withicons-chrome |
1,000 |
997 |
3 |
| Basil |
basil |
497 |
495 |
2 |
| Bitcoin Icons |
bitcoin-icons |
330 |
328 |
2 |
| Devicon Plain |
devicon-plain |
876 |
874 |
2 |
| Lsicon |
lsicon |
716 |
714 |
2 |
| MingCute Icon |
mingcute |
4,574 |
4,572 |
2 |
| Teenyicons |
teenyicons |
1,200 |
1,198 |
2 |
| CodeX Icons |
codex |
213 |
212 |
1 |
| Emoji One (v1) |
emojione-v1 |
1,529 |
1,528 |
1 |
| Glyphs Poly |
glyphs-poly |
863 |
862 |
1 |
| Siemens Industrial Experience Icons |
ix |
1,509 |
1,508 |
1 |
| Lineicons |
lineicons |
962 |
961 |
1 |
| Qlementine Icons |
qlementine-icons |
910 |
909 |
1 |
| Streamline |
streamline |
4,002 |
4,001 |
1 |
| Streamline color |
streamline-color |
2,000 |
1,999 |
1 |
| TDesign Icons |
tdesign |
2,372 |
2,371 |
1 |
| Web3 Icons |
token |
1,880 |
1,879 |
1 |
| Twitter Emoji |
twemoji |
4,728 |
4,727 |
1 |
| Unicons |
uil |
1,244 |
1,243 |
1 |
| Unicons Thin Line |
uit |
216 |
215 |
1 |
The audit records every rejected name and reason, including masks, filters and unread stroke attributes. These are conservative rejections, including attributes whose values might happen to match a backend default. It does not compile compatible subsets or prove their native rendering. Collections in the table are withheld as complete packs until NSGo supports the rejected SVG features; when such a collection's license allows redistribution, the entries NSGo can parse ship as a labelled compatible subset instead, and every rejected name stays recorded in the audit report. Passing the audit is one precondition only: a pack is published after its license text is also locked and the generated package compiles and passes its tests.
Collections that are not packaged
Three filters decide whether a collection ships: every entry must pass the parser audit, the upstream icon license must be redistributable, and the license text must be lockable so the pack carries its notices. 182 of the 197 fully compatible collections ship as complete packs; the remaining exclusions are license decisions. Collections that are only partially compatible never ship as complete packs, but a collection with a redistributable license may ship every entry NSGo can parse as an explicitly labelled compatible subset pack.
| Reason |
Collections |
| Upstream terms conflict with the catalog label |
gg — its current upstream license forbids commercial use and modification, while the catalog reports MIT |
| Strong copyleft |
icomoon-free, wordpress, dashicons, gridicons, et, gala — GPL data in a general-purpose library would bind every consumer |
| Non-commercial only |
cbi (CC BY-NC-SA 4.0), ps (CC BY-NC 4.0) |
| No lockable upstream license text |
marketeq, wpf, foundation, raphael, weui, il |
Any of these can still be generated locally with the commands below when you accept its license terms; this repository simply does not redistribute them by default.
Compatible subset packs
A subset pack contains every entry of a partially compatible collection that NSGo's parser can render. It is generated from the audit's compatible-name list, records "generation_scope": "subset" in upstream.json together with the source entry counts, and says so in its ATTRIBUTION.md; the rejected names and their reasons stay in docs/compatibility-audit-results.json. A subset is never presented as the complete collection, which is why the complete-pack table above does not change.
| Collection |
Prefix |
Packed |
Source entries |
Not renderable |
License |
| CodeX Icons |
codex |
212 |
213 |
1 |
MIT |
| Emoji One (v1) |
emojione-v1 |
1,528 |
1,529 |
1 |
CC-BY-SA-4.0 |
| Siemens Industrial Experience Icons |
ix |
1,508 |
1,509 |
1 |
MIT |
| Lineicons |
lineicons |
961 |
962 |
1 |
MIT |
| Radix Icons |
radix-icons |
339 |
345 |
6 |
MIT |
| Streamline |
streamline |
4,001 |
4,002 |
1 |
CC-BY-4.0 |
| Streamline color |
streamline-color |
1,999 |
2,000 |
1 |
CC-BY-4.0 |
| TDesign Icons |
tdesign |
2,371 |
2,372 |
1 |
MIT |
| Web3 Icons |
token |
1,879 |
1,880 |
1 |
MIT |
| Twitter Emoji |
twemoji |
4,727 |
4,728 |
1 |
CC-BY-4.0 |
| Unicons |
uil |
1,243 |
1,244 |
1 |
Apache-2.0 |
Generate a collection
The generator uses only the Go standard library plus NSGo's existing SVG parser. It downloads JSON from the official iconify/icon-sets repository and pins each generation to the 40-character commit in data/source.json.
# Generate a whole set (canonical icons and aliases)
go run ./cmd/iconiforge generate -set mdi
# Generate only named icons from one set
go run ./cmd/iconiforge generate -set tabler -icons search,home,arrow-left -out generated-subset
# Generate several complete sets
go run ./cmd/iconiforge generate -set lucide,mdi,tabler
# Refresh the catalog and pin, then regenerate a set from the latest commit
go run ./cmd/iconiforge update -set lucide
# Refresh only the catalog and source pin
go run ./cmd/iconiforge catalog
# Explicitly refresh a collection's locked upstream license text
go run ./cmd/iconiforge licenses -set lucide
# Verify a complete generated pack without changing files
go run ./cmd/iconiforge generate -set lucide -check
# Inspect entire collections without generating files or fetching licenses
go run ./cmd/iconiforge audit -set logos,noto,flag
# Also list every compatible name, for selecting a subset
go run ./cmd/iconiforge audit -set logos -list-compatible > logos-audit.json
audit emits JSON with the pinned source digest, actual NSGo dependency version, author/license metadata, existing license snapshot verification, compatible counts and every incompatible icon's reason. It shares alias resolution, SVG validation and core.ParseSVG with generation, and continues after individual icon failures. It changes no input or pack files and does not acquire missing license snapshots. A completed report exits successfully even when it contains incompatible icons; invalid arguments, source downloads and malformed source JSON fail the command. Check incompatible_icons before requesting a complete pack. Parser compatibility does not establish native visual equivalence or license suitability.
To generate the reported compatible subset, use Python to invoke the generator from a saved report:
python3 - <<'PY'
import json
import subprocess
with open("logos-audit.json") as source:
report = json.load(source)
with open("data/source.json") as source:
if json.load(source)["commit"] != report["source_commit"]:
raise SystemExit("Source pin changed; rerun the audit first")
row = report["collections"][0]
names = row.get("compatible_names", [])
if not names:
raise SystemExit("No compatible names listed; audit with -list-compatible first")
subprocess.run(["go", "run", "./cmd/iconiforge", "generate", "-set", row["prefix"],
"-icons", ",".join(names)], check=True)
PY
Review the collection's terms and lock its license before distributing the generated pack. The saved report describes its recorded source pin; rerun the audit after changing data/source.json. audit -all inspects the complete catalog without emitting icon source files, but downloads every collection and may take substantial time.
The output is icons/<prefix> by default. A prefix gives the Go import namespace, so same-named icons in different sets do not collide:
import (
mdi "github.com/ayangweb/nsgo-iconify/icons/mdi"
tabler "github.com/ayangweb/nsgo-iconify/icons/tabler"
)
core.Icon{SVG: mdi.Home()}
core.Icon{SVG: tabler.Home()}
The optional -out and -data flags let you direct generation to another tree. Generation writes .go accessors, LICENSE, ATTRIBUTION.md and upstream.json; add -svg-assets to also write one standalone .svg per icon. Writing into this repository's icons directory also emits a pack go.mod; -out into another module keeps plain packages. Each pack includes its own unexported cache helper, so -out also works inside another Go module: the generated code depends only on NSGo, with no import of this repository's internal packages. For example, from this repository, run go run ./cmd/iconiforge generate -set lucide -icons search,house -out ../my-app/icons, then import the generated package using your app's actual module path. The destination module needs the NSGo dependency from this repository's go.mod.
Each collection is prepared in a temporary sibling directory before replacing its existing pack. Validation, formatting and pruning errors preserve the previous pack; unmanaged files are copied into the replacement. Stale files are pruned only when named in that pack's prior generated manifest, and malformed manifests fail explicitly. This is per-collection replacement, not a transaction across several collections or the catalog/license locks. Avoid concurrent generation into the same pack. Review API removals or renames in the Git diff before updating an app.
On first generation of a collection, the tool obtains its upstream license text and locks it under data/licenses/<prefix>.txt and .json. GitHub license URLs are resolved to immutable commit URLs; other hosts are locked by the downloaded text and SHA-256. Later generation reuses the lock and verifies its digest, so it does not depend on a moving license URL. Keep these snapshots in version control. licenses -set PREFIX explicitly refreshes them; if a catalog URL serves HTML, use licenses -set PREFIX -url https://.../LICENSE with the actual upstream text URL. A changed catalog license requires a refreshed lock. -check never creates snapshots.
Some upstream license files contain only short Apache notices. For Apache-2.0 collections the tool also locks the complete Apache terms as <prefix>.terms.txt and distributes them in LICENSE-TERMS, alongside the original upstream notices. Catalog URLs can become stale: the checked Tabler and Logos snapshots use their verified main branch paths, Noto uses its moved 2D/svg/LICENSE, and Bootstrap Icons uses LICENSE rather than the catalog's LICENSE.md. The snapshot metadata retains both the catalog URL and the actual pinned text URL.
Catalog license labels also need review against the actual terms. css.gg is labeled MIT at the pinned catalog revision, but its current upstream license states that versions from 2.1.2 restrict commercial use and derivative works; the catalog reports 2.1.4. No css.gg license lock or generated pack is included. Resolve the terms for the exact source data before generating or redistributing it; parsing compatibility does not resolve that conflict.
update -all refreshes and generates every collection in the catalog. That may create hundreds of thousands of files and consume substantial disk space. Iconify collections do not all share a license: generated packs record their own SPDX license, author, source URL and upstream commit. Review the pack's ATTRIBUTION.md and upstream terms before distributing or using it commercially; the library's Apache-2.0 license does not relicense icon data. This includes collections with non-commercial, share-alike or copyleft terms.
Generation checks for known SVG features that NSGo silently ignores, then validates the document with the actual core.ParseSVG. Unsupported elements (including filters, masks, patterns, images and animation), unsupported paint/CSS features, external drawing references and nested SVG viewports fail with the icon name before any pack files are written. This conservative check protects source fidelity; it cannot prove identical pixels across native backends. To use a compatible subset of a collection, pass -icons explicitly. See NSGo's SVG support notes.
TSX use
NSGo TSX can import local .svg files as ImageAssets. Packs ship without standalone SVG files, so generate them into the TSX source tree on demand and import only what the app uses:
go run ./cmd/iconiforge generate -set lucide -icons search,house -svg-assets -out ./src
import { Image } from "nsgo";
import Search from "./assets/icons/lucide/search.svg";
export function SearchIcon() {
return <Image src={Search} alt="Search" style={{ width: 20, height: 20 }} />;
}
The NSGo TSX bundler embeds local SVG assets in the application bundle and esbuild omits unused imports. The test TestTSXBundlesOnlyImportedSVGAssets verifies that behavior. This route uses NSGo's Image asset handling, not core.Icon; it does not offer Go's inherited text-color behavior for currentColor on every native backend. For a recolorable vector icon with NSGo core.Icon semantics, call the generated Go accessor from Go code.
Development checks
go test ./...
go vet ./...
go test -race ./cmd/iconiforge
# Each pack is its own module; tests and vet run inside all 182 of them:
python3 scripts/verify-packs.py
cd examples/go && go build -o /dev/null ./... && cd ../..
python3 scripts/verify-treeshaking.py
# Downloads pinned collection JSON and tests temporary independent packs:
python3 scripts/verify-collections.py
# After pushing a revision, verify public installation (requires network):
python3 scripts/verify-installation.py --revision HEAD --prefix zondicons,lucide,bi
# Records whole-collection findings, including unsupported icons:
go run ./cmd/iconiforge audit -all > docs/compatibility-audit-results.json
The generator validates all selected SVGs before writing a pack. icons/lucide/upstream.json records the exact source commit, the SHA-256 of the raw downloaded JSON bytes, and the license snapshot URL and digest; data/source.json pins the catalog revision. The source data and per-set license/author details are kept independently from this library's own license. Lucide's bundled LICENSE preserves both its ISC terms and the inherited Feather MIT notices.
GitHub Actions runs the Go suite, vet, race checks, pinned regeneration and executable payload checks on Linux and macOS. Linux also verifies the additional collections and repeats the complete collection audit. Measured reports are uploaded as workflow artifacts; binary sizes are measurements, not fixed cross-platform thresholds. Normal Go tests use local fixtures and dependency caches; source regeneration and collection verification require network access.
Verified upstream references