Releases: HexaGhost-09/wallpapers-api
v1.0.3 - New Anime Wallpapers Added
New Wallpapers Added
What's New:
- π¨ New Anime Wallpapers Added!
v1.0.2 - Initial Release with Timestamp Sorting
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
/wallpapersand/wallpapers/:category) are now automatically sorted by theirtimestampfield in descending order (newest first). This ensures that the most recently added wallpapers are always displayed at the top. - Pagination: Both
/wallpapersand/wallpapers/:categoryendpoints supportpageandlimitquery 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
OPTIONSpreflight handling for all main API routes.
How to Use
To run this API, ensure you have Deno installed.
-
Set up your data directory:
Create adatadirectory in the same location as yourapi.tsfile.
Insidedata, create acategoriesdirectory.
Place youranime.json,cars.json, andnature.jsonfiles inside thedata/categoriesdirectory.
Place yourcategories.jsonfile directly inside thedatadirectory.Example
nature.jsonentry 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
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
Stable Release
Full Changelog: https://github.com/HexaGhost-09/wallpapers-api/commits/v1.0.0