https://github.com/simplecyber/imagehub
ImageHub offers an API to fetch random images for easy integration into your projects URL : https://imageshub.onrender.com/api/random-image.
https://github.com/simplecyber/imagehub
api nodejs
Last synced: about 2 months ago
JSON representation
ImageHub offers an API to fetch random images for easy integration into your projects URL : https://imageshub.onrender.com/api/random-image.
- Host: GitHub
- URL: https://github.com/simplecyber/imagehub
- Owner: SimpleCyber
- Created: 2025-02-02T12:19:36.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-03-23T17:38:17.000Z (about 1 year ago)
- Last Synced: 2025-04-06T23:39:27.524Z (about 1 year ago)
- Topics: api, nodejs
- Language: CSS
- Homepage: https://imageshub.onrender.com
- Size: 12.7 MB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# ImageHub
**ImageHub** is an easy-to-use image gallery that allows you to display and explore images dynamically. The project provides a backend API to serve images, a random image feature, and an intuitive frontend interface for browsing, zooming, and fullscreen views.
### Project Integration
1. Get Random images for your project JSON Format :
```bash
https://imageshub.onrender.com/api/random-image
```
2. Download the images :
```bash
https://imageshub.onrender.com
```
### Features:
- **Image Gallery**: Browse through an interactive image gallery with thumbnail previews.
- **Random Image**: View random images by clicking the "Random Image" button.
- **Image Zoom**: Zoom in on an image for a closer look.
- **Fullscreen View**: View images in fullscreen mode for better visibility.
- **Copy Image URL**: Easily copy the current image or random image URL.
### API Endpoints:
- **GET `/api/image?img={index}`**: Fetch an image by index number.
- **GET `/api/random-image`**: Fetch a random image URL from the server.
### Installation
1. Clone the repository:
```bash
git clone https://github.com/SimpleCyber/ImageHub.git
```
2. Install dependencies:
```bash
npm install
```
3. Run the development server:
```bash
npm start
```
### Usage
- Visit the project in your browser (default: http://localhost:3000).
- Use the provided controls to browse through images, view them in fullscreen, or copy the URL.