datpaq/sample-apps

Working sample apps. Real Datpaq integrations.

Open-source single-page apps that show how to call Datpaq APIs from JavaScript, with auth, validation, and rendering wired up.

Eleven samples, zero build step, drop your API key and run.

text
sample-apps/
├── convert-time/
├── current-time/
├── image-processing/
├── ip-geolocation/
├── ip-intelligence/
├── sample-data/
├── unit-conversion/
├── user-avatar/
├── validate-ip/
├── whois/
└── working-days/
REPO LAYOUT
11 sample apps
JavaScript single-page
No build step
MIT-style usage
Updated regularly

The collection

One sample per API

Each app lives in its own folder, runs without a build step, and demonstrates a complete request-to-render flow against the live API.

JavaScript

Convert Time

Convert datetimes between timezones and cities, with DST handled by the API.

JavaScript

Current Time

Look up the live time, timezone, and UTC offset for any place on Earth.

JavaScript

IP Geolocation

Resolve any IPv4 or IPv6 address to a country, region, city, and ASN.

JavaScript

Unit Conversion

Convert between length, weight, volume, temperature, and area units.

JavaScript

Validate IP

Validate IPv4 and IPv6 addresses, including reserved-range checks.

JavaScript

WHOIS

Look up domain registration, registrar, nameservers, and expiry dates.

JavaScript

Working Days

Count business days between dates, honoring weekends and regional holidays.

Quickstart

Three commands from clone to call.

Clone the repo, change into the sample folder you care about, open index.html, and the app is calling the live Datpaq API as soon as you paste your key.

bash
git clone https://github.com/datpaq/sample-apps.git
cd sample-apps/image-processing
open index.html
Clone
Pull the public repo from GitHub.
Pick a sample
Change into the folder that matches your API.
Open
Open index.html in your browser and paste your key.

FAQ

Questions developers ask first.