Skip to content

v0.2.0

Choose a tag to compare

@pallaoro pallaoro released this 29 Jul 12:37

Raster-only entry point

import { logo } from "@clawnify/logokit/gstatic";

Same favicon tier, size-snapping and status-gated fetchLogo as the main entry,
without the 6,492-brand index in its module graph.

Bundlers already tree-shook the index away — importing gstatic from the main
entry is 636 B gzipped versus 109 KB for logo(). Node and Workers don't
tree-shake: they evaluate the whole graph on import, so the main entry costs a
few ms and ~1.4 MB of heap per cold start even when nothing is resolved.
This entry costs ~186 KB.

Resolves domains only — brand names need the index by definition. Prefer the
main entry unless you've measured and care; vectors where they exist are the
point of the library.

A test asserts the index never reappears in this entry's graph, so the isolation
can't regress silently.

No breaking changes.