Skip to content

Releases: HexaGhost-09/wallpapers-api

v1.0.3 - New Anime Wallpapers Added

14 Jul 15:13

Choose a tag to compare

New Wallpapers Added

What's New:

  • 🎨 New Anime Wallpapers Added!

v1.0.2 - Initial Release with Timestamp Sorting

12 Jul 09:12

Choose a tag to compare

We are excited to announce the first official release of the Wallpaper API! This version introduces the core functionality for serving wallpapers by category and includes a crucial feature for proper content management: timestamp-based sorting.

What's New

  • Core API Endpoints:
    • /wallpapers: Retrieve a paginated list of all wallpapers.
    • /wallpapers/:category: Retrieve a paginated list of wallpapers for a specific category.
    • /categories: Get a list of available wallpaper categories.
    • /health: Simple health check endpoint.
  • Timestamp-Based Sorting: All wallpaper listings (both /wallpapers and /wallpapers/:category) are now automatically sorted by their timestamp field in descending order (newest first). This ensures that the most recently added wallpapers are always displayed at the top.
  • Pagination: Both /wallpapers and /wallpapers/:category endpoints support page and limit query parameters for efficient data retrieval. (e.g., /wallpapers?page=1&limit=10)
  • CORS Support: The API includes CORS headers to allow cross-origin requests, making it accessible from various front-end applications.
  • Robust File Reading: Improved error handling for reading JSON data files, ensuring the API continues to function even if some category files are missing or malformed.

Bug Fixes

  • Resolved an issue where wallpapers were not consistently ordered, leading to older content appearing before newer additions.

Improvements

  • Enhanced logging for incoming requests and response times.
  • Added OPTIONS preflight handling for all main API routes.

How to Use

To run this API, ensure you have Deno installed.

  1. Set up your data directory:
    Create a data directory in the same location as your api.ts file.
    Inside data, create a categories directory.
    Place your anime.json, cars.json, and nature.json files inside the data/categories directory.
    Place your categories.json file directly inside the data directory.

    Example nature.json entry with a timestamp:

    {
      "id": "N1",
      "category": "nature",
      "title": "Serenity Over the Mountain Valley",
      "image": "[https://i.ibb.co/Y7h1C3D9/IMG-20250710-151044-638.jpg](https://i.ibb.co/Y7h1C3D9/IMG-20250710-151044-638.jpg)",
      "download": "[https://i.ibb.co/4RqjNMFP/IMG-20250710-151049-326.jpg](https://i.ibb.co/4RqjNMFP/IMG-20250710-151049-326.jpg)",
      "timestamp": "2025-07-09T08:59:00Z"
    }

(v1.0.1) πŸ“¦ Nature Wallpapers Update

11 Jul 15:40

Choose a tag to compare

New Wallpapers Added:

  • πŸŒ„ Twilight Cloudscape
  • ☁️ Soft Cloud Sky
  • πŸ‚ Autumn Leaf on Bark
  • πŸŒ™ Moonlit Leaves
  • 🌲 Whispers of the Wilderness
  • πŸ”οΈ Serenity Over the Mountain Valley

βœ… Includes image view & download links with updated timestamps.

v1.0.0

11 Jul 13:36

Choose a tag to compare