Documentation
¶
Overview ¶
Package iconproxy names where magpie downloads a remote picture from. A plugin's, an import link's or the library's icon sits on a host its author picked, and fetching it straight from there would hand that author the user's IP each time a page showed it. Every such fetch goes through usemagpie.ai's /api/icon instead (site/worker.js), which asks the host itself and passes on only an image; the host sees Cloudflare's address.
Index ¶
Constants ¶
View Source
const Base = "https://usemagpie.ai/api/icon"
Base is the proxy's endpoint. MAGPIE_ICON_PROXY replaces it, for tests.
Variables ¶
This section is empty.
Functions ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.