跳到正文

placeholders.dev

活跃
Cherry/placeholders.dev

借助 Cloudflare Workers 和 Static Assets,在 Cloudflare 330 多个边缘节点即时生成自定义占位图片。

在 GitHub 查看
星标
163
Fork
102
关注
163
未关闭 Issue
4

该介绍目前仅提供英文版本。

Overview

placeholders.dev generates custom placeholder images on the fly. Every image is generated on Cloudflare’s edge in 330+ locations and cached for a long time, so it loads fast for every user.

Technology

It uses Cloudflare Workers and Workers Static Assets, plus HTMLRewriter to keep the displayed count of Cloudflare PoPs up to date.

Example URLs

  • https://images.placeholders.dev/350 — a 350 × 350 image
  • https://images.placeholders.dev/350x150 — width × height
  • Query parameters such as width, height, text, bgColor and textColor for full control

Use the hosted service, or deploy your own copy to your Cloudflare account.

按共同分类和标签排序的同类开源项目。

全部开发工具项目 →