PulsePlus is a lightweight URL status checker API built with Go Fiber. It allows you to check the availability and HTTP status code of a website via a RESTful endpoint.
- REST API: Simple and fast HTTP API.
- Real-time Checks: Pings the requested URL and returns its status code.
- Error Handling: Graceful error handling for invalid requests or unreachable URLs.
pulseplus/
├── main.go # Entry point: sets up Fiber app and routes
├── handlers/
│ └── ping.go # Handler for the ping endpoint
├── helpers/
│ └── helpers.go # Utility functions
└── go.mod # Go module definition
- Go 1.25 or higher
-
Clone the repository:
git clone https://github.com/realtouseef/pulseplus.git cd pulseplus -
Install dependencies:
go mod tidy
-
Start the server:
go run main.go
The server will start listening on port
3000.
Checks the status code of a provided URL.
- Endpoint:
POST /api/v1/ping - Content-Type:
application/json
{
"url": "https://github.com"
}curl -X POST http://localhost:3000/api/v1/ping \
-H "Content-Type: application/json" \
-d '{"url": "https://github.com"}'status code for https://github.com is 200