HamePub Lint

Online ePubCheck Runner

Simple

You don't have to install Java. No need to open browser and google "epub check online". Just set up REST API request, that's it.

Up to date

We will continue to update ePubCheck tool. REST endpoint will keep up-to-date. You will know if your old ePub is outdated.

Continuous

Making ePub is somehow tiring. Automation of quality check will relieve you of headaches of checking. Less ache, more quality.

Try ePubCheck


REST API

Just send post request to https://lint.hametuha.pub/validator. ePub file should be BASE64 encoded and attach it as POST body. If response JSON's parameter success is true, your ePub is valid. See example.


Try Now


REST API

// PHP Example
$epub_content = file_get_contents($epub_path);
$epub_encoded = base64_encode($epub_content);
$ch = curl_init('https://lint.hametuha.pub/validator');
curl_setopt_array($ch, [
    CURLOPT_POSTFIELDS => $epub_encoded,
    CURLOPT_POST       => true,
    CURLOPT_RETURNTRANSFER => 1,
    CURLOPT_SSL_VERIFYPEER => false,
    CURLOPT_SSL_VERIFYHOST => false,
    CURLOPT_HTTPHEADER => [
        'Content-Type: application/octet-stream'
    ],
]);
$response = curl_exec($ch);
if (!$response) {
    // Error
    return curl_error($ch);
}
$response = json_decode($response);
if ($response->success) {
    return true;
} else {
    return $response->messages;
}
                    

Who made this?

A japanese novel site Hametuha made this.
We used ePubCheck for years, but web development environment is changing.
Instead of installing Java on web server, we created API based service.

Terms of Service

You can user this site free by any reason.
But this service is provided "AS IS".
No warranty, No liability. Everything ows to you.

Acknowledgement

This service is based on EpubCheck. And Web site is build with Slim Framework. We send thanks to them.

How to Contribute

This Web site's code is hosted on Github. Feel free to send Pull Requests and any issues are welcomed.