WebP Cloud Services Blog

How does WebP Cloud Services eat own dog food?

· Nova Kwok
  • Eating your own dog food, also known as “dogfooding” or “dogfood practice,” is the practice of using the products or services that a company produces. This approach allows an organization to test its products in real-world usage scenarios and leverage product management techniques. Therefore, dogfooding serves as a means of quality control and can eventually become a form of recommended advertising. Once a product enters the market, dogfooding demonstrates the developers’ confidence in their own product.

In our small team of only three individuals, but one that values an “engineer culture,” “eating our own dog food” has become a necessity. If we’re not willing to use our own services, then why should users believe that we can provide good service?

Our team consists of three people: Nova Kwok, BennyThink, and Tuki Deng, yet we manage quite a few websites of our own. Just to name a few:

Furthermore, we have some good friends:

You see, we have a variety of sites with different types – static and dynamic. How can we integrate them all with WebP Cloud to optimize site images and enhance loading speed?


For WordPress, we offer a plugin-based integration approach: https://github.com/webp-sh/wordpress-plugin-webp-cloud (although this plugin isn’t yet available on the official WordPress store, as we believe it’s not yet perfect, and yes, this plugin was written by ChatGPT on our behalf)

After downloading and installing the plugin, simply configure the address:

Your site will be successfully integrated with WebP Cloud. Convenient, right?


For Hexo users, Keshane Chen, one of our own, has developed a small plugin called hexo-webp-cloud-proxy.

Just run:

npm install hexo-webp-cloud-proxy --save

Then, add the following configuration to your Hexo’s _config.yml (adjust the pre_url and proxy_url):

  enable: true
  # the suffix of img type to use webp cloud service
  convert_type_list: ["jpg", "jpeg", "png", "gif"]
  # your site url
  pre_url: https://yyets.dmesg.app
  # webp cloud service proxy url
  proxy_url: https://vz4w427.webp.ee
  # the filter priority, see https://hexo.io/api/filter.html
  priority: 10

This will successfully integrate your Hexo site with WebP Cloud.


For Hugo, we have two integration approaches. One is a concept contributed by Hugo user STRRL, using Markdown Render Hooks to dynamically replace HTML on the page.

Create layouts/_default/_markup/render-image.html:

{{ if site.Params.webpCloudProxy.enable }}
    {{ if site.IsServer }}
<p class="md__image">
    <img src='{{ .Destination | safeURL }}' alt="{{ .Text }}" {{ with .Title }} title="{{ . }}" {{ end }} />
    {{ else }}
        {{ $image_ext := index (split .Destination ".") 1 }}
        {{ if in site.Params.webpCloudProxy.convertTypeList $image_ext }}
<p class="md__image">
    <img src='{{ replace ((printf "%s%s" .Page.Permalink .Destination) | safeURL) site.BaseURL site.Params.webpCloudProxy.proxyUrl }}'
        alt="{{ .Text }}" {{ with .Title }} title="{{ . }}" {{ end }} />
        {{ else }}
<p class="md__image">
    <img src='{{ .Destination | safeURL }}' alt="{{ .Text }}" {{ with .Title }} title="{{ . }}" {{ end }} />
        {{ end }}
    {{ end }}
{{ else }}
<p class="md__image">
    <img src='{{ .Destination | safeURL }}' alt="{{ .Text }}" {{ with .Title }} title="{{ . }}" {{ end }} />
{{ end }}

Then, add to config.toml:

enable = true
proxyUrl = "https://vz4w427.webp.ee/"
convertTypeList = ["jpg", "jpeg", "png", "gif"]

This will integrate your Hugo site with WebP Cloud.

The second approach uses our generic Rewrite after build method. Currently, “WebP Server Go documentation site” and “WebP Cloud Services documentation site” are integrated using this approach. If you’re interested, you can refer to the public repositories of “WebP Server Go documentation site”:

To learn about our specific integration approach.


Our good friend Halo has created a plugin: https://github.com/webp-sh/halo-plugin-webp-cloud

Usage is as simple as with the WordPress plugin – install the plugin and fill in the address:

Your site will be integrated with WebP Cloud!


For custom-built sites like BennyThink’s YYeTs video sharing site: https://yyets.click/home, built with React + Tornado, integrating with WebP Cloud is even more convenient. After all, the code is all your own. Just replace the image rendering code with something like:

const getDoubanPoster = () => {
    const webpcloud = "https://3297e64.webp.ee";
    return `${webpcloud}/api/douban?resource_id=${id}&type=image`;

<div style={ { backgroundImage: `url(${getDoubanPoster()})` } } className = { classes.post } />


One distinctive feature that sets us apart from other CDNs is that we charge based solely on the number of requests for your images. We don’t limit bandwidth or conversion frequencies. Furthermore, if you exhaust your quota, image requests will be 302 redirected to your source server’s address. This ensures that even after reaching the request limit, your images will still load seamlessly.

Oh, by the way, all the features available to our users are exactly the same. There’s no such thing as “features only available to paying users” here.

To cater to small and medium-sized websites, we offer free users a daily quota of 2000 image requests (the quota resets every 24 hours at UTC+0 00:00). Based on our research, this free allowance is more than sufficient to meet the image needs of a typical small to medium-sized site.

WebP Cloud Services, operated by a small three-person team from Shanghai and Helsingborg, has been able to persevere solely through the support of our paid users. As we don’t engage in funding, we extend our heartfelt gratitude to all our users who have supported us from the beginning to this point. It’s your support that has led to the existence of our WebP Cloud Services as it stands today.

How about registering an account and trying it out on the WebP Cloud Services Dashboard right now? If you’re curious about the fantastic features it offers, you can take a look at our documentation: WebP Cloud Services Docs. We hope everyone has a great time exploring it!

The WebP Cloud Services team is a small team of three individuals from Shanghai and Helsingborg. Since we are not funded and have no profit pressure, we remain committed to doing what we believe is right. We strive to do our best within the scope of our resources and capabilities. We also engage in various activities without affecting the services we provide to the public, and we continuously explore novel ideas in our products.

If you find this service interesting, feel free to log in to the WebP Cloud Dashboard to experience it. If you’re curious about other magical features it offers, take a look at our WebP Cloud Services Docs. We hope everyone enjoys using it!

Discuss on Hacker News