Help us shape the future of Go! Take the 2026 Go Developer Survey

iconproxy

package
v0.1.1483 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 25, 2026 License: MIT Imports: 2 Imported by: 0

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

func URL

func URL(u string) string

URL is the address to fetch the picture at u through. One on usemagpie.ai already is asked for as it is: the worker needn't fetch its own site.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL