A high-performance REST API built with Hono.js, featuring full CRUD operations for Products, Users, and Posts. Simple, fast, and developer-friendly.
Everything you need for modern web development
Complete CRUD operations for product catalog with pricing and descriptions.
Handle user profiles with email, age, and personal information securely.
Create and manage blog posts or articles with author attribution.
Built with Hono.js for ultra-fast response times and minimal overhead.
Fast in-memory database for development and testing purposes.
Full TypeScript support with proper type definitions and validation.
Complete reference for all available endpoints
http://localhost:8787 or https://dummyapi-1xsj.onrender.com/products[
{
"id": 1,
"name": "Laptop",
"price": 999.99,
"description": "High-performance laptop"
},
{
"id": 2,
"name": "Mouse",
"price": 29.99,
"description": "Wireless mouse"
}
]/products/:id{
"id": 1,
"name": "Laptop",
"price": 999.99,
"description": "High-performance laptop"
}/products{
"id": 3,
"name": "Keyboard",
"price": 79.99,
"description": "Mechanical keyboard"
}/products/:id{
"id": 1,
"name": "Gaming Laptop",
"price": 1299.99,
"description": "High-end gaming laptop"
}/products/:id{
"id": 1,
"name": "Laptop",
"price": 999.99,
"description": "High-performance laptop"
}Quick start guide to using the API
Clone the repository and start the development server:
npm install
npm run dev
# Server will start on http://localhost:8787Test the API with a simple GET request:
curl http://localhost:8787/products
# Or using fetch in JavaScript
fetch('http://localhost:8787/products')
.then(response => response.json())
.then(data => console.log(data));Add new data using POST requests:
fetch('http://localhost:8787/products', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
},
body: JSON.stringify({
name: 'New Product',
price: 49.99,
description: 'A great new product'
})
})
.then(response => response.json())
.then(data => console.log(data));