GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - PulseClient-ddnet/cdn: CDN with UV-to-Tee conversion procedure

BranchesTags
Open more actions menu

Latest commit

 

History

13 Commits
13 Commits

Folders and files

NameName
Last commit message
Last commit date
.github/workflows
.github/workflows
 
 
.static
.static
 
 
src
src
 
 
.env
.env
 
 
.gitignore
.gitignore
 
 
Cargo.toml
Cargo.toml
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
rustfmt.toml
rustfmt.toml
 
 

Repository files navigation

DDNet Tee Generator CDN

This project serves as a Content Delivery Network (CDN) for DDNet (DDrace Network) tee skins. It's designed to generate custom tee skins on demand, cache them for performance, and synchronize with official DDNet skin repositories.

Description

The DDNet Tee Generator CDN provides an API to create and serve custom tee skins for the DDraceNetwork game. It allows users to specify skin parameters like name, body color, and feet color to generate unique tee appearances. The system leverages caching to serve frequently requested skins quickly and synchronizes with DDNet's official skin sources to maintain an up-to-date collection.

Routes

The following API routes are available:

  • GET /skin

    • Description: Generates and returns a custom tee skin based on the provided query parameters.
    • Query Parameters:
      • name: (String, Required) The name of the skin. Whitespaces are replaced with underscores.
      • body: (u32, Optional) The DDNet color value for the tee's body.
      • feet: (u32, Optional) The DDNet color value for the tee's feet.
  • GET /skin/store

    • Description: Returns a JSON array of the names of all currently stored (downloaded and synchronized) skins.
  • GET /skin/cache

    • Description: Returns a JSON array of the names of all currently cached (generated) skins.
  • GET /health

    • Description: Performs a health check and returns a 204 No Content response if the service is operational.
  • GET /doc

    • Description: Serves the OpenAPI documentation for the API.

Created Folders

The application creates and utilizes the following folders:

  • static/: Store generated scalar doc doc.html.
  • .cache/: Used for storing generated tee skins to prevent redundant computations. These cached skins have a TTL (Time To Live) of 15 minutes.
  • .store/: Contains the downloaded base skin images from DDNet sources and a lock.json file which tracks metadata about these stored skins.

Examples of Requests

Here are examples of how to interact with the API:

  • Generate a skin named "my_custom_tee" with specific body and feet colors:

    GET /skin?name=my_custom_tee&body=322&feet=322
    
  • Generate a skin named "another_tee" with only a name:

    GET /skin?name=another_tee
    
  • Get a list of all stored skins:

    GET /skin/store
    
  • Get a list of all cached skins:

    GET /skin/cache
    
  • Check the health of the service:

    GET /health
    
  • Access the API documentation:

    GET /doc
    

License

MIT License

About

CDN with UV-to-Tee conversion procedure

Resources

Readme
MIT license
Activity
Custom properties

Stars

0 stars

Watchers

0 watching

Forks

0 forks
Report repository

Contributors

Languages

Generated from TOwInOK/rust-template-default
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.