Clear all blockers: payment tested, CI/CD secrets added, status launch-ready

This commit is contained in:
Hoid 2026-02-16 18:49:39 +00:00
parent 33b1489e6c
commit 0ab4afd398
94 changed files with 10014 additions and 931 deletions

View file

@ -0,0 +1,515 @@
var signupEmail = '';
var recoverEmail = '';
function showState(state) {
['signupInitial', 'signupLoading', 'signupVerify', 'signupResult'].forEach(function(id) {
var el = document.getElementById(id);
if (el) el.classList.remove('active');
});
document.getElementById(state).classList.add('active');
}
function showRecoverState(state) {
['recoverInitial', 'recoverLoading', 'recoverVerify', 'recoverResult'].forEach(function(id) {
var el = document.getElementById(id);
if (el) el.classList.remove('active');
});
document.getElementById(state).classList.add('active');
}
function openSignup() {
document.getElementById('signupModal').classList.add('active');
showState('signupInitial');
document.getElementById('signupError').style.display = 'none';
document.getElementById('verifyError').style.display = 'none';
document.getElementById('signupEmail').value = '';
document.getElementById('verifyCode').value = '';
signupEmail = '';
}
function closeSignup() {
document.getElementById('signupModal').classList.remove('active');
}
function openRecover() {
closeSignup();
document.getElementById('recoverModal').classList.add('active');
showRecoverState('recoverInitial');
var errEl = document.getElementById('recoverError');
if (errEl) errEl.style.display = 'none';
var verifyErrEl = document.getElementById('recoverVerifyError');
if (verifyErrEl) verifyErrEl.style.display = 'none';
document.getElementById('recoverEmailInput').value = '';
document.getElementById('recoverCode').value = '';
recoverEmail = '';
}
function closeRecover() {
document.getElementById('recoverModal').classList.remove('active');
}
async function submitSignup() {
var errEl = document.getElementById('signupError');
var btn = document.getElementById('signupBtn');
var emailInput = document.getElementById('signupEmail');
var email = emailInput.value.trim();
if (!email || !/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(email)) {
errEl.textContent = 'Please enter a valid email address.';
errEl.style.display = 'block';
return;
}
errEl.style.display = 'none';
btn.disabled = true;
showState('signupLoading');
try {
var res = await fetch('/v1/signup/free', {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({ email: email })
});
var data = await res.json();
if (!res.ok) {
showState('signupInitial');
errEl.textContent = data.error || 'Something went wrong. Please try again.';
errEl.style.display = 'block';
btn.disabled = false;
return;
}
signupEmail = email;
document.getElementById('verifyEmailDisplay').textContent = email;
showState('signupVerify');
document.getElementById('verifyCode').focus();
btn.disabled = false;
} catch (err) {
showState('signupInitial');
errEl.textContent = 'Network error. Please try again.';
errEl.style.display = 'block';
btn.disabled = false;
}
}
async function submitVerify() {
var errEl = document.getElementById('verifyError');
var btn = document.getElementById('verifyBtn');
var codeInput = document.getElementById('verifyCode');
var code = codeInput.value.trim();
if (!code || !/^\d{6}$/.test(code)) {
errEl.textContent = 'Please enter a 6-digit code.';
errEl.style.display = 'block';
return;
}
errEl.style.display = 'none';
btn.disabled = true;
try {
var res = await fetch('/v1/signup/verify', {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({ email: signupEmail, code: code })
});
var data = await res.json();
if (!res.ok) {
errEl.textContent = data.error || 'Verification failed.';
errEl.style.display = 'block';
btn.disabled = false;
return;
}
document.getElementById('apiKeyText').textContent = data.apiKey;
showState('signupResult');
} catch (err) {
errEl.textContent = 'Network error. Please try again.';
errEl.style.display = 'block';
btn.disabled = false;
}
}
async function submitRecover() {
var errEl = document.getElementById('recoverError');
var btn = document.getElementById('recoverBtn');
var emailInput = document.getElementById('recoverEmailInput');
var email = emailInput.value.trim();
if (!email || !/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(email)) {
errEl.textContent = 'Please enter a valid email address.';
errEl.style.display = 'block';
return;
}
errEl.style.display = 'none';
btn.disabled = true;
showRecoverState('recoverLoading');
try {
var res = await fetch('/v1/recover', {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({ email: email })
});
var data = await res.json();
if (!res.ok) {
showRecoverState('recoverInitial');
errEl.textContent = data.error || 'Something went wrong.';
errEl.style.display = 'block';
btn.disabled = false;
return;
}
recoverEmail = email;
document.getElementById('recoverEmailDisplay').textContent = email;
showRecoverState('recoverVerify');
document.getElementById('recoverCode').focus();
btn.disabled = false;
} catch (err) {
showRecoverState('recoverInitial');
errEl.textContent = 'Network error. Please try again.';
errEl.style.display = 'block';
btn.disabled = false;
}
}
async function submitRecoverVerify() {
var errEl = document.getElementById('recoverVerifyError');
var btn = document.getElementById('recoverVerifyBtn');
var codeInput = document.getElementById('recoverCode');
var code = codeInput.value.trim();
if (!code || !/^\d{6}$/.test(code)) {
errEl.textContent = 'Please enter a 6-digit code.';
errEl.style.display = 'block';
return;
}
errEl.style.display = 'none';
btn.disabled = true;
try {
var res = await fetch('/v1/recover/verify', {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({ email: recoverEmail, code: code })
});
var data = await res.json();
if (!res.ok) {
errEl.textContent = data.error || 'Verification failed.';
errEl.style.display = 'block';
btn.disabled = false;
return;
}
if (data.apiKey) {
document.getElementById('recoveredKeyText').textContent = data.apiKey;
showRecoverState('recoverResult');
} else {
errEl.textContent = data.message || 'No key found for this email.';
errEl.style.display = 'block';
btn.disabled = false;
}
} catch (err) {
errEl.textContent = 'Network error. Please try again.';
errEl.style.display = 'block';
btn.disabled = false;
}
}
function copyKey() {
var key = document.getElementById('apiKeyText').textContent;
var btn = document.getElementById('copyBtn');
doCopy(key, btn);
}
function copyRecoveredKey() {
var key = document.getElementById('recoveredKeyText').textContent;
var btn = document.getElementById('copyRecoveredBtn');
doCopy(key, btn);
}
function doCopy(text, btn) {
function showCopied() {
btn.textContent = '\u2713 Copied!';
setTimeout(function() { btn.textContent = 'Copy'; }, 2000);
}
function showFailed() {
btn.textContent = 'Failed';
setTimeout(function() { btn.textContent = 'Copy'; }, 2000);
}
try {
if (navigator.clipboard && window.isSecureContext) {
navigator.clipboard.writeText(text).then(showCopied).catch(function() {
// Fallback to execCommand
try {
var ta = document.createElement('textarea');
ta.value = text;
ta.style.position = 'fixed';
ta.style.opacity = '0';
ta.style.top = '-9999px';
ta.style.left = '-9999px';
document.body.appendChild(ta);
ta.focus();
ta.select();
var success = document.execCommand('copy');
document.body.removeChild(ta);
if (success) {
showCopied();
} else {
showFailed();
}
} catch (err) {
showFailed();
}
});
} else {
// Direct fallback for non-secure contexts
var ta = document.createElement('textarea');
ta.value = text;
ta.style.position = 'fixed';
ta.style.opacity = '0';
ta.style.top = '-9999px';
ta.style.left = '-9999px';
document.body.appendChild(ta);
ta.focus();
ta.select();
var success = document.execCommand('copy');
document.body.removeChild(ta);
if (success) {
showCopied();
} else {
showFailed();
}
}
} catch(e) {
showFailed();
}
}
async function checkout() {
try {
var res = await fetch('/v1/billing/checkout', { method: 'POST' });
var data = await res.json();
if (data.url) window.location.href = data.url;
else alert('Checkout is not available yet. Please try again later.');
} catch (err) {
alert('Something went wrong. Please try again.');
}
}
document.addEventListener('DOMContentLoaded', function() {
document.getElementById('btn-signup').addEventListener('click', openSignup);
document.getElementById('btn-signup-2').addEventListener('click', openSignup);
document.getElementById('btn-checkout').addEventListener('click', checkout);
document.getElementById('btn-close-signup').addEventListener('click', closeSignup);
document.getElementById('signupBtn').addEventListener('click', submitSignup);
document.getElementById('verifyBtn').addEventListener('click', submitVerify);
document.getElementById('copyBtn').addEventListener('click', copyKey);
// Recovery modal
document.getElementById('btn-close-recover').addEventListener('click', closeRecover);
document.getElementById('recoverBtn').addEventListener('click', submitRecover);
document.getElementById('recoverVerifyBtn').addEventListener('click', submitRecoverVerify);
document.getElementById('copyRecoveredBtn').addEventListener('click', copyRecoveredKey);
document.getElementById('recoverModal').addEventListener('click', function(e) {
if (e.target === this) closeRecover();
});
// Open recovery from links
document.querySelectorAll('.open-recover').forEach(function(el) {
el.addEventListener('click', function(e) { e.preventDefault(); openRecover(); });
});
document.getElementById('signupModal').addEventListener('click', function(e) {
if (e.target === this) closeSignup();
});
document.querySelectorAll('a[href^="#"]').forEach(function(a) {
a.addEventListener('click', function(e) {
e.preventDefault();
var el = document.querySelector(this.getAttribute('href'));
if (el) el.scrollIntoView({ behavior: 'smooth' });
});
});
});
// --- Email Change ---
var emailChangeApiKey = '';
var emailChangeNewEmail = '';
function showEmailChangeState(state) {
['emailChangeInitial', 'emailChangeLoading', 'emailChangeVerify', 'emailChangeResult'].forEach(function(id) {
var el = document.getElementById(id);
if (el) el.classList.remove('active');
});
document.getElementById(state).classList.add('active');
}
function openEmailChange() {
closeSignup();
closeRecover();
document.getElementById('emailChangeModal').classList.add('active');
showEmailChangeState('emailChangeInitial');
var errEl = document.getElementById('emailChangeError');
if (errEl) errEl.style.display = 'none';
var verifyErrEl = document.getElementById('emailChangeVerifyError');
if (verifyErrEl) verifyErrEl.style.display = 'none';
document.getElementById('emailChangeApiKey').value = '';
document.getElementById('emailChangeNewEmail').value = '';
document.getElementById('emailChangeCode').value = '';
emailChangeApiKey = '';
emailChangeNewEmail = '';
}
function closeEmailChange() {
document.getElementById('emailChangeModal').classList.remove('active');
}
async function submitEmailChange() {
var errEl = document.getElementById('emailChangeError');
var btn = document.getElementById('emailChangeBtn');
var apiKey = document.getElementById('emailChangeApiKey').value.trim();
var newEmail = document.getElementById('emailChangeNewEmail').value.trim();
if (!apiKey) {
errEl.textContent = 'Please enter your API key.';
errEl.style.display = 'block';
return;
}
if (!newEmail || !/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(newEmail)) {
errEl.textContent = 'Please enter a valid email address.';
errEl.style.display = 'block';
return;
}
errEl.style.display = 'none';
btn.disabled = true;
showEmailChangeState('emailChangeLoading');
try {
var res = await fetch('/v1/email-change', {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({ apiKey: apiKey, newEmail: newEmail })
});
var data = await res.json();
if (!res.ok) {
showEmailChangeState('emailChangeInitial');
errEl.textContent = data.error || 'Something went wrong.';
errEl.style.display = 'block';
btn.disabled = false;
return;
}
emailChangeApiKey = apiKey;
emailChangeNewEmail = newEmail;
document.getElementById('emailChangeEmailDisplay').textContent = newEmail;
showEmailChangeState('emailChangeVerify');
document.getElementById('emailChangeCode').focus();
btn.disabled = false;
} catch (err) {
showEmailChangeState('emailChangeInitial');
errEl.textContent = 'Network error. Please try again.';
errEl.style.display = 'block';
btn.disabled = false;
}
}
async function submitEmailChangeVerify() {
var errEl = document.getElementById('emailChangeVerifyError');
var btn = document.getElementById('emailChangeVerifyBtn');
var code = document.getElementById('emailChangeCode').value.trim();
if (!code || !/^\d{6}$/.test(code)) {
errEl.textContent = 'Please enter a 6-digit code.';
errEl.style.display = 'block';
return;
}
errEl.style.display = 'none';
btn.disabled = true;
try {
var res = await fetch('/v1/email-change/verify', {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({ apiKey: emailChangeApiKey, newEmail: emailChangeNewEmail, code: code })
});
var data = await res.json();
if (!res.ok) {
errEl.textContent = data.error || 'Verification failed.';
errEl.style.display = 'block';
btn.disabled = false;
return;
}
document.getElementById('emailChangeNewDisplay').textContent = data.newEmail || emailChangeNewEmail;
showEmailChangeState('emailChangeResult');
} catch (err) {
errEl.textContent = 'Network error. Please try again.';
errEl.style.display = 'block';
btn.disabled = false;
}
}
// Add event listeners for email change (append to DOMContentLoaded)
document.addEventListener('DOMContentLoaded', function() {
var closeBtn = document.getElementById('btn-close-email-change');
if (closeBtn) closeBtn.addEventListener('click', closeEmailChange);
var changeBtn = document.getElementById('emailChangeBtn');
if (changeBtn) changeBtn.addEventListener('click', submitEmailChange);
var verifyBtn = document.getElementById('emailChangeVerifyBtn');
if (verifyBtn) verifyBtn.addEventListener('click', submitEmailChangeVerify);
var modal = document.getElementById('emailChangeModal');
if (modal) modal.addEventListener('click', function(e) { if (e.target === this) closeEmailChange(); });
document.querySelectorAll('.open-email-change').forEach(function(el) {
el.addEventListener('click', function(e) { e.preventDefault(); openEmailChange(); });
});
});
// === Accessibility: Escape key closes modals, focus trapping ===
(function() {
function getActiveModal() {
var modals = ['signupModal', 'recoverModal', 'emailChangeModal'];
for (var i = 0; i < modals.length; i++) {
var m = document.getElementById(modals[i]);
if (m && m.classList.contains('active')) return m;
}
return null;
}
function closeActiveModal() {
var m = getActiveModal();
if (!m) return;
m.classList.remove('active');
}
document.addEventListener('keydown', function(e) {
if (e.key === 'Escape') closeActiveModal();
// Focus trap inside active modal
if (e.key === 'Tab') {
var modal = getActiveModal();
if (!modal) return;
var focusable = modal.querySelectorAll('button:not([disabled]), input:not([disabled]), a[href], [tabindex]:not([tabindex="-1"])');
if (focusable.length === 0) return;
var first = focusable[0], last = focusable[focusable.length - 1];
if (e.shiftKey) {
if (document.activeElement === first) { e.preventDefault(); last.focus(); }
} else {
if (document.activeElement === last) { e.preventDefault(); first.focus(); }
}
}
});
})();

View file

@ -4,391 +4,106 @@
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>DocFast API Documentation</title>
<link rel="icon" href="data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'><text y='.9em' font-size='90'>⚡</text></svg>">
<link rel="stylesheet" href="/swagger-ui/swagger-ui.css">
<style>
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; background: #0a0a0a; color: #e0e0e0; line-height: 1.6; }
a { color: #6c9fff; text-decoration: none; }
a:hover { text-decoration: underline; }
html { box-sizing: border-box; overflow-y: scroll; }
*, *:before, *:after { box-sizing: inherit; }
body { margin: 0; background: #1a1a2e; font-family: 'Inter', -apple-system, system-ui, sans-serif; }
.container { max-width: 900px; margin: 0 auto; padding: 2rem; }
/* Top bar */
.topbar-wrapper { display: flex; align-items: center; }
.swagger-ui .topbar { background: #0b0d11; border-bottom: 1px solid #1e2433; padding: 12px 0; }
.swagger-ui .topbar .topbar-wrapper { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.swagger-ui .topbar a { font-size: 0; }
.swagger-ui .topbar .topbar-wrapper::before {
content: '⚡ DocFast API';
font-size: 1.25rem;
font-weight: 700;
color: #e4e7ed;
font-family: 'Inter', system-ui, sans-serif;
}
.swagger-ui .topbar .topbar-wrapper::after {
content: '← Back to docfast.dev';
margin-left: auto;
font-size: 0.85rem;
color: #34d399;
cursor: pointer;
font-family: 'Inter', system-ui, sans-serif;
}
.swagger-ui .topbar .topbar-wrapper { cursor: default; }
header { border-bottom: 1px solid #222; padding-bottom: 1.5rem; margin-bottom: 2rem; }
header h1 { font-size: 2rem; margin-bottom: 0.5rem; }
header h1 a { color: #fff; }
header p { color: #888; font-size: 1.1rem; }
.base-url { background: #1a1a2e; border: 1px solid #333; border-radius: 6px; padding: 0.75rem 1rem; font-family: monospace; font-size: 0.95rem; margin-top: 1rem; color: #6c9fff; }
/* Dark theme overrides */
.swagger-ui { color: #c8ccd4; }
.swagger-ui .wrapper { max-width: 1200px; padding: 0 24px; }
.swagger-ui .scheme-container { background: #151922; border: 1px solid #1e2433; border-radius: 8px; margin: 16px 0; box-shadow: none; }
.swagger-ui .opblock-tag { color: #e4e7ed !important; border-bottom: 1px solid #1e2433; }
.swagger-ui .opblock-tag:hover { background: rgba(52,211,153,0.04); }
.swagger-ui .opblock { background: #151922; border: 1px solid #1e2433 !important; border-radius: 8px !important; margin-bottom: 12px; box-shadow: none !important; }
.swagger-ui .opblock .opblock-summary { border: none; }
.swagger-ui .opblock .opblock-summary-method { border-radius: 6px; font-size: 0.75rem; min-width: 70px; }
.swagger-ui .opblock.opblock-post .opblock-summary-method { background: #34d399; }
.swagger-ui .opblock.opblock-get .opblock-summary-method { background: #60a5fa; }
.swagger-ui .opblock.opblock-post { border-color: rgba(52,211,153,0.3) !important; background: rgba(52,211,153,0.03); }
.swagger-ui .opblock.opblock-get { border-color: rgba(96,165,250,0.3) !important; background: rgba(96,165,250,0.03); }
.swagger-ui .opblock .opblock-summary-path { color: #e4e7ed; }
.swagger-ui .opblock .opblock-summary-description { color: #7a8194; }
.swagger-ui .opblock-body { background: #0b0d11; }
.swagger-ui .opblock-description-wrapper p,
.swagger-ui .opblock-external-docs-wrapper p { color: #9ca3af; }
.swagger-ui table thead tr th { color: #7a8194; border-bottom: 1px solid #1e2433; }
.swagger-ui table tbody tr td { color: #c8ccd4; border-bottom: 1px solid #1e2433; }
.swagger-ui .parameter__name { color: #e4e7ed; }
.swagger-ui .parameter__type { color: #60a5fa; }
.swagger-ui .parameter__name.required::after { color: #f87171; }
.swagger-ui input[type=text], .swagger-ui textarea, .swagger-ui select {
background: #0b0d11; color: #e4e7ed; border: 1px solid #1e2433; border-radius: 6px;
}
.swagger-ui .btn { border-radius: 6px; }
.swagger-ui .btn.execute { background: #34d399; color: #0b0d11; border: none; }
.swagger-ui .btn.execute:hover { background: #5eead4; }
.swagger-ui .responses-inner { background: transparent; }
.swagger-ui .response-col_status { color: #34d399; }
.swagger-ui .response-col_description { color: #9ca3af; }
.swagger-ui .model-box, .swagger-ui section.models { background: #151922; border: 1px solid #1e2433; border-radius: 8px; }
.swagger-ui section.models h4 { color: #e4e7ed; border-bottom: 1px solid #1e2433; }
.swagger-ui .model { color: #c8ccd4; }
.swagger-ui .model-title { color: #e4e7ed; }
.swagger-ui .prop-type { color: #60a5fa; }
.swagger-ui .info .title { color: #e4e7ed; font-family: 'Inter', system-ui, sans-serif; }
.swagger-ui .info .description p { color: #9ca3af; }
.swagger-ui .info a { color: #34d399; }
.swagger-ui .info h1, .swagger-ui .info h2, .swagger-ui .info h3 { color: #e4e7ed; }
.swagger-ui .info .base-url { color: #7a8194; }
.swagger-ui .scheme-container .schemes > label { color: #7a8194; }
.swagger-ui .loading-container .loading::after { color: #7a8194; }
.swagger-ui .highlight-code, .swagger-ui .microlight { background: #0b0d11 !important; color: #c8ccd4 !important; border-radius: 6px; }
.swagger-ui .copy-to-clipboard { right: 10px; top: 10px; }
.swagger-ui .auth-wrapper .authorize { color: #34d399; border-color: #34d399; }
.swagger-ui .auth-wrapper .authorize svg { fill: #34d399; }
.swagger-ui .dialog-ux .modal-ux { background: #151922; border: 1px solid #1e2433; }
.swagger-ui .dialog-ux .modal-ux-header h3 { color: #e4e7ed; }
.swagger-ui .dialog-ux .modal-ux-content p { color: #9ca3af; }
.swagger-ui .model-box-control:focus, .swagger-ui .models-control:focus { outline: none; }
.swagger-ui .servers > label select { background: #0b0d11; color: #e4e7ed; border: 1px solid #1e2433; }
.swagger-ui .markdown code, .swagger-ui .renderedMarkdown code { background: rgba(52,211,153,0.1); color: #34d399; padding: 2px 6px; border-radius: 4px; }
.swagger-ui .markdown p, .swagger-ui .renderedMarkdown p { color: #9ca3af; }
.swagger-ui .opblock-tag small { color: #7a8194; }
nav { background: #111; border: 1px solid #222; border-radius: 8px; padding: 1.25rem; margin-bottom: 2rem; }
nav h3 { margin-bottom: 0.75rem; color: #888; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.05em; }
nav ul { list-style: none; }
nav li { margin-bottom: 0.4rem; }
nav a { font-size: 0.95rem; }
nav .method { font-family: monospace; font-size: 0.8rem; font-weight: 600; padding: 2px 6px; border-radius: 3px; margin-right: 0.5rem; }
.method-post { background: #1a3a1a; color: #4caf50; }
.method-get { background: #1a2a3a; color: #6c9fff; }
/* Hide validator */
.swagger-ui .errors-wrapper { display: none; }
section { margin-bottom: 3rem; }
section h2 { font-size: 1.5rem; border-bottom: 1px solid #222; padding-bottom: 0.5rem; margin-bottom: 1rem; }
section h3 { font-size: 1.2rem; margin: 2rem 0 0.75rem; color: #fff; }
.endpoint { background: #111; border: 1px solid #222; border-radius: 8px; padding: 1.5rem; margin-bottom: 2rem; }
.endpoint-header { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1rem; }
.endpoint-header .method { font-family: monospace; font-weight: 700; font-size: 0.85rem; padding: 4px 10px; border-radius: 4px; }
.endpoint-header .path { font-family: monospace; font-size: 1.05rem; color: #fff; }
table { width: 100%; border-collapse: collapse; margin: 0.75rem 0; }
th, td { text-align: left; padding: 0.5rem 0.75rem; border-bottom: 1px solid #1a1a1a; font-size: 0.9rem; }
th { color: #888; font-weight: 600; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.03em; }
td code { background: #1a1a2e; padding: 2px 6px; border-radius: 3px; font-size: 0.85rem; }
.required { color: #ff6b6b; font-size: 0.75rem; }
pre { background: #0d0d1a; border: 1px solid #222; border-radius: 6px; padding: 1rem; overflow-x: auto; font-size: 0.85rem; line-height: 1.5; margin: 0.75rem 0; }
code { font-family: 'SF Mono', 'Fira Code', monospace; }
.comment { color: #666; }
.string { color: #a5d6a7; }
.key { color: #90caf9; }
.note { background: #1a1a2e; border-left: 3px solid #6c9fff; padding: 0.75rem 1rem; border-radius: 0 6px 6px 0; margin: 1rem 0; font-size: 0.9rem; }
.warning { background: #2a1a1a; border-left: 3px solid #ff6b6b; }
.status-codes { margin-top: 0.5rem; }
.status-codes span { display: inline-block; background: #1a1a2e; padding: 2px 8px; border-radius: 3px; font-family: monospace; font-size: 0.8rem; margin: 2px 4px 2px 0; }
.status-ok { color: #4caf50; }
.status-err { color: #ff6b6b; }
footer { border-top: 1px solid #222; padding-top: 1.5rem; margin-top: 3rem; text-align: center; color: #555; font-size: 0.85rem; }
/* Link back */
.back-link { position: fixed; top: 14px; right: 24px; z-index: 100; color: #34d399; text-decoration: none; font-size: 0.85rem; font-family: 'Inter', system-ui, sans-serif; }
.back-link:hover { color: #5eead4; }
</style>
<link rel="preconnect" href="https://fonts.googleapis.com">
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap" rel="stylesheet">
</head>
<body>
<div class="container">
<header>
<h1><a href="/">DocFast</a> API Documentation</h1>
<p>Convert HTML, Markdown, and URLs to PDF. Built-in invoice &amp; receipt templates.</p>
<div class="base-url">Base URL: https://docfast.dev</div>
</header>
<nav>
<h3>Endpoints</h3>
<ul>
<li><a href="#auth">Authentication</a></li>
<li><a href="#html"><span class="method method-post">POST</span>/v1/convert/html</a></li>
<li><a href="#markdown"><span class="method method-post">POST</span>/v1/convert/markdown</a></li>
<li><a href="#url"><span class="method method-post">POST</span>/v1/convert/url</a></li>
<li><a href="#templates-list"><span class="method method-get">GET</span>/v1/templates</a></li>
<li><a href="#templates-render"><span class="method method-post">POST</span>/v1/templates/:id/render</a></li>
<li><a href="#signup"><span class="method method-post">POST</span>/v1/signup/free</a></li>
<li><a href="#errors">Error Handling</a></li>
</ul>
</nav>
<section id="auth">
<h2>Authentication</h2>
<p>All conversion and template endpoints require an API key. Pass it in the <code>Authorization</code> header:</p>
<pre>Authorization: Bearer df_free_your_api_key_here</pre>
<p style="margin-top:0.75rem">Get a free API key instantly — no credit card required:</p>
<pre>curl -X POST https://docfast.dev/v1/signup/free \
-H "Content-Type: application/json" \
-d '{"email": "you@example.com"}'</pre>
<div class="note">Free tier: <strong>100 PDFs/month</strong>. Pro ($9/mo): <strong>10,000 PDFs/month</strong>. Upgrade anytime at <a href="https://docfast.dev">docfast.dev</a>.</div>
</section>
<section id="html">
<h2>Convert HTML to PDF</h2>
<div class="endpoint">
<div class="endpoint-header">
<span class="method method-post">POST</span>
<span class="path">/v1/convert/html</span>
</div>
<p>Convert raw HTML (with optional CSS) to a PDF document.</p>
<h3>Request Body</h3>
<table>
<tr><th>Field</th><th>Type</th><th>Description</th></tr>
<tr><td><code>html</code> <span class="required">required</span></td><td>string</td><td>HTML content to convert</td></tr>
<tr><td><code>css</code></td><td>string</td><td>Additional CSS to inject</td></tr>
<tr><td><code>format</code></td><td>string</td><td>Page size: <code>A4</code> (default), <code>Letter</code>, <code>Legal</code>, <code>A3</code></td></tr>
<tr><td><code>landscape</code></td><td>boolean</td><td>Landscape orientation (default: false)</td></tr>
<tr><td><code>margin</code></td><td>object</td><td><code>{top, right, bottom, left}</code> in CSS units (default: 20mm each)</td></tr>
</table>
<h3>Example</h3>
<pre>curl -X POST https://docfast.dev/v1/convert/html \
-H "Authorization: Bearer YOUR_KEY" \
-H "Content-Type: application/json" \
-d '{
"html": "&lt;h1&gt;Hello World&lt;/h1&gt;&lt;p&gt;Generated by DocFast.&lt;/p&gt;",
"css": "h1 { color: navy; }",
"format": "A4"
}' \
-o output.pdf</pre>
<h3>Response</h3>
<p><code>200 OK</code> — Returns the PDF as <code>application/pdf</code> binary stream.</p>
<div class="status-codes">
<span class="status-ok">200</span> PDF generated
<span class="status-err">400</span> Missing <code>html</code> field
<span class="status-err">401</span> Invalid/missing API key
<span class="status-err">429</span> Rate limited
</div>
</div>
</section>
<section id="markdown">
<h2>Convert Markdown to PDF</h2>
<div class="endpoint">
<div class="endpoint-header">
<span class="method method-post">POST</span>
<span class="path">/v1/convert/markdown</span>
</div>
<p>Convert Markdown to a styled PDF with syntax highlighting for code blocks.</p>
<h3>Request Body</h3>
<table>
<tr><th>Field</th><th>Type</th><th>Description</th></tr>
<tr><td><code>markdown</code> <span class="required">required</span></td><td>string</td><td>Markdown content</td></tr>
<tr><td><code>css</code></td><td>string</td><td>Additional CSS to inject</td></tr>
<tr><td><code>format</code></td><td>string</td><td>Page size (default: A4)</td></tr>
<tr><td><code>landscape</code></td><td>boolean</td><td>Landscape orientation</td></tr>
<tr><td><code>margin</code></td><td>object</td><td>Custom margins</td></tr>
</table>
<h3>Example</h3>
<pre>curl -X POST https://docfast.dev/v1/convert/markdown \
-H "Authorization: Bearer YOUR_KEY" \
-H "Content-Type: application/json" \
-d '{
"markdown": "# Monthly Report\n\n## Summary\n\nRevenue increased by **15%** this quarter.\n\n| Metric | Value |\n|--------|-------|\n| Users | 1,234 |\n| MRR | $5,670 |"
}' \
-o report.pdf</pre>
<h3>Response</h3>
<p><code>200 OK</code> — Returns <code>application/pdf</code>.</p>
<div class="status-codes">
<span class="status-ok">200</span> PDF generated
<span class="status-err">400</span> Missing <code>markdown</code> field
<span class="status-err">401</span> Invalid/missing API key
</div>
</div>
</section>
<section id="url">
<h2>Convert URL to PDF</h2>
<div class="endpoint">
<div class="endpoint-header">
<span class="method method-post">POST</span>
<span class="path">/v1/convert/url</span>
</div>
<p>Navigate to a URL and convert the rendered page to PDF. Supports JavaScript-rendered pages.</p>
<h3>Request Body</h3>
<table>
<tr><th>Field</th><th>Type</th><th>Description</th></tr>
<tr><td><code>url</code> <span class="required">required</span></td><td>string</td><td>URL to convert (must start with http:// or https://)</td></tr>
<tr><td><code>waitUntil</code></td><td>string</td><td><code>load</code> (default), <code>domcontentloaded</code>, <code>networkidle0</code>, <code>networkidle2</code></td></tr>
<tr><td><code>format</code></td><td>string</td><td>Page size (default: A4)</td></tr>
<tr><td><code>landscape</code></td><td>boolean</td><td>Landscape orientation</td></tr>
<tr><td><code>margin</code></td><td>object</td><td>Custom margins</td></tr>
</table>
<h3>Example</h3>
<pre>curl -X POST https://docfast.dev/v1/convert/url \
-H "Authorization: Bearer YOUR_KEY" \
-H "Content-Type: application/json" \
-d '{
"url": "https://example.com",
"waitUntil": "networkidle0",
"format": "Letter"
}' \
-o page.pdf</pre>
<h3>Response</h3>
<p><code>200 OK</code> — Returns <code>application/pdf</code>.</p>
<div class="status-codes">
<span class="status-ok">200</span> PDF generated
<span class="status-err">400</span> Missing or invalid URL
<span class="status-err">401</span> Invalid/missing API key
</div>
</div>
</section>
<section id="templates-list">
<h2>List Templates</h2>
<div class="endpoint">
<div class="endpoint-header">
<span class="method method-get">GET</span>
<span class="path">/v1/templates</span>
</div>
<p>List all available document templates with their field definitions.</p>
<h3>Example</h3>
<pre>curl https://docfast.dev/v1/templates \
-H "Authorization: Bearer YOUR_KEY"</pre>
<h3>Response</h3>
<pre>{
"templates": [
{
"id": "invoice",
"name": "Invoice",
"description": "Professional invoice with line items, taxes, and payment details",
"fields": [
{"name": "invoiceNumber", "type": "string", "required": true},
{"name": "date", "type": "string", "required": true},
{"name": "from", "type": "object", "required": true, "description": "Sender: {name, address?, email?, phone?, vatId?}"},
{"name": "to", "type": "object", "required": true, "description": "Recipient: {name, address?, email?, vatId?}"},
{"name": "items", "type": "array", "required": true, "description": "Line items: [{description, quantity, unitPrice, taxRate?}]"},
{"name": "currency", "type": "string", "required": false},
{"name": "notes", "type": "string", "required": false},
{"name": "paymentDetails", "type": "string", "required": false}
]
},
{
"id": "receipt",
"name": "Receipt",
"description": "Simple receipt for payments received",
"fields": [ ... ]
}
]
}</pre>
</div>
</section>
<section id="templates-render">
<h2>Render Template</h2>
<div class="endpoint">
<div class="endpoint-header">
<span class="method method-post">POST</span>
<span class="path">/v1/templates/:id/render</span>
</div>
<p>Render a template with your data and get a PDF. No HTML needed — just pass structured data.</p>
<h3>Path Parameters</h3>
<table>
<tr><th>Param</th><th>Description</th></tr>
<tr><td><code>:id</code></td><td>Template ID (<code>invoice</code> or <code>receipt</code>)</td></tr>
</table>
<h3>Request Body</h3>
<table>
<tr><th>Field</th><th>Type</th><th>Description</th></tr>
<tr><td><code>data</code> <span class="required">required</span></td><td>object</td><td>Template data (see field definitions from <code>/v1/templates</code>)</td></tr>
</table>
<h3>Invoice Example</h3>
<pre>curl -X POST https://docfast.dev/v1/templates/invoice/render \
-H "Authorization: Bearer YOUR_KEY" \
-H "Content-Type: application/json" \
-d '{
"data": {
"invoiceNumber": "INV-2026-001",
"date": "2026-02-14",
"dueDate": "2026-03-14",
"from": {
"name": "Acme Corp",
"address": "123 Main St, Vienna",
"email": "billing@acme.com",
"vatId": "ATU12345678"
},
"to": {
"name": "Client Inc",
"address": "456 Oak Ave, Berlin",
"email": "accounts@client.com"
},
"items": [
{"description": "Web Development", "quantity": 40, "unitPrice": 95, "taxRate": 20},
{"description": "Hosting (monthly)", "quantity": 1, "unitPrice": 29}
],
"currency": "€",
"notes": "Payment due within 30 days.",
"paymentDetails": "IBAN: AT12 3456 7890 1234 5678"
}
}' \
-o invoice.pdf</pre>
<h3>Response</h3>
<p><code>200 OK</code> — Returns <code>application/pdf</code>.</p>
<div class="status-codes">
<span class="status-ok">200</span> PDF generated
<span class="status-err">400</span> Missing <code>data</code> field
<span class="status-err">404</span> Template not found
<span class="status-err">401</span> Invalid/missing API key
</div>
</div>
</section>
<section id="signup">
<h2>Sign Up (Get API Key)</h2>
<div class="endpoint">
<div class="endpoint-header">
<span class="method method-post">POST</span>
<span class="path">/v1/signup/free</span>
</div>
<p>Get a free API key instantly. No authentication required.</p>
<h3>Request Body</h3>
<table>
<tr><th>Field</th><th>Type</th><th>Description</th></tr>
<tr><td><code>email</code> <span class="required">required</span></td><td>string</td><td>Your email address</td></tr>
</table>
<h3>Example</h3>
<pre>curl -X POST https://docfast.dev/v1/signup/free \
-H "Content-Type: application/json" \
-d '{"email": "dev@example.com"}'</pre>
<h3>Response</h3>
<pre>{
"message": "Welcome to DocFast! 🚀",
"apiKey": "df_free_abc123...",
"tier": "free",
"limit": "100 PDFs/month",
"docs": "https://docfast.dev/#endpoints"
}</pre>
<div class="note warning">Save your API key immediately — it won't be shown again.</div>
</div>
</section>
<section id="errors">
<h2>Error Handling</h2>
<p>All errors return JSON with an <code>error</code> field:</p>
<pre>{
"error": "Missing 'html' field"
}</pre>
<h3>Status Codes</h3>
<table>
<tr><th>Code</th><th>Meaning</th></tr>
<tr><td><code>200</code></td><td>Success — PDF returned as binary stream</td></tr>
<tr><td><code>400</code></td><td>Bad request — missing or invalid parameters</td></tr>
<tr><td><code>401</code></td><td>Unauthorized — missing or invalid API key</td></tr>
<tr><td><code>404</code></td><td>Not found — invalid endpoint or template ID</td></tr>
<tr><td><code>429</code></td><td>Rate limited — too many requests (100/min)</td></tr>
<tr><td><code>500</code></td><td>Server error — PDF generation failed</td></tr>
</table>
<h3>Common Mistakes</h3>
<pre><span class="comment"># ❌ Missing Authorization header</span>
curl -X POST https://docfast.dev/v1/convert/html \
-d '{"html": "test"}'
<span class="comment"># → {"error": "Missing API key. Use: Authorization: Bearer &lt;key&gt;"}</span>
<span class="comment"># ❌ Wrong Content-Type</span>
curl -X POST https://docfast.dev/v1/convert/html \
-H "Authorization: Bearer YOUR_KEY" \
-d '{"html": "test"}'
<span class="comment"># → Make sure to include -H "Content-Type: application/json"</span>
<span class="comment"># ✅ Correct request</span>
curl -X POST https://docfast.dev/v1/convert/html \
-H "Authorization: Bearer YOUR_KEY" \
-H "Content-Type: application/json" \
-d '{"html": "&lt;h1&gt;Hello&lt;/h1&gt;"}' \
-o output.pdf</pre>
</section>
<footer>
<p><a href="/">← Back to DocFast</a> &nbsp;|&nbsp; Questions? Email <a href="mailto:support@docfast.dev">support@docfast.dev</a></p>
</footer>
</div>
<a href="/" class="back-link">← Back to docfast.dev</a>
<div id="swagger-ui"></div>
<script src="/swagger-ui/swagger-ui-bundle.js"></script>
<script src="/swagger-init.js"></script>
</body>
</html>

View file

@ -0,0 +1,109 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>DocFast API Documentation</title>
<link rel="icon" href="data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'><text y='.9em' font-size='90'>⚡</text></svg>">
<link rel="stylesheet" href="/swagger-ui/swagger-ui.css">
<style>
html { box-sizing: border-box; overflow-y: scroll; }
*, *:before, *:after { box-sizing: inherit; }
body { margin: 0; background: #1a1a2e; font-family: 'Inter', -apple-system, system-ui, sans-serif; }
/* Top bar */
.topbar-wrapper { display: flex; align-items: center; }
.swagger-ui .topbar { background: #0b0d11; border-bottom: 1px solid #1e2433; padding: 12px 0; }
.swagger-ui .topbar .topbar-wrapper { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.swagger-ui .topbar a { font-size: 0; }
.swagger-ui .topbar .topbar-wrapper::before {
content: '⚡ DocFast API';
font-size: 1.25rem;
font-weight: 700;
color: #e4e7ed;
font-family: 'Inter', system-ui, sans-serif;
}
.swagger-ui .topbar .topbar-wrapper::after {
content: '← Back to docfast.dev';
margin-left: auto;
font-size: 0.85rem;
color: #34d399;
cursor: pointer;
font-family: 'Inter', system-ui, sans-serif;
}
.swagger-ui .topbar .topbar-wrapper { cursor: default; }
/* Dark theme overrides */
.swagger-ui { color: #c8ccd4; }
.swagger-ui .wrapper { max-width: 1200px; padding: 0 24px; }
.swagger-ui .scheme-container { background: #151922; border: 1px solid #1e2433; border-radius: 8px; margin: 16px 0; box-shadow: none; }
.swagger-ui .opblock-tag { color: #e4e7ed !important; border-bottom: 1px solid #1e2433; }
.swagger-ui .opblock-tag:hover { background: rgba(52,211,153,0.04); }
.swagger-ui .opblock { background: #151922; border: 1px solid #1e2433 !important; border-radius: 8px !important; margin-bottom: 12px; box-shadow: none !important; }
.swagger-ui .opblock .opblock-summary { border: none; }
.swagger-ui .opblock .opblock-summary-method { border-radius: 6px; font-size: 0.75rem; min-width: 70px; }
.swagger-ui .opblock.opblock-post .opblock-summary-method { background: #34d399; }
.swagger-ui .opblock.opblock-get .opblock-summary-method { background: #60a5fa; }
.swagger-ui .opblock.opblock-post { border-color: rgba(52,211,153,0.3) !important; background: rgba(52,211,153,0.03); }
.swagger-ui .opblock.opblock-get { border-color: rgba(96,165,250,0.3) !important; background: rgba(96,165,250,0.03); }
.swagger-ui .opblock .opblock-summary-path { color: #e4e7ed; }
.swagger-ui .opblock .opblock-summary-description { color: #7a8194; }
.swagger-ui .opblock-body { background: #0b0d11; }
.swagger-ui .opblock-description-wrapper p,
.swagger-ui .opblock-external-docs-wrapper p { color: #9ca3af; }
.swagger-ui table thead tr th { color: #7a8194; border-bottom: 1px solid #1e2433; }
.swagger-ui table tbody tr td { color: #c8ccd4; border-bottom: 1px solid #1e2433; }
.swagger-ui .parameter__name { color: #e4e7ed; }
.swagger-ui .parameter__type { color: #60a5fa; }
.swagger-ui .parameter__name.required::after { color: #f87171; }
.swagger-ui input[type=text], .swagger-ui textarea, .swagger-ui select {
background: #0b0d11; color: #e4e7ed; border: 1px solid #1e2433; border-radius: 6px;
}
.swagger-ui .btn { border-radius: 6px; }
.swagger-ui .btn.execute { background: #34d399; color: #0b0d11; border: none; }
.swagger-ui .btn.execute:hover { background: #5eead4; }
.swagger-ui .responses-inner { background: transparent; }
.swagger-ui .response-col_status { color: #34d399; }
.swagger-ui .response-col_description { color: #9ca3af; }
.swagger-ui .model-box, .swagger-ui section.models { background: #151922; border: 1px solid #1e2433; border-radius: 8px; }
.swagger-ui section.models h4 { color: #e4e7ed; border-bottom: 1px solid #1e2433; }
.swagger-ui .model { color: #c8ccd4; }
.swagger-ui .model-title { color: #e4e7ed; }
.swagger-ui .prop-type { color: #60a5fa; }
.swagger-ui .info .title { color: #e4e7ed; font-family: 'Inter', system-ui, sans-serif; }
.swagger-ui .info .description p { color: #9ca3af; }
.swagger-ui .info a { color: #34d399; }
.swagger-ui .info h1, .swagger-ui .info h2, .swagger-ui .info h3 { color: #e4e7ed; }
.swagger-ui .info .base-url { color: #7a8194; }
.swagger-ui .scheme-container .schemes > label { color: #7a8194; }
.swagger-ui .loading-container .loading::after { color: #7a8194; }
.swagger-ui .highlight-code, .swagger-ui .microlight { background: #0b0d11 !important; color: #c8ccd4 !important; border-radius: 6px; }
.swagger-ui .copy-to-clipboard { right: 10px; top: 10px; }
.swagger-ui .auth-wrapper .authorize { color: #34d399; border-color: #34d399; }
.swagger-ui .auth-wrapper .authorize svg { fill: #34d399; }
.swagger-ui .dialog-ux .modal-ux { background: #151922; border: 1px solid #1e2433; }
.swagger-ui .dialog-ux .modal-ux-header h3 { color: #e4e7ed; }
.swagger-ui .dialog-ux .modal-ux-content p { color: #9ca3af; }
.swagger-ui .model-box-control:focus, .swagger-ui .models-control:focus { outline: none; }
.swagger-ui .servers > label select { background: #0b0d11; color: #e4e7ed; border: 1px solid #1e2433; }
.swagger-ui .markdown code, .swagger-ui .renderedMarkdown code { background: rgba(52,211,153,0.1); color: #34d399; padding: 2px 6px; border-radius: 4px; }
.swagger-ui .markdown p, .swagger-ui .renderedMarkdown p { color: #9ca3af; }
.swagger-ui .opblock-tag small { color: #7a8194; }
/* Hide validator */
.swagger-ui .errors-wrapper { display: none; }
/* Link back */
.back-link { position: fixed; top: 14px; right: 24px; z-index: 100; color: #34d399; text-decoration: none; font-size: 0.85rem; font-family: 'Inter', system-ui, sans-serif; }
.back-link:hover { color: #5eead4; }
</style>
<link rel="preconnect" href="https://fonts.googleapis.com">
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap" rel="stylesheet">
</head>
<body>
<a href="/" class="back-link">← Back to docfast.dev</a>
<div id="swagger-ui"></div>
<script src="/swagger-ui/swagger-ui-bundle.js"></script>
<script src="/swagger-init.js"></script>
</body>
</html>

View file

@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><text y=".9em" font-size="90"></text></svg>

After

Width:  |  Height:  |  Size: 109 B

View file

@ -0,0 +1,139 @@
<!DOCTYPE html>
<html lang="de">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="icon" href="data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'><text y='.9em' font-size='90'>⚡</text></svg>">
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap" rel="stylesheet">
<title>Impressum — DocFast</title>
<meta name="description" content="Legal notice and company information for DocFast API service.">
<link rel="canonical" href="https://docfast.dev/impressum">
<style>
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
--bg: #0b0d11; --bg2: #12151c; --fg: #e4e7ed; --muted: #7a8194;
--accent: #34d399; --accent-hover: #5eead4; --accent-glow: rgba(52,211,153,0.12);
--accent2: #60a5fa; --card: #151922; --border: #1e2433;
--radius: 12px; --radius-lg: 16px;
}
body { font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; background: var(--bg); color: var(--fg); line-height: 1.65; -webkit-font-smoothing: antialiased; }
a { color: var(--accent); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--accent-hover); }
.container { max-width: 1020px; margin: 0 auto; padding: 0 24px; }
/* Nav */
nav { padding: 20px 0; border-bottom: 1px solid var(--border); }
nav .container { display: flex; align-items: center; justify-content: space-between; }
.logo { font-size: 1.25rem; font-weight: 700; letter-spacing: -0.5px; color: var(--fg); display: flex; align-items: center; gap: 8px; text-decoration: none; }
.logo:hover { color: var(--fg); }
.logo span { color: var(--accent); }
.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-links a { color: var(--muted); font-size: 0.9rem; font-weight: 500; }
.nav-links a:hover { color: var(--fg); }
/* Footer */
footer { padding: 40px 0; border-top: 1px solid var(--border); }
footer .container { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.footer-left { color: var(--muted); font-size: 0.85rem; }
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-links a { color: var(--muted); font-size: 0.85rem; }
.footer-links a:hover { color: var(--fg); }
/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 28px; border-radius: 10px; font-size: 0.95rem; font-weight: 600; transition: all 0.2s; border: none; cursor: pointer; text-decoration: none; }
.btn-primary { background: var(--accent); color: #0b0d11; }
.btn-primary:hover { background: var(--accent-hover); text-decoration: none; transform: translateY(-1px); box-shadow: 0 8px 24px rgba(52,211,153,0.2); }
.btn-secondary { border: 1px solid var(--border); color: var(--fg); background: transparent; }
.btn-secondary:hover { border-color: var(--muted); text-decoration: none; background: rgba(255,255,255,0.03); }
.btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }
.btn:focus-visible, a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
/* Responsive base */
@media (max-width: 640px) {
.nav-links { gap: 16px; }
.footer-links { gap: 16px; }
footer .container { flex-direction: column; text-align: center; }
}
.container { max-width: 800px; margin: 0 auto; padding: 0 24px; }
/* Legal page overrides */
.container { max-width: 800px; }
main { padding: 60px 0 80px; }
h1 { font-size: 2.5rem; font-weight: 800; margin-bottom: 16px; letter-spacing: -1px; }
h2 { font-size: 1.5rem; font-weight: 700; margin: 32px 0 16px; color: var(--accent); }
h3 { font-size: 1.2rem; font-weight: 600; margin: 24px 0 12px; }
p { margin-bottom: 16px; line-height: 1.7; }
ul { margin-bottom: 16px; padding-left: 24px; }
li { margin-bottom: 8px; line-height: 1.7; }
.highlight { background: rgba(52,211,153,0.08); border: 1px solid rgba(52,211,153,0.15); border-radius: 8px; padding: 16px; margin: 24px 0; color: var(--accent); font-size: 0.9rem; }
.info { background: rgba(96,165,250,0.08); border: 1px solid rgba(96,165,250,0.15); border-radius: 8px; padding: 16px; margin: 24px 0; color: #60a5fa; font-size: 0.9rem; }
.warning { background: rgba(251,191,36,0.08); border: 1px solid rgba(251,191,36,0.15); border-radius: 8px; padding: 16px; margin: 24px 0; color: #fbbf24; font-size: 0.9rem; }
@media (max-width: 640px) {
main { padding: 40px 0 60px; }
h1 { font-size: 2rem; }
}
</style>
</head>
<body>
<nav aria-label="Main navigation">
<div class="container">
<a href="/" class="logo">⚡ Doc<span>Fast</span></a>
<div class="nav-links">
<a href="/#features">Features</a>
<a href="/#pricing">Pricing</a>
<a href="/docs">Docs</a>
</div>
</div>
</nav>
<main>
<div class="container">
<h1>Impressum</h1>
<p><em>Legal notice according to § 5 ECG and § 25 MedienG (Austrian law)</em></p>
<h2>Company Information</h2>
<p><strong>Company:</strong> Cloonar Technologies GmbH</p>
<p><strong>Address:</strong> Linzer Straße 192/1/2, 1140 Wien, Austria</p>
<p><strong>Email:</strong> <a href="mailto:legal@docfast.dev">legal@docfast.dev</a></p>
<h2>Legal Registration</h2>
<p><strong>Commercial Register:</strong> FN 631089y</p>
<p><strong>Court:</strong> Handelsgericht Wien</p>
<p><strong>VAT ID:</strong> ATU81280034</p>
<p><strong>GLN:</strong> 9110036145697</p>
<h2>Responsible for Content</h2>
<p>Cloonar Technologies GmbH<br>
Legal contact: <a href="mailto:legal@docfast.dev">legal@docfast.dev</a></p>
<h2>Disclaimer</h2>
<p>Despite careful content control, we assume no liability for the content of external links. The operators of the linked pages are solely responsible for their content.</p>
<p>The content of our website has been created with the greatest possible care. However, we cannot guarantee that the content is current, reliable or complete.</p>
<h2>EU Online Dispute Resolution</h2>
<p>Platform of the European Commission for Online Dispute Resolution (ODR): <a href="https://ec.europa.eu/consumers/odr" target="_blank" rel="noopener">https://ec.europa.eu/consumers/odr</a></p>
</div>
</main>
<footer aria-label="Footer">
<div class="container">
<div class="footer-left">© 2026 DocFast. Fast PDF generation for developers.</div>
<div class="footer-links">
<a href="/">Home</a>
<a href="/docs">Docs</a>
<a href="/health">API Status</a>
<a href="/#change-email" class="open-email-change">Change Email</a>
<a href="/impressum">Impressum</a>
<a href="/privacy">Privacy Policy</a>
<a href="/terms">Terms of Service</a>
</div>
</div>
</footer>
</body>
</html>

View file

@ -0,0 +1,108 @@
<!DOCTYPE html>
<html lang="de">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Impressum — DocFast</title>
<meta name="description" content="Legal notice and company information for DocFast API service.">
<link rel="canonical" href="https://docfast.dev/impressum">
<link rel="icon" href="data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'><text y='.9em' font-size='90'>⚡</text></svg>">
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap" rel="stylesheet">
<style>
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
--bg: #0b0d11; --bg2: #12151c; --fg: #e4e7ed; --muted: #7a8194;
--accent: #34d399; --accent-hover: #5eead4; --accent-glow: rgba(52,211,153,0.12);
--card: #151922; --border: #1e2433;
--radius: 12px; --radius-lg: 16px;
}
body { font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; background: var(--bg); color: var(--fg); line-height: 1.65; -webkit-font-smoothing: antialiased; }
a { color: var(--accent); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--accent-hover); }
.container { max-width: 800px; margin: 0 auto; padding: 0 24px; }
nav { padding: 20px 0; border-bottom: 1px solid var(--border); }
nav .container { display: flex; align-items: center; justify-content: space-between; }
.logo { font-size: 1.25rem; font-weight: 700; letter-spacing: -0.5px; color: var(--fg); display: flex; align-items: center; gap: 8px; text-decoration: none; }
.logo span { color: var(--accent); }
.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-links a { color: var(--muted); font-size: 0.9rem; font-weight: 500; }
.nav-links a:hover { color: var(--fg); }
.content { padding: 60px 0; min-height: 60vh; }
.content h1 { font-size: 2rem; font-weight: 800; margin-bottom: 32px; letter-spacing: -1px; }
.content h2 { font-size: 1.3rem; font-weight: 700; margin: 32px 0 16px; color: var(--fg); }
.content h3 { font-size: 1.1rem; font-weight: 600; margin: 24px 0 12px; color: var(--fg); }
.content p, .content li { color: var(--muted); margin-bottom: 12px; }
.content ul, .content ol { padding-left: 24px; }
.content strong { color: var(--fg); }
footer { padding: 32px 0; border-top: 1px solid var(--border); margin-top: 60px; }
footer .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; }
.footer-left { color: var(--muted); font-size: 0.85rem; }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-links a { color: var(--muted); font-size: 0.85rem; }
.footer-links a:hover { color: var(--fg); }
@media (max-width: 768px) {
footer .container { flex-direction: column; text-align: center; }
.nav-links { gap: 16px; }
}
</style>
</head>
<body>
<nav aria-label="Main navigation">
<div class="container">
<a href="/" class="logo">⚡ Doc<span>Fast</span></a>
<div class="nav-links">
<a href="/#features">Features</a>
<a href="/#pricing">Pricing</a>
<a href="/docs">Docs</a>
</div>
</div>
</nav>
<main>
<div class="container">
<h1>Impressum</h1>
<p><em>Legal notice according to § 5 ECG and § 25 MedienG (Austrian law)</em></p>
<h2>Company Information</h2>
<p><strong>Company:</strong> Cloonar Technologies GmbH</p>
<p><strong>Address:</strong> Linzer Straße 192/1/2, 1140 Wien, Austria</p>
<p><strong>Email:</strong> <a href="mailto:legal@docfast.dev">legal@docfast.dev</a></p>
<h2>Legal Registration</h2>
<p><strong>Commercial Register:</strong> FN 631089y</p>
<p><strong>Court:</strong> Handelsgericht Wien</p>
<p><strong>VAT ID:</strong> ATU81280034</p>
<p><strong>GLN:</strong> 9110036145697</p>
<h2>Responsible for Content</h2>
<p>Cloonar Technologies GmbH<br>
Legal contact: <a href="mailto:legal@docfast.dev">legal@docfast.dev</a></p>
<h2>Disclaimer</h2>
<p>Despite careful content control, we assume no liability for the content of external links. The operators of the linked pages are solely responsible for their content.</p>
<p>The content of our website has been created with the greatest possible care. However, we cannot guarantee that the content is current, reliable or complete.</p>
<h2>EU Online Dispute Resolution</h2>
<p>Platform of the European Commission for Online Dispute Resolution (ODR): <a href="https://ec.europa.eu/consumers/odr" target="_blank" rel="noopener">https://ec.europa.eu/consumers/odr</a></p>
</div>
</main>
<footer aria-label="Footer">
<div class="container">
<div class="footer-left">© 2026 DocFast. Fast PDF generation for developers.</div>
<div class="footer-links">
<a href="/">Home</a>
<a href="/docs">Docs</a>
<a href="/health">API Status</a>
<a href="/#change-email" class="open-email-change">Change Email</a>
<a href="/impressum">Impressum</a>
<a href="/privacy">Privacy Policy</a>
<a href="/terms">Terms of Service</a>
</div>
</div>
</footer>
</body>
</html>

View file

@ -5,323 +5,557 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>DocFast — HTML & Markdown to PDF API</title>
<meta name="description" content="Convert HTML and Markdown to beautiful PDFs with a simple API call. Built-in invoice templates. Fast, reliable, developer-friendly.">
<meta property="og:title" content="DocFast — HTML & Markdown to PDF API">
<meta property="og:description" content="Convert HTML and Markdown to beautiful PDFs with a simple API call. Fast, reliable, developer-friendly.">
<meta property="og:type" content="website">
<meta property="og:url" content="https://docfast.dev">
<meta property="og:image" content="https://docfast.dev/og-image.png">
<meta name="twitter:card" content="summary_large_image">
<meta name="twitter:title" content="DocFast — HTML & Markdown to PDF API">
<meta name="twitter:description" content="Convert HTML and Markdown to beautiful PDFs with a simple API call.">
<link rel="canonical" href="https://docfast.dev">
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<script type="application/ld+json">
{"@context":"https://schema.org","@type":"SoftwareApplication","name":"DocFast","url":"https://docfast.dev","applicationCategory":"DeveloperApplication","operatingSystem":"Web","description":"Convert HTML and Markdown to beautiful PDFs with a simple API call. Fast, reliable, developer-friendly.","offers":[{"@type":"Offer","price":"0","priceCurrency":"EUR","name":"Free","description":"100 PDFs/month"},{"@type":"Offer","price":"9","priceCurrency":"EUR","name":"Pro","description":"5,000 PDFs / month","billingIncrement":"P1M"}]}
</script>
<link rel="icon" href="data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'><text y='.9em' font-size='90'>⚡</text></svg>">
<style>
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root { --bg: #0a0a0a; --fg: #e8e8e8; --muted: #888; --accent: #4f9; --accent2: #3ad; --card: #141414; --border: #222; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; background: var(--bg); color: var(--fg); line-height: 1.6; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
.container { max-width: 960px; margin: 0 auto; padding: 0 24px; }
:root {
--bg: #0b0d11; --bg2: #12151c; --fg: #e4e7ed; --muted: #7a8194;
--accent: #34d399; --accent-hover: #5eead4; --accent-glow: rgba(52,211,153,0.12);
--accent2: #60a5fa; --card: #151922; --border: #1e2433;
--radius: 12px; --radius-lg: 16px;
}
body { font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; background: var(--bg); color: var(--fg); line-height: 1.65; -webkit-font-smoothing: antialiased; }
a { color: var(--accent); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--accent-hover); }
.container { max-width: 1020px; margin: 0 auto; padding: 0 24px; }
/* Nav */
nav { padding: 20px 0; border-bottom: 1px solid var(--border); }
nav .container { display: flex; align-items: center; justify-content: space-between; }
.logo { font-size: 1.25rem; font-weight: 700; letter-spacing: -0.5px; color: var(--fg); display: flex; align-items: center; gap: 8px; }
.logo span { color: var(--accent); }
.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-links a { color: var(--muted); font-size: 0.9rem; font-weight: 500; }
.nav-links a:hover { color: var(--fg); }
/* Hero */
.hero { padding: 100px 0 80px; text-align: center; }
.hero h1 { font-size: 3rem; font-weight: 700; margin-bottom: 16px; letter-spacing: -1px; }
.hero h1 span { color: var(--accent); }
.hero p { font-size: 1.25rem; color: var(--muted); max-width: 600px; margin: 0 auto 40px; }
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.btn { display: inline-block; padding: 14px 32px; border-radius: 8px; font-size: 1rem; font-weight: 600; transition: all 0.2s; border: none; cursor: pointer; }
.btn-primary { background: var(--accent); color: #000; }
.btn-primary:hover { background: #6fb; text-decoration: none; }
.hero { padding: 100px 0 80px; text-align: center; position: relative; }
.hero::before { content: ''; position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 600px; height: 400px; background: radial-gradient(ellipse, var(--accent-glow) 0%, transparent 70%); pointer-events: none; }
.badge { display: inline-block; padding: 6px 16px; border-radius: 50px; font-size: 0.8rem; font-weight: 600; color: var(--accent); background: rgba(52,211,153,0.08); border: 1px solid rgba(52,211,153,0.15); margin-bottom: 24px; letter-spacing: 0.3px; }
.hero h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); font-weight: 800; margin-bottom: 20px; letter-spacing: -1.5px; line-height: 1.15; }
.hero h1 .gradient { background: linear-gradient(135deg, var(--accent) 0%, var(--accent2) 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.hero p { font-size: 1.2rem; color: var(--muted); max-width: 560px; margin: 0 auto 40px; line-height: 1.7; }
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 28px; border-radius: 10px; font-size: 0.95rem; font-weight: 600; transition: all 0.2s; border: none; cursor: pointer; text-decoration: none; }
.btn-primary { background: var(--accent); color: #0b0d11; }
.btn-primary:hover { background: var(--accent-hover); text-decoration: none; transform: translateY(-1px); box-shadow: 0 8px 24px rgba(52,211,153,0.2); }
.btn-secondary { border: 1px solid var(--border); color: var(--fg); background: transparent; }
.btn-secondary:hover { border-color: var(--muted); text-decoration: none; }
.btn-secondary:hover { border-color: var(--muted); text-decoration: none; background: rgba(255,255,255,0.03); }
.btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }
/* Code block */
.code-hero { background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 24px 32px; margin: 48px auto 0; max-width: 640px; text-align: left; font-family: 'SF Mono', 'Fira Code', monospace; font-size: 0.9rem; overflow-x: auto; }
.code-hero .comment { color: #666; }
.code-hero .string { color: var(--accent); }
.code-hero .key { color: var(--accent2); }
.code-section { margin: 56px auto 0; max-width: 660px; text-align: left; display: flex; flex-direction: column; }
.code-header { display: flex; align-items: center; justify-content: space-between; padding: 12px 20px; background: #1a1f2b; border: 1px solid var(--border); border-bottom: none; border-radius: var(--radius) var(--radius) 0 0; }
.code-dots { display: flex; gap: 6px; }
.code-dots span { width: 10px; height: 10px; border-radius: 50%; }
.code-dots span:nth-child(1) { background: #f87171; }
.code-dots span:nth-child(2) { background: #fbbf24; }
.code-dots span:nth-child(3) { background: #34d399; }
.code-label { font-size: 0.75rem; color: var(--muted); font-family: monospace; }
.code-block { background: var(--card); border: 1px solid var(--border); border-radius: 0 0 var(--radius) var(--radius); padding: 24px 28px; font-family: 'SF Mono', 'Fira Code', 'Cascadia Code', monospace; font-size: 0.85rem; line-height: 1.85; overflow-x: auto; }
.code-block .c { color: #4a5568; }
.code-block .s { color: var(--accent); }
.code-block .k { color: var(--accent2); }
.code-block .f { color: #c084fc; }
/* Sections */
section { position: relative; }
.section-title { text-align: center; font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 700; letter-spacing: -0.5px; margin-bottom: 12px; }
.section-sub { text-align: center; color: var(--muted); margin-bottom: 48px; font-size: 1.05rem; }
/* Features */
.features { padding: 80px 0; }
.features h2 { text-align: center; font-size: 2rem; margin-bottom: 48px; }
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.feature-card { background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 32px; }
.feature-card h3 { font-size: 1.1rem; margin-bottom: 8px; }
.feature-card p { color: var(--muted); font-size: 0.95rem; }
.feature-icon { font-size: 1.5rem; margin-bottom: 12px; }
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 768px) { .features-grid { grid-template-columns: 1fr; } }
.feature-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px; transition: border-color 0.2s, transform 0.2s; }
.feature-card:hover { border-color: rgba(52,211,153,0.3); transform: translateY(-2px); }
.feature-icon { width: 40px; height: 40px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; margin-bottom: 16px; background: rgba(52,211,153,0.08); }
.feature-card h3 { font-size: 1rem; font-weight: 600; margin-bottom: 8px; }
.feature-card p { color: var(--muted); font-size: 0.9rem; line-height: 1.6; }
/* Pricing */
.pricing { padding: 80px 0; }
.pricing h2 { text-align: center; font-size: 2rem; margin-bottom: 12px; }
.pricing .subtitle { text-align: center; color: var(--muted); margin-bottom: 48px; }
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; max-width: 700px; margin: 0 auto; }
.price-card { background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 32px; text-align: center; }
.pricing-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; max-width: 700px; margin: 0 auto; }
@media (max-width: 640px) { .pricing-grid { grid-template-columns: 1fr; } }
.price-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 36px; position: relative; }
.price-card.featured { border-color: var(--accent); }
.price-card h3 { font-size: 1.2rem; margin-bottom: 8px; }
.price-amount { font-size: 2.5rem; font-weight: 700; margin: 16px 0; }
.price-amount span { font-size: 1rem; color: var(--muted); font-weight: 400; }
.price-features { list-style: none; text-align: left; margin: 24px 0; }
.price-features li { padding: 6px 0; color: var(--muted); font-size: 0.95rem; }
.price-features li::before { content: "✓ "; color: var(--accent); }
.price-card.featured::before { content: 'POPULAR'; position: absolute; top: -10px; right: 20px; background: var(--accent); color: #0b0d11; font-size: 0.65rem; font-weight: 700; padding: 3px 10px; border-radius: 50px; letter-spacing: 0.5px; }
.price-name { font-size: 0.9rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 8px; }
.price-amount { font-size: 3rem; font-weight: 800; letter-spacing: -2px; margin-bottom: 4px; }
.price-amount span { font-size: 1rem; color: var(--muted); font-weight: 400; letter-spacing: 0; }
.price-desc { color: var(--muted); font-size: 0.85rem; margin-bottom: 24px; padding-bottom: 24px; border-bottom: 1px solid var(--border); }
.price-features { list-style: none; margin-bottom: 28px; }
.price-features li { padding: 5px 0; color: var(--muted); font-size: 0.9rem; display: flex; align-items: center; gap: 10px; }
.price-features li::before { content: "✓"; color: var(--accent); font-weight: 700; font-size: 0.85rem; flex-shrink: 0; }
/* Endpoints */
.endpoints { padding: 80px 0; }
.endpoints h2 { text-align: center; font-size: 2rem; margin-bottom: 48px; }
.endpoint { background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 24px 32px; margin-bottom: 16px; }
.endpoint-method { display: inline-block; background: #1a3a20; color: var(--accent); font-family: monospace; font-size: 0.85rem; font-weight: 700; padding: 3px 8px; border-radius: 4px; margin-right: 8px; }
.endpoint-path { font-family: monospace; font-size: 0.95rem; }
.endpoint-desc { color: var(--muted); font-size: 0.9rem; margin-top: 8px; }
/* Trust */
.trust { padding: 60px 0 40px; }
.trust-grid { display: flex; gap: 40px; justify-content: center; flex-wrap: wrap; }
.trust-item { text-align: center; flex: 1; min-width: 160px; max-width: 220px; }
.trust-num { font-size: 2rem; font-weight: 800; color: var(--accent); letter-spacing: -1px; }
.trust-label { font-size: 0.85rem; color: var(--muted); margin-top: 4px; }
/* EU Hosting */
.eu-hosting { padding: 40px 0 80px; }
.eu-badge { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 32px; max-width: 600px; margin: 0 auto; display: flex; align-items: center; gap: 20px; transition: border-color 0.2s, transform 0.2s; }
.eu-badge:hover { border-color: rgba(52,211,153,0.3); transform: translateY(-2px); }
.eu-icon { font-size: 3rem; flex-shrink: 0; }
.eu-content h3 { font-size: 1.4rem; font-weight: 700; margin-bottom: 8px; color: var(--fg); }
.eu-content p { color: var(--muted); font-size: 0.95rem; line-height: 1.6; margin: 0; }
@media (max-width: 640px) {
.eu-badge { flex-direction: column; text-align: center; gap: 16px; padding: 24px; }
.eu-icon { font-size: 2.5rem; }
}
/* Footer */
footer { padding: 40px 0; text-align: center; color: var(--muted); font-size: 0.85rem; border-top: 1px solid var(--border); }
footer { padding: 40px 0; border-top: 1px solid var(--border); }
footer .container { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.footer-left { color: var(--muted); font-size: 0.85rem; }
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-links a { color: var(--muted); font-size: 0.85rem; }
.footer-links a:hover { color: var(--fg); }
/* Modal */
.modal-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.7); z-index: 100; align-items: center; justify-content: center; }
.modal-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.75); backdrop-filter: blur(4px); z-index: 100; align-items: center; justify-content: center; }
.modal-overlay.active { display: flex; }
.modal { background: var(--card); border: 1px solid var(--border); border-radius: 16px; padding: 40px; max-width: 440px; width: 90%; }
.modal h2 { margin-bottom: 8px; font-size: 1.5rem; }
.modal { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 40px; max-width: 460px; width: 90%; position: relative; }
.modal h2 { margin-bottom: 8px; font-size: 1.4rem; font-weight: 700; }
.modal p { color: var(--muted); margin-bottom: 24px; font-size: 0.95rem; }
.modal input { width: 100%; padding: 14px 16px; border-radius: 8px; border: 1px solid var(--border); background: var(--bg); color: var(--fg); font-size: 1rem; margin-bottom: 16px; outline: none; }
.modal input:focus { border-color: var(--accent); }
.modal .btn { width: 100%; text-align: center; }
.modal .error { color: #f66; font-size: 0.85rem; margin-bottom: 12px; display: none; }
.modal .close { position: absolute; top: 16px; right: 20px; color: var(--muted); font-size: 1.5rem; cursor: pointer; background: none; border: none; }
.modal .close { position: absolute; top: 16px; right: 20px; color: var(--muted); font-size: 1.4rem; cursor: pointer; background: none; border: none; transition: color 0.2s; }
.modal .close:hover { color: var(--fg); }
/* Key result */
.key-result { display: none; }
.key-result .key-box { background: var(--bg); border: 1px solid var(--accent); border-radius: 8px; padding: 16px; font-family: monospace; font-size: 0.85rem; word-break: break-all; margin: 16px 0; cursor: pointer; transition: background 0.2s; }
.key-result .key-box:hover { background: #111; }
.key-result .copy-hint { color: var(--muted); font-size: 0.8rem; text-align: center; }
/* Signup states */
#signupInitial, #signupLoading, #signupVerify, #signupResult { display: none; }
#signupInitial.active { display: block; }
#signupLoading.active { display: flex; flex-direction: column; align-items: center; padding: 40px 0; text-align: center; }
#signupResult.active { display: block; }
#signupVerify.active { display: block; }
.spinner { width: 36px; height: 36px; border: 3px solid var(--border); border-top-color: var(--accent); border-radius: 50%; animation: spin 0.7s linear infinite; margin-bottom: 16px; }
@keyframes spin { to { transform: rotate(360deg); } }
.key-box { background: var(--bg); border: 1px solid var(--accent); border-radius: 8px; padding: 16px; font-family: monospace; font-size: 0.82rem; word-break: break-all; margin: 16px 0 12px; position: relative; cursor: pointer; transition: background 0.2s; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.key-box:hover { background: #151922; }
.key-text { flex: 1; }
.copy-btn { background: rgba(52,211,153,0.1); border: 1px solid rgba(52,211,153,0.2); color: var(--accent); border-radius: 6px; padding: 6px 14px; font-size: 0.8rem; font-weight: 600; cursor: pointer; white-space: nowrap; transition: all 0.2s; }
.copy-btn:hover { background: rgba(52,211,153,0.2); }
.warning-box { background: rgba(251,191,36,0.06); border: 1px solid rgba(251,191,36,0.15); border-radius: 8px; padding: 12px 16px; font-size: 0.85rem; color: #fbbf24; display: flex; align-items: flex-start; gap: 10px; margin-bottom: 16px; }
.warning-box .icon { font-size: 1.1rem; flex-shrink: 0; }
.signup-error { color: #f87171; font-size: 0.85rem; margin-bottom: 16px; display: none; padding: 10px 14px; background: rgba(248,113,113,0.06); border: 1px solid rgba(248,113,113,0.15); border-radius: 8px; }
/* Responsive */
@media (max-width: 640px) {
.hero { padding: 72px 0 56px; }
.nav-links { gap: 16px; }
.code-block {
font-size: 0.75rem;
padding: 18px 16px;
overflow-x: hidden;
word-wrap: break-word;
white-space: pre-wrap;
}
.trust-grid { gap: 24px; }
.footer-links { gap: 16px; }
footer .container { flex-direction: column; text-align: center; }
}
/* Fix mobile terminal gaps at 375px and smaller */
@media (max-width: 375px) {
.container {
padding: 0 12px !important;
}
.code-section {
margin: 32px auto 0;
max-width: calc(100vw - 24px) !important;
}
.code-header {
padding: 8px 12px;
}
.code-block {
padding: 12px !important;
font-size: 0.7rem;
}
.hero {
padding: 56px 0 40px;
}
}
/* Additional mobile overflow fixes */
html, body {
overflow-x: hidden !important;
max-width: 100vw !important;
}
@media (max-width: 768px) {
* {
max-width: 100% !important;
}
body {
overflow-x: hidden !important;
}
.container {
overflow-x: hidden !important;
max-width: 100vw !important;
padding: 0 16px !important;
}
.code-section {
max-width: calc(100vw - 32px) !important;
overflow: hidden !important;
display: flex !important;
flex-direction: column !important;
white-space: normal !important;
}
.code-block {
overflow-x: hidden !important;
white-space: pre-wrap !important;
word-break: break-all !important;
max-width: 100% !important;
box-sizing: border-box !important;
}
.trust-grid {
justify-content: center !important;
overflow-x: hidden !important;
max-width: 100% !important;
}
/* Force any wide elements to fit */
pre, code, .code-block {
max-width: calc(100vw - 32px) !important;
overflow-wrap: break-word !important;
word-break: break-all !important;
white-space: pre-wrap !important;
overflow-x: hidden !important;
}
.code-section {
max-width: calc(100vw - 32px) !important;
overflow-x: hidden !important;
white-space: normal !important;
}
}
/* Recovery modal states */
#recoverInitial, #recoverLoading, #recoverVerify, #recoverResult { display: none; }
#recoverInitial.active { display: block; }
#recoverLoading.active { display: flex; flex-direction: column; align-items: center; padding: 40px 0; text-align: center; }
#recoverResult.active { display: block; }
#recoverVerify.active { display: block; }
/* Email change modal states */
#emailChangeInitial, #emailChangeLoading, #emailChangeVerify, #emailChangeResult { display: none; }
#emailChangeInitial.active { display: block; }
#emailChangeLoading.active { display: flex; flex-direction: column; align-items: center; padding: 40px 0; text-align: center; }
#emailChangeResult.active { display: block; }
#emailChangeVerify.active { display: block; }
/* Focus-visible for accessibility */
.btn:focus-visible, a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
</style>
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap" rel="stylesheet">
</head>
<body>
<section class="hero">
<nav aria-label="Main navigation">
<div class="container">
<h1>HTML & Markdown to <span>PDF</span></h1>
<p>One API call. Beautiful PDFs. Built-in invoice templates. No headless browser setup, no dependencies, no hassle.</p>
<div class="hero-actions">
<button class="btn btn-primary" onclick="openSignup()">Get Free API Key</button>
<a href="/docs" class="btn btn-secondary">View Docs</a>
<div class="logo">⚡ Doc<span>Fast</span></div>
<div class="nav-links">
<a href="#features">Features</a>
<a href="#pricing">Pricing</a>
<a href="/docs">Docs</a>
</div>
<div class="code-hero">
<span class="comment">// Convert markdown to PDF in one call</span><br>
<span class="key">curl</span> -X POST https://docfast.dev/v1/convert/markdown \<br>
&nbsp;&nbsp;-H <span class="string">"Authorization: Bearer YOUR_KEY"</span> \<br>
&nbsp;&nbsp;-H <span class="string">"Content-Type: application/json"</span> \<br>
&nbsp;&nbsp;-d <span class="string">'{"markdown": "# Invoice\\n\\nAmount: $500"}'</span> \<br>
&nbsp;&nbsp;-o invoice.pdf
</div>
</nav>
<main class="hero" role="main">
<div class="container">
<div class="badge">🚀 Simple PDF API for Developers</div>
<h1>HTML to <span class="gradient">PDF</span><br>in one API call</h1>
<p>Convert HTML, Markdown, or URLs to pixel-perfect PDFs. Built-in templates for invoices &amp; receipts. No headless browser headaches.</p>
<div class="hero-actions">
<button class="btn btn-primary" id="btn-signup">Get Free API Key →</button>
<a href="/docs" class="btn btn-secondary">Read the Docs</a>
</div>
<p style="margin-top:16px;color:var(--muted);font-size:0.9rem;">Already have an account? <a href="#" class="open-recover" style="color:var(--accent);">Lost your API key? Recover it →</a></p>
<div class="code-section">
<div class="code-header">
<div class="code-dots" aria-hidden="true"><span></span><span></span><span></span></div>
<span class="code-label">terminal</span>
</div>
<div class="code-block">
<span class="c"># Convert HTML to PDF — it's that simple</span>
<span class="k">curl</span> <span class="f">-X POST</span> https://docfast.dev/v1/convert/html \
-H <span class="s">"Authorization: Bearer YOUR_KEY"</span> \
-H <span class="s">"Content-Type: application/json"</span> \
-d <span class="s">'{"html": "&lt;h1&gt;Hello World&lt;/h1&gt;&lt;p&gt;Your first PDF&lt;/p&gt;"}'</span> \
-o <span class="f">output.pdf</span>
</div>
</div>
</div>
</main>
<section class="trust">
<div class="container">
<div class="trust-grid">
<div class="trust-item">
<div class="trust-num">&lt;1s</div>
<div class="trust-label">Avg. generation time</div>
</div>
<div class="trust-item">
<div class="trust-num">99.5%</div>
<div class="trust-label">Uptime SLA</div>
</div>
<div class="trust-item">
<div class="trust-num">HTTPS</div>
<div class="trust-label">Encrypted &amp; secure</div>
</div>
<div class="trust-item">
<div class="trust-num">0 bytes</div>
<div class="trust-label">Data stored on disk</div>
</div>
</div>
</div>
</section>
<section class="features">
<section class="eu-hosting">
<div class="container">
<h2>Why DocFast?</h2>
<div class="eu-badge">
<div class="eu-icon">🇪🇺</div>
<div class="eu-content">
<h3>Hosted in the EU</h3>
<p>Your data never leaves the EU • GDPR Compliant • Hetzner Germany (Nuremberg)</p>
</div>
</div>
</div>
</section>
<section class="features" id="features">
<div class="container">
<h2 class="section-title">Everything you need</h2>
<p class="section-sub">A complete PDF generation API. No SDKs, no dependencies, no setup.</p>
<div class="features-grid">
<div class="feature-card">
<div class="feature-icon"></div>
<h3>Fast</h3>
<p>Sub-second PDF generation. Persistent browser pool means no cold starts.</p>
<div class="feature-icon" aria-hidden="true"></div>
<h3>Sub-second Speed</h3>
<p>Persistent browser pool — no cold starts. Your PDFs are ready before your spinner shows.</p>
</div>
<div class="feature-card">
<div class="feature-icon">🎨</div>
<h3>Beautiful Output</h3>
<p>Full CSS support. Custom fonts, colors, layouts. Your PDFs, your brand.</p>
<div class="feature-icon" aria-hidden="true">🎨</div>
<h3>Pixel-perfect Output</h3>
<p>Full CSS support including flexbox, grid, and custom fonts. Your brand, your PDFs.</p>
</div>
<div class="feature-card">
<div class="feature-icon">📄</div>
<h3>Templates</h3>
<p>Built-in invoice and receipt templates. Pass data, get PDF. No HTML needed.</p>
<div class="feature-icon" aria-hidden="true">📄</div>
<h3>Built-in Templates</h3>
<p>Invoice and receipt templates out of the box. Pass JSON data, get beautiful PDFs.</p>
</div>
<div class="feature-card">
<div class="feature-icon">🔧</div>
<h3>Simple API</h3>
<p>REST API with JSON in, PDF out. Works with any language. No SDKs required.</p>
<div class="feature-icon" aria-hidden="true">🔧</div>
<h3>Dead-simple API</h3>
<p>REST API. JSON in, PDF out. Works with curl, Python, Node, Go — anything with HTTP.</p>
</div>
<div class="feature-card">
<div class="feature-icon">📐</div>
<h3>Flexible</h3>
<p>A4, Letter, custom sizes. Portrait or landscape. Configurable margins.</p>
<div class="feature-icon" aria-hidden="true">📐</div>
<h3>Fully Configurable</h3>
<p>A4, Letter, custom sizes. Portrait or landscape. Headers, footers, and margins.</p>
</div>
<div class="feature-card">
<div class="feature-icon">🔒</div>
<h3>Secure</h3>
<p>Your data is never stored. PDFs are generated and streamed — nothing hits disk.</p>
<div class="feature-icon" aria-hidden="true">🔒</div>
<h3>Secure by Default</h3>
<p>HTTPS only. Rate limiting. No data stored. PDFs stream directly — nothing touches disk.</p>
</div>
</div>
</div>
</section>
<section class="endpoints" id="endpoints">
<div class="container">
<h2>API Endpoints</h2>
<div class="endpoint">
<span class="endpoint-method">POST</span>
<span class="endpoint-path">/v1/convert/html</span>
<div class="endpoint-desc">Convert raw HTML (with optional CSS) to PDF.</div>
</div>
<div class="endpoint">
<span class="endpoint-method">POST</span>
<span class="endpoint-path">/v1/convert/markdown</span>
<div class="endpoint-desc">Convert Markdown to styled PDF with syntax highlighting.</div>
</div>
<div class="endpoint">
<span class="endpoint-method">POST</span>
<span class="endpoint-path">/v1/convert/url</span>
<div class="endpoint-desc">Navigate to a URL and convert the page to PDF.</div>
</div>
<div class="endpoint">
<span class="endpoint-method">GET</span>
<span class="endpoint-path">/v1/templates</span>
<div class="endpoint-desc">List available document templates with field definitions.</div>
</div>
<div class="endpoint">
<span class="endpoint-method">POST</span>
<span class="endpoint-path">/v1/templates/:id/render</span>
<div class="endpoint-desc">Render a template (invoice, receipt) with your data to PDF.</div>
</div>
<div class="endpoint">
<span class="endpoint-method">GET</span>
<span class="endpoint-path">/health</span>
<div class="endpoint-desc">Health check — verify the API is running.</div>
</div>
</div>
</section>
<section class="pricing" id="pricing">
<div class="container">
<h2>Simple Pricing</h2>
<p class="subtitle">No per-page fees. No hidden limits. Pay for what you use.</p>
<h2 class="section-title">Simple, transparent pricing</h2>
<p class="section-sub">Start free. Upgrade when you're ready. No surprise charges.</p>
<div class="pricing-grid">
<div class="price-card">
<h3>Free</h3>
<div class="price-amount">$0<span>/mo</span></div>
<div class="price-name">Free</div>
<div class="price-amount">€0<span> /mo</span></div>
<div class="price-desc">Perfect for side projects and testing</div>
<ul class="price-features">
<li>100 PDFs / month</li>
<li>All endpoints</li>
<li>All templates</li>
<li>Community support</li>
<li>100 PDFs per month</li>
<li>All conversion endpoints</li>
<li>All templates included</li>
<li>Rate limiting: 10 req/min</li>
</ul>
<button class="btn btn-secondary" style="width:100%" onclick="openSignup()">Get Free Key</button>
<button class="btn btn-secondary" style="width:100%" id="btn-signup-2">Get Free API Key</button>
</div>
<div class="price-card featured">
<h3>Pro</h3>
<div class="price-amount">$9<span>/mo</span></div>
<div class="price-name">Pro</div>
<div class="price-amount">€9<span> /mo</span></div>
<div class="price-desc">For production apps and businesses</div>
<ul class="price-features">
<li>10,000 PDFs / month</li>
<li>All endpoints</li>
<li>All templates</li>
<li>5,000 PDFs / month</li>
<li>All conversion endpoints</li>
<li>All templates included</li>
<li>Priority support</li>
<li>Custom templates</li>
</ul>
<button class="btn btn-primary" style="width:100%" onclick="checkout()">Get Started</button>
<button class="btn btn-primary" style="width:100%" id="btn-checkout">Get Started →</button>
</div>
</div>
</div>
</section>
<footer>
<footer aria-label="Footer">
<div class="container">
<p>DocFast &copy; 2026 — Fast PDF generation for developers</p>
<div class="footer-left">© 2026 DocFast. Fast PDF generation for developers.</div>
<div class="footer-links">
<a href="/">Home</a>
<a href="/docs">Docs</a>
<a href="/health">API Status</a>
<a href="/#change-email" class="open-email-change">Change Email</a>
<a href="/impressum">Impressum</a>
<a href="/privacy">Privacy Policy</a>
<a href="/terms">Terms of Service</a>
</div>
</div>
</footer>
<!-- Signup Modal -->
<div class="modal-overlay" id="signupModal">
<div class="modal" style="position:relative">
<button class="close" onclick="closeSignup()">&times;</button>
<div id="signupForm">
<h2>Get Your Free API Key</h2>
<p>Enter your email and get an API key instantly. No credit card required.</p>
<div class="error" id="signupError"></div>
<input type="email" id="signupEmail" placeholder="you@example.com" autofocus>
<button class="btn btn-primary" style="width:100%" onclick="submitSignup()" id="signupBtn">Get API Key</button>
<div class="modal-overlay" id="signupModal" role="dialog" aria-label="Sign up for API key">
<div class="modal">
<button class="close" id="btn-close-signup">&times;</button>
<div id="signupInitial" class="active">
<h2>Get your free API key</h2>
<p>Enter your email to get started. No credit card required.</p>
<div class="signup-error" id="signupError"></div>
<input type="email" id="signupEmail" placeholder="your.email@example.com" style="width:100%;padding:12px;border:1px solid var(--border);background:var(--bg);color:var(--fg);border-radius:8px;font-size:0.9rem;margin-bottom:16px;" required>
<button class="btn btn-primary" style="width:100%" id="signupBtn">Generate API Key →</button>
<p style="margin-top:16px;color:var(--muted);font-size:0.8rem;text-align:center;">100 free PDFs/month • All endpoints included<br><a href="#" class="open-recover" style="color:var(--muted)">Lost your API key? Recover it →</a></p>
</div>
<div class="key-result" id="keyResult">
<h2>🚀 You're in!</h2>
<p>Here's your API key. <strong>Save it now</strong> — it won't be shown again.</p>
<div class="key-box" id="apiKeyDisplay" onclick="copyKey()" title="Click to copy"></div>
<div class="copy-hint">Click to copy</div>
<p style="margin-top:24px;color:var(--muted);font-size:0.9rem;">100 free PDFs/month • All endpoints • <a href="/docs">View docs →</a></p>
<div id="signupLoading">
<div class="spinner"></div>
<p style="color:var(--muted);margin:0">Generating your API key…</p>
</div>
<div id="signupVerify">
<h2>Enter verification code</h2>
<p>We sent a 6-digit code to <strong id="verifyEmailDisplay"></strong></p>
<div class="signup-error" id="verifyError"></div>
<input type="text" id="verifyCode" placeholder="123456" maxlength="6" pattern="[0-9]{6}" inputmode="numeric" style="width:100%;padding:14px;border:1px solid var(--border);background:var(--bg);color:var(--fg);border-radius:8px;font-size:1.4rem;letter-spacing:0.3em;text-align:center;margin-bottom:16px;font-family:monospace;" required>
<button class="btn btn-primary" style="width:100%" id="verifyBtn">Verify →</button>
<p style="margin-top:16px;color:var(--muted);font-size:0.8rem;text-align:center;">Code expires in 15 minutes</p>
</div>
<div id="signupResult" aria-live="polite">
<h2>🚀 Your API key is ready!</h2>
<div class="warning-box">
<span class="icon">⚠️</span>
<span>Save your API key securely. Lost it? <a href="#" class="open-recover" style="color:#fbbf24">Recover via email</a></span>
</div>
<div style="background:var(--bg);border:1px solid var(--accent);border-radius:8px;padding:14px;font-family:monospace;font-size:0.82rem;word-break:break-all;margin:16px 0;position:relative;">
<span id="apiKeyText"></span>
<button onclick="copyKey()" id="copyBtn" style="position:absolute;top:8px;right:8px;background:var(--accent);color:var(--bg);border:none;border-radius:4px;padding:4px 12px;cursor:pointer;font-size:0.8rem;">Copy</button>
</div>
<p style="margin-top:20px;color:var(--muted);font-size:0.9rem;">100 free PDFs/month • <a href="/docs">Read the docs →</a></p>
</div>
</div>
</div>
<script>
function openSignup() {
document.getElementById('signupModal').classList.add('active');
document.getElementById('signupForm').style.display = 'block';
document.getElementById('keyResult').style.display = 'none';
document.getElementById('signupEmail').value = '';
document.getElementById('signupError').style.display = 'none';
setTimeout(() => document.getElementById('signupEmail').focus(), 100);
}
function closeSignup() {
document.getElementById('signupModal').classList.remove('active');
}
<!-- Recovery Modal -->
<div class="modal-overlay" id="recoverModal" role="dialog" aria-label="Recover API key">
<div class="modal">
<button class="close" id="btn-close-recover">&times;</button>
// Close on overlay click
document.getElementById('signupModal').addEventListener('click', function(e) {
if (e.target === this) closeSignup();
});
<div id="recoverInitial" class="active">
<h2>Recover your API key</h2>
<p>Enter the email you signed up with. We'll send a verification code.</p>
<div class="signup-error" id="recoverError"></div>
<input type="email" id="recoverEmailInput" placeholder="your.email@example.com" style="width:100%;padding:12px;border:1px solid var(--border);background:var(--bg);color:var(--fg);border-radius:8px;font-size:0.9rem;margin-bottom:16px;" required>
<button class="btn btn-primary" style="width:100%" id="recoverBtn">Send Verification Code →</button>
<p style="margin-top:16px;color:var(--muted);font-size:0.8rem;text-align:center;">Your key will be shown here after verification — never sent via email</p>
</div>
// Submit on Enter
document.getElementById('signupEmail').addEventListener('keydown', function(e) {
if (e.key === 'Enter') submitSignup();
});
<div id="recoverLoading">
<div class="spinner"></div>
<p style="color:var(--muted);margin:0">Sending verification code…</p>
</div>
async function submitSignup() {
const email = document.getElementById('signupEmail').value.trim();
const errEl = document.getElementById('signupError');
const btn = document.getElementById('signupBtn');
<div id="recoverVerify">
<h2>Enter verification code</h2>
<p>We sent a 6-digit code to <strong id="recoverEmailDisplay"></strong></p>
<div class="signup-error" id="recoverVerifyError"></div>
<input type="text" id="recoverCode" placeholder="123456" maxlength="6" pattern="[0-9]{6}" inputmode="numeric" style="width:100%;padding:14px;border:1px solid var(--border);background:var(--bg);color:var(--fg);border-radius:8px;font-size:1.4rem;letter-spacing:0.3em;text-align:center;margin-bottom:16px;font-family:monospace;" required>
<button class="btn btn-primary" style="width:100%" id="recoverVerifyBtn">Verify →</button>
<p style="margin-top:16px;color:var(--muted);font-size:0.8rem;text-align:center;">Code expires in 15 minutes</p>
</div>
if (!email) {
errEl.textContent = 'Please enter your email.';
errEl.style.display = 'block';
return;
}
<div id="recoverResult" aria-live="polite">
<h2>🔑 Your API key</h2>
<div class="warning-box">
<span class="icon">⚠️</span>
<span>Save your API key securely. This is the only time it will be shown.</span>
</div>
<div style="background:var(--bg);border:1px solid var(--accent);border-radius:8px;padding:14px;font-family:monospace;font-size:0.82rem;word-break:break-all;margin:16px 0;position:relative;">
<span id="recoveredKeyText"></span>
<button onclick="copyRecoveredKey()" id="copyRecoveredBtn" style="position:absolute;top:8px;right:8px;background:var(--accent);color:var(--bg);border:none;border-radius:4px;padding:4px 12px;cursor:pointer;font-size:0.8rem;">Copy</button>
</div>
<p style="margin-top:20px;color:var(--muted);font-size:0.9rem;"><a href="/docs">Read the docs →</a></p>
</div>
</div>
</div>
btn.textContent = 'Creating...';
btn.disabled = true;
try {
const res = await fetch('/v1/signup/free', {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({ email })
});
const data = await res.json();
<!-- Email Change Modal -->
<div class="modal-overlay" id="emailChangeModal" role="dialog" aria-label="Change email">
<div class="modal">
<button class="close" id="btn-close-email-change">&times;</button>
if (!res.ok) {
errEl.textContent = data.error || 'Something went wrong.';
errEl.style.display = 'block';
btn.textContent = 'Get API Key';
btn.disabled = false;
return;
}
<div id="emailChangeInitial" class="active">
<h2>Change your email</h2>
<p>Enter your API key and new email address.</p>
<div class="signup-error" id="emailChangeError"></div>
<input type="text" id="emailChangeApiKey" placeholder="Your API key (df_free_... or df_pro_...)" style="width:100%;padding:12px;border:1px solid var(--border);background:var(--bg);color:var(--fg);border-radius:8px;font-size:0.9rem;margin-bottom:12px;font-family:monospace;" required>
<input type="email" id="emailChangeNewEmail" placeholder="new.email@example.com" style="width:100%;padding:12px;border:1px solid var(--border);background:var(--bg);color:var(--fg);border-radius:8px;font-size:0.9rem;margin-bottom:16px;" required>
<button class="btn btn-primary" style="width:100%" id="emailChangeBtn">Send Verification Code →</button>
<p style="margin-top:16px;color:var(--muted);font-size:0.8rem;text-align:center;">A verification code will be sent to your new email</p>
</div>
// Show key
document.getElementById('signupForm').style.display = 'none';
document.getElementById('keyResult').style.display = 'block';
document.getElementById('apiKeyDisplay').textContent = data.apiKey;
} catch (err) {
errEl.textContent = 'Network error. Please try again.';
errEl.style.display = 'block';
btn.textContent = 'Get API Key';
btn.disabled = false;
}
}
<div id="emailChangeLoading">
<div class="spinner"></div>
<p style="color:var(--muted);margin:0">Sending verification code…</p>
</div>
function copyKey() {
const key = document.getElementById('apiKeyDisplay').textContent;
navigator.clipboard.writeText(key).then(() => {
document.querySelector('.copy-hint').textContent = '✓ Copied!';
setTimeout(() => document.querySelector('.copy-hint').textContent = 'Click to copy', 2000);
});
}
<div id="emailChangeVerify">
<h2>Enter verification code</h2>
<p>We sent a 6-digit code to <strong id="emailChangeEmailDisplay"></strong></p>
<div class="signup-error" id="emailChangeVerifyError"></div>
<input type="text" id="emailChangeCode" placeholder="123456" maxlength="6" pattern="[0-9]{6}" inputmode="numeric" style="width:100%;padding:14px;border:1px solid var(--border);background:var(--bg);color:var(--fg);border-radius:8px;font-size:1.4rem;letter-spacing:0.3em;text-align:center;margin-bottom:16px;font-family:monospace;" required>
<button class="btn btn-primary" style="width:100%" id="emailChangeVerifyBtn">Verify →</button>
<p style="margin-top:16px;color:var(--muted);font-size:0.8rem;text-align:center;">Code expires in 15 minutes</p>
</div>
async function checkout() {
try {
const res = await fetch('/v1/billing/checkout', { method: 'POST' });
const data = await res.json();
if (data.url) window.location.href = data.url;
else alert('Something went wrong. Please try again.');
} catch (err) {
alert('Something went wrong. Please try again.');
}
}
</script>
<div id="emailChangeResult">
<h2>✅ Email updated!</h2>
<p>Your account email has been changed to <strong id="emailChangeNewDisplay"></strong></p>
<p style="margin-top:20px;color:var(--muted);font-size:0.9rem;"><a href="/docs">Read the docs →</a></p>
</div>
</div>
</div>
<script src="/app.js"></script>
</body>
</html>

View file

@ -0,0 +1,325 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>DocFast — HTML & Markdown to PDF API</title>
<meta name="description" content="Convert HTML and Markdown to beautiful PDFs with a simple API call. Built-in invoice templates. Fast, reliable, developer-friendly.">
<link rel="icon" href="data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'><text y='.9em' font-size='90'>⚡</text></svg>">
<style>
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
--bg: #0b0d11; --bg2: #12151c; --fg: #e4e7ed; --muted: #7a8194;
--accent: #34d399; --accent-hover: #5eead4; --accent-glow: rgba(52,211,153,0.12);
--accent2: #60a5fa; --card: #151922; --border: #1e2433;
--radius: 12px; --radius-lg: 16px;
}
body { font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; background: var(--bg); color: var(--fg); line-height: 1.65; -webkit-font-smoothing: antialiased; }
a { color: var(--accent); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--accent-hover); }
.container { max-width: 1020px; margin: 0 auto; padding: 0 24px; }
/* Nav */
nav { padding: 20px 0; border-bottom: 1px solid var(--border); }
nav .container { display: flex; align-items: center; justify-content: space-between; }
.logo { font-size: 1.25rem; font-weight: 700; letter-spacing: -0.5px; color: var(--fg); display: flex; align-items: center; gap: 8px; }
.logo span { color: var(--accent); }
.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-links a { color: var(--muted); font-size: 0.9rem; font-weight: 500; }
.nav-links a:hover { color: var(--fg); }
/* Hero */
.hero { padding: 100px 0 80px; text-align: center; position: relative; }
.hero::before { content: ''; position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 600px; height: 400px; background: radial-gradient(ellipse, var(--accent-glow) 0%, transparent 70%); pointer-events: none; }
.badge { display: inline-block; padding: 6px 16px; border-radius: 50px; font-size: 0.8rem; font-weight: 600; color: var(--accent); background: rgba(52,211,153,0.08); border: 1px solid rgba(52,211,153,0.15); margin-bottom: 24px; letter-spacing: 0.3px; }
.hero h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); font-weight: 800; margin-bottom: 20px; letter-spacing: -1.5px; line-height: 1.15; }
.hero h1 .gradient { background: linear-gradient(135deg, var(--accent) 0%, var(--accent2) 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.hero p { font-size: 1.2rem; color: var(--muted); max-width: 560px; margin: 0 auto 40px; line-height: 1.7; }
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 28px; border-radius: 10px; font-size: 0.95rem; font-weight: 600; transition: all 0.2s; border: none; cursor: pointer; text-decoration: none; }
.btn-primary { background: var(--accent); color: #0b0d11; }
.btn-primary:hover { background: var(--accent-hover); text-decoration: none; transform: translateY(-1px); box-shadow: 0 8px 24px rgba(52,211,153,0.2); }
.btn-secondary { border: 1px solid var(--border); color: var(--fg); background: transparent; }
.btn-secondary:hover { border-color: var(--muted); text-decoration: none; background: rgba(255,255,255,0.03); }
.btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }
/* Code block */
.code-section { margin: 56px auto 0; max-width: 660px; text-align: left; }
.code-header { display: flex; align-items: center; justify-content: space-between; padding: 12px 20px; background: #1a1f2b; border: 1px solid var(--border); border-bottom: none; border-radius: var(--radius) var(--radius) 0 0; }
.code-dots { display: flex; gap: 6px; }
.code-dots span { width: 10px; height: 10px; border-radius: 50%; }
.code-dots span:nth-child(1) { background: #f87171; }
.code-dots span:nth-child(2) { background: #fbbf24; }
.code-dots span:nth-child(3) { background: #34d399; }
.code-label { font-size: 0.75rem; color: var(--muted); font-family: monospace; }
.code-block { background: var(--card); border: 1px solid var(--border); border-radius: 0 0 var(--radius) var(--radius); padding: 24px 28px; font-family: 'SF Mono', 'Fira Code', 'Cascadia Code', monospace; font-size: 0.85rem; line-height: 1.85; overflow-x: auto; }
.code-block .c { color: #4a5568; }
.code-block .s { color: var(--accent); }
.code-block .k { color: var(--accent2); }
.code-block .f { color: #c084fc; }
/* Sections */
section { position: relative; }
.section-title { text-align: center; font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 700; letter-spacing: -0.5px; margin-bottom: 12px; }
.section-sub { text-align: center; color: var(--muted); margin-bottom: 48px; font-size: 1.05rem; }
/* Features */
.features { padding: 80px 0; }
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 768px) { .features-grid { grid-template-columns: 1fr; } }
.feature-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px; transition: border-color 0.2s, transform 0.2s; }
.feature-card:hover { border-color: rgba(52,211,153,0.3); transform: translateY(-2px); }
.feature-icon { width: 40px; height: 40px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; margin-bottom: 16px; background: rgba(52,211,153,0.08); }
.feature-card h3 { font-size: 1rem; font-weight: 600; margin-bottom: 8px; }
.feature-card p { color: var(--muted); font-size: 0.9rem; line-height: 1.6; }
/* Pricing */
.pricing { padding: 80px 0; }
.pricing-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; max-width: 700px; margin: 0 auto; }
@media (max-width: 640px) { .pricing-grid { grid-template-columns: 1fr; } }
.price-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 36px; position: relative; }
.price-card.featured { border-color: var(--accent); }
.price-card.featured::before { content: 'POPULAR'; position: absolute; top: -10px; right: 20px; background: var(--accent); color: #0b0d11; font-size: 0.65rem; font-weight: 700; padding: 3px 10px; border-radius: 50px; letter-spacing: 0.5px; }
.price-name { font-size: 0.9rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 8px; }
.price-amount { font-size: 3rem; font-weight: 800; letter-spacing: -2px; margin-bottom: 4px; }
.price-amount span { font-size: 1rem; color: var(--muted); font-weight: 400; letter-spacing: 0; }
.price-desc { color: var(--muted); font-size: 0.85rem; margin-bottom: 24px; padding-bottom: 24px; border-bottom: 1px solid var(--border); }
.price-features { list-style: none; margin-bottom: 28px; }
.price-features li { padding: 5px 0; color: var(--muted); font-size: 0.9rem; display: flex; align-items: center; gap: 10px; }
.price-features li::before { content: "✓"; color: var(--accent); font-weight: 700; font-size: 0.85rem; flex-shrink: 0; }
/* Trust */
.trust { padding: 60px 0 80px; }
.trust-grid { display: flex; gap: 40px; justify-content: center; flex-wrap: wrap; }
.trust-item { text-align: center; flex: 1; min-width: 160px; max-width: 220px; }
.trust-num { font-size: 2rem; font-weight: 800; color: var(--accent); letter-spacing: -1px; }
.trust-label { font-size: 0.85rem; color: var(--muted); margin-top: 4px; }
/* Footer */
footer { padding: 40px 0; border-top: 1px solid var(--border); }
footer .container { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.footer-left { color: var(--muted); font-size: 0.85rem; }
.footer-links { display: flex; gap: 24px; }
.footer-links a { color: var(--muted); font-size: 0.85rem; }
.footer-links a:hover { color: var(--fg); }
/* Modal */
.modal-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.75); backdrop-filter: blur(4px); z-index: 100; align-items: center; justify-content: center; }
.modal-overlay.active { display: flex; }
.modal { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 40px; max-width: 460px; width: 90%; position: relative; }
.modal h2 { margin-bottom: 8px; font-size: 1.4rem; font-weight: 700; }
.modal p { color: var(--muted); margin-bottom: 24px; font-size: 0.95rem; }
.modal .close { position: absolute; top: 16px; right: 20px; color: var(--muted); font-size: 1.4rem; cursor: pointer; background: none; border: none; transition: color 0.2s; }
.modal .close:hover { color: var(--fg); }
/* Signup states */
#signupInitial, #signupLoading, #signupResult { display: none; }
#signupInitial.active { display: block; }
#signupLoading.active { display: flex; flex-direction: column; align-items: center; padding: 40px 0; text-align: center; }
#signupResult.active { display: block; }
.spinner { width: 36px; height: 36px; border: 3px solid var(--border); border-top-color: var(--accent); border-radius: 50%; animation: spin 0.7s linear infinite; margin-bottom: 16px; }
@keyframes spin { to { transform: rotate(360deg); } }
.key-box { background: var(--bg); border: 1px solid var(--accent); border-radius: 8px; padding: 16px; font-family: monospace; font-size: 0.82rem; word-break: break-all; margin: 16px 0 12px; position: relative; cursor: pointer; transition: background 0.2s; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.key-box:hover { background: #151922; }
.key-text { flex: 1; }
.copy-btn { background: rgba(52,211,153,0.1); border: 1px solid rgba(52,211,153,0.2); color: var(--accent); border-radius: 6px; padding: 6px 14px; font-size: 0.8rem; font-weight: 600; cursor: pointer; white-space: nowrap; transition: all 0.2s; }
.copy-btn:hover { background: rgba(52,211,153,0.2); }
.warning-box { background: rgba(251,191,36,0.06); border: 1px solid rgba(251,191,36,0.15); border-radius: 8px; padding: 12px 16px; font-size: 0.85rem; color: #fbbf24; display: flex; align-items: flex-start; gap: 10px; margin-bottom: 16px; }
.warning-box .icon { font-size: 1.1rem; flex-shrink: 0; }
.signup-error { color: #f87171; font-size: 0.85rem; margin-bottom: 16px; display: none; padding: 10px 14px; background: rgba(248,113,113,0.06); border: 1px solid rgba(248,113,113,0.15); border-radius: 8px; }
/* Responsive */
@media (max-width: 640px) {
.hero { padding: 72px 0 56px; }
.nav-links { gap: 16px; }
.code-block { font-size: 0.75rem; padding: 18px 16px; }
.trust-grid { gap: 24px; }
}
</style>
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap" rel="stylesheet">
</head>
<body>
<nav>
<div class="container">
<div class="logo">⚡ Doc<span>Fast</span></div>
<div class="nav-links">
<a href="#features">Features</a>
<a href="#pricing">Pricing</a>
<a href="/docs">Docs</a>
</div>
</div>
</nav>
<section class="hero">
<div class="container">
<div class="badge">🚀 Simple PDF API for Developers</div>
<h1>HTML to <span class="gradient">PDF</span><br>in one API call</h1>
<p>Convert HTML, Markdown, or URLs to pixel-perfect PDFs. Built-in templates for invoices &amp; receipts. No headless browser headaches.</p>
<div class="hero-actions">
<button class="btn btn-primary" id="btn-signup">Get Free API Key →</button>
<a href="/docs" class="btn btn-secondary">Read the Docs</a>
</div>
<div class="code-section">
<div class="code-header">
<div class="code-dots"><span></span><span></span><span></span></div>
<span class="code-label">terminal</span>
</div>
<div class="code-block">
<span class="c"># Convert HTML to PDF — it's that simple</span>
<span class="k">curl</span> <span class="f">-X POST</span> https://docfast.dev/v1/convert/html \
-H <span class="s">"Authorization: Bearer YOUR_KEY"</span> \
-H <span class="s">"Content-Type: application/json"</span> \
-d <span class="s">'{"html": "&lt;h1&gt;Hello World&lt;/h1&gt;&lt;p&gt;Your first PDF&lt;/p&gt;"}'</span> \
-o <span class="f">output.pdf</span>
</div>
</div>
</div>
</section>
<section class="trust">
<div class="container">
<div class="trust-grid">
<div class="trust-item">
<div class="trust-num">&lt;1s</div>
<div class="trust-label">Avg. generation time</div>
</div>
<div class="trust-item">
<div class="trust-num">99.9%</div>
<div class="trust-label">Uptime SLA</div>
</div>
<div class="trust-item">
<div class="trust-num">HTTPS</div>
<div class="trust-label">Encrypted &amp; secure</div>
</div>
<div class="trust-item">
<div class="trust-num">0 bytes</div>
<div class="trust-label">Data stored on disk</div>
</div>
</div>
</div>
</section>
<section class="features" id="features">
<div class="container">
<h2 class="section-title">Everything you need</h2>
<p class="section-sub">A complete PDF generation API. No SDKs, no dependencies, no setup.</p>
<div class="features-grid">
<div class="feature-card">
<div class="feature-icon">⚡</div>
<h3>Sub-second Speed</h3>
<p>Persistent browser pool — no cold starts. Your PDFs are ready before your spinner shows.</p>
</div>
<div class="feature-card">
<div class="feature-icon">🎨</div>
<h3>Pixel-perfect Output</h3>
<p>Full CSS support including flexbox, grid, and custom fonts. Your brand, your PDFs.</p>
</div>
<div class="feature-card">
<div class="feature-icon">📄</div>
<h3>Built-in Templates</h3>
<p>Invoice and receipt templates out of the box. Pass JSON data, get beautiful PDFs.</p>
</div>
<div class="feature-card">
<div class="feature-icon">🔧</div>
<h3>Dead-simple API</h3>
<p>REST API. JSON in, PDF out. Works with curl, Python, Node, Go — anything with HTTP.</p>
</div>
<div class="feature-card">
<div class="feature-icon">📐</div>
<h3>Fully Configurable</h3>
<p>A4, Letter, custom sizes. Portrait or landscape. Headers, footers, and margins.</p>
</div>
<div class="feature-card">
<div class="feature-icon">🔒</div>
<h3>Secure by Default</h3>
<p>HTTPS only. Rate limiting. No data stored. PDFs stream directly — nothing touches disk.</p>
</div>
</div>
</div>
</section>
<section class="pricing" id="pricing">
<div class="container">
<h2 class="section-title">Simple, transparent pricing</h2>
<p class="section-sub">Start free. Upgrade when you're ready. No surprise charges.</p>
<div class="pricing-grid">
<div class="price-card">
<div class="price-name">Free</div>
<div class="price-amount">$0<span> /mo</span></div>
<div class="price-desc">Perfect for side projects and testing</div>
<ul class="price-features">
<li>100 PDFs per month</li>
<li>All conversion endpoints</li>
<li>All templates included</li>
<li>Rate limiting: 10 req/min</li>
</ul>
<button class="btn btn-secondary" style="width:100%" id="btn-signup-2">Get Free API Key</button>
</div>
<div class="price-card featured">
<div class="price-name">Pro</div>
<div class="price-amount">$9<span> /mo</span></div>
<div class="price-desc">For production apps and businesses</div>
<ul class="price-features">
<li>10,000 PDFs per month</li>
<li>All conversion endpoints</li>
<li>All templates included</li>
<li>Priority support</li>
</ul>
<button class="btn btn-primary" style="width:100%" id="btn-checkout">Get Started →</button>
</div>
</div>
</div>
</section>
<footer>
<div class="container">
<div class="footer-left">© 2026 DocFast. Fast PDF generation for developers.</div>
<div class="footer-links">
<a href="/docs">Docs</a>
<a href="/health">API Status</a>
</div>
</div>
</footer>
<!-- Signup Modal -->
<div class="modal-overlay" id="signupModal">
<div class="modal">
<button class="close" id="btn-close-signup">&times;</button>
<div id="signupInitial" class="active">
<h2>Get your free API key</h2>
<p>Enter your email to get started. No credit card required.</p>
<div class="signup-error" id="signupError"></div>
<input type="email" id="signupEmail" placeholder="your.email@example.com" style="width:100%;padding:12px;border:1px solid var(--border);background:var(--bg);color:var(--fg);border-radius:8px;font-size:0.9rem;margin-bottom:16px;" required>
<button class="btn btn-primary" style="width:100%" id="signupBtn">Generate API Key →</button>
<p style="margin-top:16px;color:var(--muted);font-size:0.8rem;text-align:center;">100 free PDFs/month • All endpoints included</p>
</div>
<div id="signupLoading">
<div class="spinner"></div>
<p style="color:var(--muted);margin:0">Generating your API key…</p>
</div>
<div id="signupResult">
<h2>🚀 You're in!</h2>
<div class="warning-box">
<span class="icon">⚠️</span>
<span>Save your API key now — we can't recover it later.</span>
</div>
<div class="key-box" id="apiKeyDisplay">
<span class="key-text" id="apiKeyText"></span>
<button class="copy-btn" id="copyBtn">Copy</button>
</div>
<p style="margin-top:20px;color:var(--muted);font-size:0.9rem;">100 free PDFs/month • <a href="/docs">Read the docs →</a></p>
</div>
</div>
</div>
<script src="/app.js"></script>
</body>
</html>

View file

@ -0,0 +1,560 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>DocFast — HTML & Markdown to PDF API</title>
<meta name="description" content="Convert HTML and Markdown to beautiful PDFs with a simple API call. Built-in invoice templates. Fast, reliable, developer-friendly.">
<meta property="og:title" content="DocFast — HTML & Markdown to PDF API">
<meta property="og:description" content="Convert HTML and Markdown to beautiful PDFs with a simple API call. Fast, reliable, developer-friendly.">
<meta property="og:type" content="website">
<meta property="og:url" content="https://docfast.dev">
<meta property="og:image" content="https://docfast.dev/og-image.png">
<meta name="twitter:card" content="summary_large_image">
<meta name="twitter:title" content="DocFast — HTML & Markdown to PDF API">
<meta name="twitter:description" content="Convert HTML and Markdown to beautiful PDFs with a simple API call.">
<link rel="canonical" href="https://docfast.dev">
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<script type="application/ld+json">
{"@context":"https://schema.org","@type":"SoftwareApplication","name":"DocFast","url":"https://docfast.dev","applicationCategory":"DeveloperApplication","operatingSystem":"Web","description":"Convert HTML and Markdown to beautiful PDFs with a simple API call. Fast, reliable, developer-friendly.","offers":[{"@type":"Offer","price":"0","priceCurrency":"EUR","name":"Free","description":"100 PDFs/month"},{"@type":"Offer","price":"9","priceCurrency":"EUR","name":"Pro","description":"5,000 PDFs per month","billingIncrement":"P1M"}]}
</script>
<link rel="icon" href="data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'><text y='.9em' font-size='90'>⚡</text></svg>">
<style>
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
--bg: #0b0d11; --bg2: #12151c; --fg: #e4e7ed; --muted: #7a8194;
--accent: #34d399; --accent-hover: #5eead4; --accent-glow: rgba(52,211,153,0.12);
--accent2: #60a5fa; --card: #151922; --border: #1e2433;
--radius: 12px; --radius-lg: 16px;
}
body { font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; background: var(--bg); color: var(--fg); line-height: 1.65; -webkit-font-smoothing: antialiased; }
a { color: var(--accent); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--accent-hover); }
.container { max-width: 1020px; margin: 0 auto; padding: 0 24px; }
/* Nav */
nav { padding: 20px 0; border-bottom: 1px solid var(--border); }
nav .container { display: flex; align-items: center; justify-content: space-between; }
.logo { font-size: 1.25rem; font-weight: 700; letter-spacing: -0.5px; color: var(--fg); display: flex; align-items: center; gap: 8px; }
.logo span { color: var(--accent); }
.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-links a { color: var(--muted); font-size: 0.9rem; font-weight: 500; }
.nav-links a:hover { color: var(--fg); }
/* Hero */
.hero { padding: 100px 0 80px; text-align: center; position: relative; }
.hero::before { content: ''; position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 600px; height: 400px; background: radial-gradient(ellipse, var(--accent-glow) 0%, transparent 70%); pointer-events: none; }
.badge { display: inline-block; padding: 6px 16px; border-radius: 50px; font-size: 0.8rem; font-weight: 600; color: var(--accent); background: rgba(52,211,153,0.08); border: 1px solid rgba(52,211,153,0.15); margin-bottom: 24px; letter-spacing: 0.3px; }
.hero h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); font-weight: 800; margin-bottom: 20px; letter-spacing: -1.5px; line-height: 1.15; }
.hero h1 .gradient { background: linear-gradient(135deg, var(--accent) 0%, var(--accent2) 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.hero p { font-size: 1.2rem; color: var(--muted); max-width: 560px; margin: 0 auto 40px; line-height: 1.7; }
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 28px; border-radius: 10px; font-size: 0.95rem; font-weight: 600; transition: all 0.2s; border: none; cursor: pointer; text-decoration: none; }
.btn-primary { background: var(--accent); color: #0b0d11; }
.btn-primary:hover { background: var(--accent-hover); text-decoration: none; transform: translateY(-1px); box-shadow: 0 8px 24px rgba(52,211,153,0.2); }
.btn-secondary { border: 1px solid var(--border); color: var(--fg); background: transparent; }
.btn-secondary:hover { border-color: var(--muted); text-decoration: none; background: rgba(255,255,255,0.03); }
.btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }
/* Code block */
.code-section { margin: 56px auto 0; max-width: 660px; text-align: left; display: flex; flex-direction: column; }
.code-header { display: flex; align-items: center; justify-content: space-between; padding: 12px 20px; background: #1a1f2b; border: 1px solid var(--border); border-bottom: none; border-radius: var(--radius) var(--radius) 0 0; }
.code-dots { display: flex; gap: 6px; }
.code-dots span { width: 10px; height: 10px; border-radius: 50%; }
.code-dots span:nth-child(1) { background: #f87171; }
.code-dots span:nth-child(2) { background: #fbbf24; }
.code-dots span:nth-child(3) { background: #34d399; }
.code-label { font-size: 0.75rem; color: var(--muted); font-family: monospace; }
.code-block { background: var(--card); border: 1px solid var(--border); border-radius: 0 0 var(--radius) var(--radius); padding: 24px 28px; font-family: 'SF Mono', 'Fira Code', 'Cascadia Code', monospace; font-size: 0.85rem; line-height: 1.85; overflow-x: auto; }
.code-block .c { color: #4a5568; }
.code-block .s { color: var(--accent); }
.code-block .k { color: var(--accent2); }
.code-block .f { color: #c084fc; }
/* Sections */
section { position: relative; }
.section-title { text-align: center; font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 700; letter-spacing: -0.5px; margin-bottom: 12px; }
.section-sub { text-align: center; color: var(--muted); margin-bottom: 48px; font-size: 1.05rem; }
/* Features */
.features { padding: 80px 0; }
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 768px) { .features-grid { grid-template-columns: 1fr; } }
.feature-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px; transition: border-color 0.2s, transform 0.2s; }
.feature-card:hover { border-color: rgba(52,211,153,0.3); transform: translateY(-2px); }
.feature-icon { width: 40px; height: 40px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; margin-bottom: 16px; background: rgba(52,211,153,0.08); }
.feature-card h3 { font-size: 1rem; font-weight: 600; margin-bottom: 8px; }
.feature-card p { color: var(--muted); font-size: 0.9rem; line-height: 1.6; }
/* Pricing */
.pricing { padding: 80px 0; }
.pricing-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; max-width: 700px; margin: 0 auto; }
@media (max-width: 640px) { .pricing-grid { grid-template-columns: 1fr; } }
.price-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 36px; position: relative; }
.price-card.featured { border-color: var(--accent); }
.price-card.featured::before { content: 'POPULAR'; position: absolute; top: -10px; right: 20px; background: var(--accent); color: #0b0d11; font-size: 0.65rem; font-weight: 700; padding: 3px 10px; border-radius: 50px; letter-spacing: 0.5px; }
.price-name { font-size: 0.9rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 8px; }
.price-amount { font-size: 3rem; font-weight: 800; letter-spacing: -2px; margin-bottom: 4px; }
.price-amount span { font-size: 1rem; color: var(--muted); font-weight: 400; letter-spacing: 0; }
.price-desc { color: var(--muted); font-size: 0.85rem; margin-bottom: 24px; padding-bottom: 24px; border-bottom: 1px solid var(--border); }
.price-features { list-style: none; margin-bottom: 28px; }
.price-features li { padding: 5px 0; color: var(--muted); font-size: 0.9rem; display: flex; align-items: center; gap: 10px; }
.price-features li::before { content: "✓"; color: var(--accent); font-weight: 700; font-size: 0.85rem; flex-shrink: 0; }
/* Trust */
.trust { padding: 60px 0 40px; }
.trust-grid { display: flex; gap: 40px; justify-content: center; flex-wrap: wrap; }
.trust-item { text-align: center; flex: 1; min-width: 160px; max-width: 220px; }
.trust-num { font-size: 2rem; font-weight: 800; color: var(--accent); letter-spacing: -1px; }
.trust-label { font-size: 0.85rem; color: var(--muted); margin-top: 4px; }
/* EU Hosting */
.eu-hosting { padding: 40px 0 80px; }
.eu-badge { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 32px; max-width: 600px; margin: 0 auto; display: flex; align-items: center; gap: 20px; transition: border-color 0.2s, transform 0.2s; }
.eu-badge:hover { border-color: rgba(52,211,153,0.3); transform: translateY(-2px); }
.eu-icon { font-size: 3rem; flex-shrink: 0; }
.eu-content h3 { font-size: 1.4rem; font-weight: 700; margin-bottom: 8px; color: var(--fg); }
.eu-content p { color: var(--muted); font-size: 0.95rem; line-height: 1.6; margin: 0; }
@media (max-width: 640px) {
.eu-badge { flex-direction: column; text-align: center; gap: 16px; padding: 24px; }
.eu-icon { font-size: 2.5rem; }
}
/* Footer */
footer { padding: 40px 0; border-top: 1px solid var(--border); }
footer .container { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.footer-left { color: var(--muted); font-size: 0.85rem; }
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-links a { color: var(--muted); font-size: 0.85rem; }
.footer-links a:hover { color: var(--fg); }
/* Modal */
.modal-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.75); backdrop-filter: blur(4px); z-index: 100; align-items: center; justify-content: center; }
.modal-overlay.active { display: flex; }
.modal { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 40px; max-width: 460px; width: 90%; position: relative; }
.modal h2 { margin-bottom: 8px; font-size: 1.4rem; font-weight: 700; }
.modal p { color: var(--muted); margin-bottom: 24px; font-size: 0.95rem; }
.modal .close { position: absolute; top: 16px; right: 20px; color: var(--muted); font-size: 1.4rem; cursor: pointer; background: none; border: none; transition: color 0.2s; }
.modal .close:hover { color: var(--fg); }
/* Signup states */
#signupInitial, #signupLoading, #signupVerify, #signupResult { display: none; }
#signupInitial.active { display: block; }
#signupLoading.active { display: flex; flex-direction: column; align-items: center; padding: 40px 0; text-align: center; }
#signupResult.active { display: block; }
#signupVerify.active { display: block; }
.spinner { width: 36px; height: 36px; border: 3px solid var(--border); border-top-color: var(--accent); border-radius: 50%; animation: spin 0.7s linear infinite; margin-bottom: 16px; }
@keyframes spin { to { transform: rotate(360deg); } }
.key-box { background: var(--bg); border: 1px solid var(--accent); border-radius: 8px; padding: 16px; font-family: monospace; font-size: 0.82rem; word-break: break-all; margin: 16px 0 12px; position: relative; cursor: pointer; transition: background 0.2s; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.key-box:hover { background: #151922; }
.key-text { flex: 1; }
.copy-btn { background: rgba(52,211,153,0.1); border: 1px solid rgba(52,211,153,0.2); color: var(--accent); border-radius: 6px; padding: 6px 14px; font-size: 0.8rem; font-weight: 600; cursor: pointer; white-space: nowrap; transition: all 0.2s; }
.copy-btn:hover { background: rgba(52,211,153,0.2); }
.warning-box { background: rgba(251,191,36,0.06); border: 1px solid rgba(251,191,36,0.15); border-radius: 8px; padding: 12px 16px; font-size: 0.85rem; color: #fbbf24; display: flex; align-items: flex-start; gap: 10px; margin-bottom: 16px; }
.warning-box .icon { font-size: 1.1rem; flex-shrink: 0; }
.signup-error { color: #f87171; font-size: 0.85rem; margin-bottom: 16px; display: none; padding: 10px 14px; background: rgba(248,113,113,0.06); border: 1px solid rgba(248,113,113,0.15); border-radius: 8px; }
/* Responsive */
@media (max-width: 640px) {
.hero { padding: 72px 0 56px; }
.nav-links { gap: 16px; }
.code-block {
font-size: 0.75rem;
padding: 18px 16px;
overflow-x: hidden;
word-wrap: break-word;
white-space: pre-wrap;
}
.trust-grid { gap: 24px; }
.footer-links { gap: 16px; }
footer .container { flex-direction: column; text-align: center; }
}
/* Fix mobile terminal gaps at 375px and smaller */
@media (max-width: 375px) {
.container {
padding: 0 12px !important;
}
.code-section {
margin: 32px auto 0;
max-width: calc(100vw - 24px) !important;
}
.code-header {
padding: 8px 12px;
}
.code-block {
padding: 12px !important;
font-size: 0.7rem;
}
.hero {
padding: 56px 0 40px;
}
}
/* Additional mobile overflow fixes */
html, body {
overflow-x: hidden !important;
max-width: 100vw !important;
}
@media (max-width: 768px) {
* {
max-width: 100% !important;
}
body {
overflow-x: hidden !important;
}
.container {
overflow-x: hidden !important;
max-width: 100vw !important;
padding: 0 16px !important;
}
.code-section {
max-width: calc(100vw - 32px) !important;
overflow: hidden !important;
display: flex !important;
flex-direction: column !important;
white-space: normal !important;
}
.code-block {
overflow-x: hidden !important;
white-space: pre-wrap !important;
word-break: break-all !important;
max-width: 100% !important;
box-sizing: border-box !important;
}
.trust-grid {
justify-content: center !important;
overflow-x: hidden !important;
max-width: 100% !important;
}
/* Force any wide elements to fit */
pre, code, .code-block {
max-width: calc(100vw - 32px) !important;
overflow-wrap: break-word !important;
word-break: break-all !important;
white-space: pre-wrap !important;
overflow-x: hidden !important;
}
.code-section {
max-width: calc(100vw - 32px) !important;
overflow-x: hidden !important;
white-space: normal !important;
}
}
/* Recovery modal states */
#recoverInitial, #recoverLoading, #recoverVerify, #recoverResult { display: none; }
#recoverInitial.active { display: block; }
#recoverLoading.active { display: flex; flex-direction: column; align-items: center; padding: 40px 0; text-align: center; }
#recoverResult.active { display: block; }
#recoverVerify.active { display: block; }
/* Email change modal states */
#emailChangeInitial, #emailChangeLoading, #emailChangeVerify, #emailChangeResult { display: none; }
#emailChangeInitial.active { display: block; }
#emailChangeLoading.active { display: flex; flex-direction: column; align-items: center; padding: 40px 0; text-align: center; }
#emailChangeResult.active { display: block; }
#emailChangeVerify.active { display: block; }
/* Focus-visible for accessibility */
.btn:focus-visible, a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
</style>
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap" rel="stylesheet">
</head>
<body>
<nav aria-label="Main navigation">
<div class="container">
<a href="/" class="logo">⚡ Doc<span>Fast</span></a>
<div class="nav-links">
<a href="#features">Features</a>
<a href="#pricing">Pricing</a>
<a href="/docs">Docs</a>
</div>
</div>
</nav>
<main class="hero" role="main">
<div class="container">
<div class="badge">🚀 Simple PDF API for Developers</div>
<h1>HTML to <span class="gradient">PDF</span><br>in one API call</h1>
<p>Convert HTML, Markdown, or URLs to pixel-perfect PDFs. Built-in templates for invoices &amp; receipts. No headless browser headaches.</p>
<div class="hero-actions">
<button class="btn btn-primary" id="btn-signup">Get Free API Key →</button>
<a href="/docs" class="btn btn-secondary">Read the Docs</a>
</div>
<p style="margin-top:16px;color:var(--muted);font-size:0.9rem;">Already have an account? <a href="#" class="open-recover" style="color:var(--accent);">Lost your API key? Recover it →</a></p>
<div class="code-section">
<div class="code-header">
<div class="code-dots" aria-hidden="true"><span></span><span></span><span></span></div>
<span class="code-label">terminal</span>
</div>
<div class="code-block">
<span class="c"># Convert HTML to PDF — it's that simple</span>
<span class="k">curl</span> <span class="f">-X POST</span> https://docfast.dev/v1/convert/html \
-H <span class="s">"Authorization: Bearer YOUR_KEY"</span> \
-H <span class="s">"Content-Type: application/json"</span> \
-d <span class="s">'{"html": "&lt;h1&gt;Hello World&lt;/h1&gt;&lt;p&gt;Your first PDF&lt;/p&gt;"}'</span> \
-o <span class="f">output.pdf</span>
</div>
</div>
</div>
</main>
<section class="trust">
<div class="container">
<div class="trust-grid">
<div class="trust-item">
<div class="trust-num">&lt;1s</div>
<div class="trust-label">Avg. generation time</div>
</div>
<div class="trust-item">
<div class="trust-num">99.5%</div>
<div class="trust-label">Uptime SLA</div>
</div>
<div class="trust-item">
<div class="trust-num">HTTPS</div>
<div class="trust-label">Encrypted &amp; secure</div>
</div>
<div class="trust-item">
<div class="trust-num">0 bytes</div>
<div class="trust-label">Data stored on disk</div>
</div>
</div>
</div>
</section>
<section class="eu-hosting">
<div class="container">
<div class="eu-badge">
<div class="eu-icon">🇪🇺</div>
<div class="eu-content">
<h3>Hosted in the EU</h3>
<p>Your data never leaves the EU • GDPR Compliant • Hetzner Germany (Nuremberg)</p>
</div>
</div>
</div>
</section>
<section class="features" id="features">
<div class="container">
<h2 class="section-title">Everything you need</h2>
<p class="section-sub">A complete PDF generation API. No SDKs, no dependencies, no setup.</p>
<div class="features-grid">
<div class="feature-card">
<div class="feature-icon" aria-hidden="true">⚡</div>
<h3>Sub-second Speed</h3>
<p>Persistent browser pool — no cold starts. Your PDFs are ready before your spinner shows.</p>
</div>
<div class="feature-card">
<div class="feature-icon" aria-hidden="true">🎨</div>
<h3>Pixel-perfect Output</h3>
<p>Full CSS support including flexbox, grid, and custom fonts. Your brand, your PDFs.</p>
</div>
<div class="feature-card">
<div class="feature-icon" aria-hidden="true">📄</div>
<h3>Built-in Templates</h3>
<p>Invoice and receipt templates out of the box. Pass JSON data, get beautiful PDFs.</p>
</div>
<div class="feature-card">
<div class="feature-icon" aria-hidden="true">🔧</div>
<h3>Dead-simple API</h3>
<p>REST API. JSON in, PDF out. Works with curl, Python, Node, Go — anything with HTTP.</p>
</div>
<div class="feature-card">
<div class="feature-icon" aria-hidden="true">📐</div>
<h3>Fully Configurable</h3>
<p>A4, Letter, custom sizes. Portrait or landscape. Headers, footers, and margins.</p>
</div>
<div class="feature-card">
<div class="feature-icon" aria-hidden="true">🔒</div>
<h3>Secure by Default</h3>
<p>HTTPS only. Rate limiting. No data stored. PDFs stream directly — nothing touches disk.</p>
</div>
</div>
</div>
</section>
<section class="pricing" id="pricing">
<div class="container">
<h2 class="section-title">Simple, transparent pricing</h2>
<p class="section-sub">Start free. Upgrade when you're ready. No surprise charges.</p>
<div class="pricing-grid">
<div class="price-card">
<div class="price-name">Free</div>
<div class="price-amount">€0<span> /mo</span></div>
<div class="price-desc">Perfect for side projects and testing</div>
<ul class="price-features">
<li>100 PDFs per month</li>
<li>All conversion endpoints</li>
<li>All templates included</li>
<li>Rate limiting: 10 req/min</li>
</ul>
<button class="btn btn-secondary" style="width:100%" id="btn-signup-2">Get Free API Key</button>
</div>
<div class="price-card featured">
<div class="price-name">Pro</div>
<div class="price-amount">€9<span> /mo</span></div>
<div class="price-desc">For production apps and businesses</div>
<ul class="price-features">
<li>5,000 PDFs per month</li>
<li>All conversion endpoints</li>
<li>All templates included</li>
<li>Priority support</li>
</ul>
<button class="btn btn-primary" style="width:100%" id="btn-checkout">Get Started →</button>
</div>
</div>
</div>
</section>
<footer aria-label="Footer">
<div class="container">
<div class="footer-left">© 2026 DocFast. Fast PDF generation for developers.</div>
<div class="footer-links">
<a href="/">Home</a>
<a href="/docs">Docs</a>
<a href="/health">API Status</a>
<a href="/#change-email" class="open-email-change">Change Email</a>
<a href="/impressum">Impressum</a>
<a href="/privacy">Privacy Policy</a>
<a href="/terms">Terms of Service</a>
</div>
</div>
</footer>
<!-- Signup Modal -->
<div class="modal-overlay" id="signupModal" role="dialog" aria-label="Sign up for API key">
<div class="modal">
<button class="close" id="btn-close-signup">&times;</button>
<div id="signupInitial" class="active">
<h2>Get your free API key</h2>
<p>Enter your email to get started. No credit card required.</p>
<div class="signup-error" id="signupError"></div>
<input type="email" id="signupEmail" placeholder="your.email@example.com" style="width:100%;padding:12px;border:1px solid var(--border);background:var(--bg);color:var(--fg);border-radius:8px;font-size:0.9rem;margin-bottom:16px;" required>
<button class="btn btn-primary" style="width:100%" id="signupBtn">Generate API Key →</button>
<p style="margin-top:16px;color:var(--muted);font-size:0.8rem;text-align:center;">100 free PDFs/month • All endpoints included<br><a href="#" class="open-recover" style="color:var(--muted)">Lost your API key? Recover it →</a></p>
</div>
<div id="signupLoading">
<div class="spinner"></div>
<p style="color:var(--muted);margin:0">Generating your API key…</p>
</div>
<div id="signupVerify">
<h2>Enter verification code</h2>
<p>We sent a 6-digit code to <strong id="verifyEmailDisplay"></strong></p>
<div class="signup-error" id="verifyError"></div>
<input type="text" id="verifyCode" placeholder="123456" maxlength="6" pattern="[0-9]{6}" inputmode="numeric" style="width:100%;padding:14px;border:1px solid var(--border);background:var(--bg);color:var(--fg);border-radius:8px;font-size:1.4rem;letter-spacing:0.3em;text-align:center;margin-bottom:16px;font-family:monospace;" required>
<button class="btn btn-primary" style="width:100%" id="verifyBtn">Verify →</button>
<p style="margin-top:16px;color:var(--muted);font-size:0.8rem;text-align:center;">Code expires in 15 minutes</p>
</div>
<div id="signupResult" aria-live="polite">
<h2>🚀 Your API key is ready!</h2>
<div class="warning-box">
<span class="icon">⚠️</span>
<span>Save your API key securely. Lost it? <a href="#" class="open-recover" style="color:#fbbf24">Recover via email</a></span>
</div>
<div style="background:var(--bg);border:1px solid var(--accent);border-radius:8px;padding:14px;font-family:monospace;font-size:0.82rem;word-break:break-all;margin:16px 0;position:relative;">
<span id="apiKeyText"></span>
<button onclick="copyKey()" id="copyBtn" style="position:absolute;top:8px;right:8px;background:var(--accent);color:var(--bg);border:none;border-radius:4px;padding:4px 12px;cursor:pointer;font-size:0.8rem;">Copy</button>
</div>
<p style="margin-top:20px;color:var(--muted);font-size:0.9rem;">100 free PDFs/month • <a href="/docs">Read the docs →</a></p>
</div>
</div>
</div>
<!-- Recovery Modal -->
<div class="modal-overlay" id="recoverModal" role="dialog" aria-label="Recover API key">
<div class="modal">
<button class="close" id="btn-close-recover">&times;</button>
<div id="recoverInitial" class="active">
<h2>Recover your API key</h2>
<p>Enter the email you signed up with. We'll send a verification code.</p>
<div class="signup-error" id="recoverError"></div>
<input type="email" id="recoverEmailInput" placeholder="your.email@example.com" style="width:100%;padding:12px;border:1px solid var(--border);background:var(--bg);color:var(--fg);border-radius:8px;font-size:0.9rem;margin-bottom:16px;" required>
<button class="btn btn-primary" style="width:100%" id="recoverBtn">Send Verification Code →</button>
<p style="margin-top:16px;color:var(--muted);font-size:0.8rem;text-align:center;">Your key will be shown here after verification — never sent via email</p>
</div>
<div id="recoverLoading">
<div class="spinner"></div>
<p style="color:var(--muted);margin:0">Sending verification code…</p>
</div>
<div id="recoverVerify">
<h2>Enter verification code</h2>
<p>We sent a 6-digit code to <strong id="recoverEmailDisplay"></strong></p>
<div class="signup-error" id="recoverVerifyError"></div>
<input type="text" id="recoverCode" placeholder="123456" maxlength="6" pattern="[0-9]{6}" inputmode="numeric" style="width:100%;padding:14px;border:1px solid var(--border);background:var(--bg);color:var(--fg);border-radius:8px;font-size:1.4rem;letter-spacing:0.3em;text-align:center;margin-bottom:16px;font-family:monospace;" required>
<button class="btn btn-primary" style="width:100%" id="recoverVerifyBtn">Verify →</button>
<p style="margin-top:16px;color:var(--muted);font-size:0.8rem;text-align:center;">Code expires in 15 minutes</p>
</div>
<div id="recoverResult" aria-live="polite">
<h2>🔑 Your API key</h2>
<div class="warning-box">
<span class="icon">⚠️</span>
<span>Save your API key securely. This is the only time it will be shown.</span>
</div>
<div style="background:var(--bg);border:1px solid var(--accent);border-radius:8px;padding:14px;font-family:monospace;font-size:0.82rem;word-break:break-all;margin:16px 0;position:relative;">
<span id="recoveredKeyText"></span>
<button onclick="copyRecoveredKey()" id="copyRecoveredBtn" style="position:absolute;top:8px;right:8px;background:var(--accent);color:var(--bg);border:none;border-radius:4px;padding:4px 12px;cursor:pointer;font-size:0.8rem;">Copy</button>
</div>
<p style="margin-top:20px;color:var(--muted);font-size:0.9rem;"><a href="/docs">Read the docs →</a></p>
</div>
</div>
</div>
<!-- Email Change Modal -->
<div class="modal-overlay" id="emailChangeModal" role="dialog" aria-label="Change email">
<div class="modal">
<button class="close" id="btn-close-email-change">&times;</button>
<div id="emailChangeInitial" class="active">
<h2>Change your email</h2>
<p>Enter your API key and new email address.</p>
<div class="signup-error" id="emailChangeError"></div>
<input type="text" id="emailChangeApiKey" placeholder="Your API key (df_free_... or df_pro_...)" style="width:100%;padding:12px;border:1px solid var(--border);background:var(--bg);color:var(--fg);border-radius:8px;font-size:0.9rem;margin-bottom:12px;font-family:monospace;" required>
<input type="email" id="emailChangeNewEmail" placeholder="new.email@example.com" style="width:100%;padding:12px;border:1px solid var(--border);background:var(--bg);color:var(--fg);border-radius:8px;font-size:0.9rem;margin-bottom:16px;" required>
<button class="btn btn-primary" style="width:100%" id="emailChangeBtn">Send Verification Code →</button>
<p style="margin-top:16px;color:var(--muted);font-size:0.8rem;text-align:center;">A verification code will be sent to your new email</p>
</div>
<div id="emailChangeLoading">
<div class="spinner"></div>
<p style="color:var(--muted);margin:0">Sending verification code…</p>
</div>
<div id="emailChangeVerify">
<h2>Enter verification code</h2>
<p>We sent a 6-digit code to <strong id="emailChangeEmailDisplay"></strong></p>
<div class="signup-error" id="emailChangeVerifyError"></div>
<input type="text" id="emailChangeCode" placeholder="123456" maxlength="6" pattern="[0-9]{6}" inputmode="numeric" style="width:100%;padding:14px;border:1px solid var(--border);background:var(--bg);color:var(--fg);border-radius:8px;font-size:1.4rem;letter-spacing:0.3em;text-align:center;margin-bottom:16px;font-family:monospace;" required>
<button class="btn btn-primary" style="width:100%" id="emailChangeVerifyBtn">Verify →</button>
<p style="margin-top:16px;color:var(--muted);font-size:0.8rem;text-align:center;">Code expires in 15 minutes</p>
</div>
<div id="emailChangeResult">
<h2>✅ Email updated!</h2>
<p>Your account email has been changed to <strong id="emailChangeNewDisplay"></strong></p>
<p style="margin-top:20px;color:var(--muted);font-size:0.9rem;"><a href="/docs">Read the docs →</a></p>
</div>
</div>
</div>
<script src="/app.js"></script>
</body>
</html>

Binary file not shown.

After

Width:  |  Height:  |  Size: 39 KiB

View file

@ -0,0 +1,13 @@
<svg xmlns="http://www.w3.org/2000/svg" width="1200" height="630" viewBox="0 0 1200 630">
<rect width="1200" height="630" fill="#0b0d11"/>
<rect x="0" y="0" width="1200" height="630" fill="url(#glow)" opacity="0.3"/>
<defs>
<radialGradient id="glow" cx="50%" cy="50%" r="50%">
<stop offset="0%" stop-color="#34d399" stop-opacity="0.2"/>
<stop offset="100%" stop-color="#0b0d11" stop-opacity="0"/>
</radialGradient>
</defs>
<text x="600" y="270" text-anchor="middle" font-family="Inter, -apple-system, sans-serif" font-size="80" font-weight="800" fill="#e4e7ed">⚡ Doc<tspan fill="#34d399">Fast</tspan></text>
<text x="600" y="370" text-anchor="middle" font-family="Inter, -apple-system, sans-serif" font-size="36" font-weight="400" fill="#7a8194">HTML &amp; Markdown to PDF API</text>
<rect x="400" y="420" width="400" height="4" rx="2" fill="#34d399" opacity="0.5"/>
</svg>

After

Width:  |  Height:  |  Size: 910 B

View file

@ -0,0 +1,422 @@
{
"openapi": "3.0.3",
"info": {
"title": "DocFast API",
"version": "1.0.0",
"description": "Convert HTML, Markdown, and URLs to pixel-perfect PDFs. Built-in invoice & receipt templates.\n\n## Authentication\nAll conversion and template endpoints require an API key via `Authorization: Bearer <key>` or `X-API-Key: <key>` header.\n\n## Rate Limits\n- Free tier: 100 PDFs/month, 10 req/min\n- Pro tier: 10,000 PDFs/month, 30 req/min\n\n## Getting Started\n1. Sign up at [docfast.dev](https://docfast.dev) or via `POST /v1/signup/free`\n2. Verify your email with the 6-digit code\n3. Use your API key to convert documents",
"contact": { "name": "DocFast", "url": "https://docfast.dev" }
},
"servers": [{ "url": "https://docfast.dev", "description": "Production" }],
"tags": [
{ "name": "Conversion", "description": "Convert HTML, Markdown, or URLs to PDF" },
{ "name": "Templates", "description": "Built-in document templates" },
{ "name": "Account", "description": "Signup, key recovery, and email management" },
{ "name": "Billing", "description": "Stripe-powered subscription management" },
{ "name": "System", "description": "Health checks and usage stats" }
],
"components": {
"securitySchemes": {
"BearerAuth": { "type": "http", "scheme": "bearer", "description": "API key as Bearer token" },
"ApiKeyHeader": { "type": "apiKey", "in": "header", "name": "X-API-Key", "description": "API key via X-API-Key header" }
},
"schemas": {
"PdfOptions": {
"type": "object",
"properties": {
"format": { "type": "string", "enum": ["A4", "Letter", "Legal", "A3", "A5", "Tabloid"], "default": "A4", "description": "Page size" },
"landscape": { "type": "boolean", "default": false, "description": "Landscape orientation" },
"margin": {
"type": "object",
"properties": {
"top": { "type": "string", "example": "20mm" },
"bottom": { "type": "string", "example": "20mm" },
"left": { "type": "string", "example": "15mm" },
"right": { "type": "string", "example": "15mm" }
}
},
"printBackground": { "type": "boolean", "default": true, "description": "Print background graphics" },
"filename": { "type": "string", "default": "document.pdf", "description": "Suggested filename for the PDF" }
}
},
"Error": {
"type": "object",
"properties": {
"error": { "type": "string", "description": "Error message" }
}
}
}
},
"paths": {
"/v1/convert/html": {
"post": {
"tags": ["Conversion"],
"summary": "Convert HTML to PDF",
"description": "Renders HTML content as a PDF. Supports full CSS including flexbox, grid, and custom fonts. Bare HTML fragments are auto-wrapped.",
"security": [{ "BearerAuth": [] }, { "ApiKeyHeader": [] }],
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"allOf": [
{
"type": "object",
"required": ["html"],
"properties": {
"html": { "type": "string", "description": "HTML content to convert", "example": "<h1>Hello World</h1><p>Your first PDF</p>" },
"css": { "type": "string", "description": "Optional CSS to inject (for HTML fragments)" }
}
},
{ "$ref": "#/components/schemas/PdfOptions" }
]
}
}
}
},
"responses": {
"200": { "description": "PDF file", "content": { "application/pdf": { "schema": { "type": "string", "format": "binary" } } } },
"400": { "description": "Invalid request", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Error" } } } },
"401": { "description": "Missing or invalid API key" },
"415": { "description": "Unsupported Content-Type" },
"429": { "description": "Rate limit exceeded or server busy" }
}
}
},
"/v1/convert/markdown": {
"post": {
"tags": ["Conversion"],
"summary": "Convert Markdown to PDF",
"description": "Converts Markdown content to a beautifully styled PDF with syntax highlighting.",
"security": [{ "BearerAuth": [] }, { "ApiKeyHeader": [] }],
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"allOf": [
{
"type": "object",
"required": ["markdown"],
"properties": {
"markdown": { "type": "string", "description": "Markdown content to convert", "example": "# Hello World\n\nThis is **bold** and this is *italic*.\n\n- Item 1\n- Item 2" },
"css": { "type": "string", "description": "Optional custom CSS" }
}
},
{ "$ref": "#/components/schemas/PdfOptions" }
]
}
}
}
},
"responses": {
"200": { "description": "PDF file", "content": { "application/pdf": { "schema": { "type": "string", "format": "binary" } } } },
"400": { "description": "Invalid request" },
"401": { "description": "Missing or invalid API key" },
"429": { "description": "Rate limit exceeded" }
}
}
},
"/v1/convert/url": {
"post": {
"tags": ["Conversion"],
"summary": "Convert URL to PDF",
"description": "Fetches a URL and converts the rendered page to PDF. Only http/https URLs are supported. Private/reserved IPs are blocked (SSRF protection).",
"security": [{ "BearerAuth": [] }, { "ApiKeyHeader": [] }],
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"allOf": [
{
"type": "object",
"required": ["url"],
"properties": {
"url": { "type": "string", "format": "uri", "description": "URL to convert", "example": "https://example.com" },
"waitUntil": { "type": "string", "enum": ["load", "domcontentloaded", "networkidle0", "networkidle2"], "default": "networkidle0", "description": "When to consider navigation complete" }
}
},
{ "$ref": "#/components/schemas/PdfOptions" }
]
}
}
}
},
"responses": {
"200": { "description": "PDF file", "content": { "application/pdf": { "schema": { "type": "string", "format": "binary" } } } },
"400": { "description": "Invalid URL or DNS failure" },
"401": { "description": "Missing or invalid API key" },
"429": { "description": "Rate limit exceeded" }
}
}
},
"/v1/templates": {
"get": {
"tags": ["Templates"],
"summary": "List available templates",
"description": "Returns all available document templates with their field definitions.",
"security": [{ "BearerAuth": [] }, { "ApiKeyHeader": [] }],
"responses": {
"200": {
"description": "Template list",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"templates": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": { "type": "string", "example": "invoice" },
"name": { "type": "string", "example": "Invoice" },
"description": { "type": "string" },
"fields": { "type": "array", "items": { "type": "string" } }
}
}
}
}
}
}
}
}
}
}
},
"/v1/templates/{id}/render": {
"post": {
"tags": ["Templates"],
"summary": "Render a template to PDF",
"description": "Renders a template with the provided data and returns a PDF.",
"security": [{ "BearerAuth": [] }, { "ApiKeyHeader": [] }],
"parameters": [
{ "name": "id", "in": "path", "required": true, "schema": { "type": "string" }, "description": "Template ID (e.g., 'invoice', 'receipt')" }
],
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"data": { "type": "object", "description": "Template data fields", "example": { "company": "Acme Corp", "items": [{ "description": "Widget", "quantity": 5, "price": 9.99 }] } }
}
}
}
}
},
"responses": {
"200": { "description": "PDF file", "content": { "application/pdf": { "schema": { "type": "string", "format": "binary" } } } },
"404": { "description": "Template not found" }
}
}
},
"/v1/signup/free": {
"post": {
"tags": ["Account"],
"summary": "Request a free API key",
"description": "Sends a 6-digit verification code to your email. Use `/v1/signup/verify` to complete signup.",
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"type": "object",
"required": ["email"],
"properties": {
"email": { "type": "string", "format": "email", "example": "you@example.com" }
}
}
}
}
},
"responses": {
"200": {
"description": "Verification code sent",
"content": { "application/json": { "schema": { "type": "object", "properties": { "status": { "type": "string", "example": "verification_required" }, "message": { "type": "string" } } } } }
},
"409": { "description": "Email already registered" },
"429": { "description": "Too many signup attempts" }
}
}
},
"/v1/signup/verify": {
"post": {
"tags": ["Account"],
"summary": "Verify email and get API key",
"description": "Verify your email with the 6-digit code to receive your API key.",
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"type": "object",
"required": ["email", "code"],
"properties": {
"email": { "type": "string", "format": "email" },
"code": { "type": "string", "example": "123456", "description": "6-digit verification code" }
}
}
}
}
},
"responses": {
"200": {
"description": "API key issued",
"content": { "application/json": { "schema": { "type": "object", "properties": { "status": { "type": "string", "example": "verified" }, "apiKey": { "type": "string", "example": "df_free_abc123..." }, "tier": { "type": "string", "example": "free" } } } } }
},
"400": { "description": "Invalid code" },
"410": { "description": "Code expired" },
"429": { "description": "Too many attempts" }
}
}
},
"/v1/recover": {
"post": {
"tags": ["Account"],
"summary": "Request API key recovery",
"description": "Sends a verification code to your registered email. Returns the same response whether or not the email exists (prevents enumeration).",
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"type": "object",
"required": ["email"],
"properties": {
"email": { "type": "string", "format": "email" }
}
}
}
}
},
"responses": {
"200": { "description": "Recovery code sent (if account exists)" },
"429": { "description": "Too many recovery attempts" }
}
}
},
"/v1/recover/verify": {
"post": {
"tags": ["Account"],
"summary": "Verify recovery code and get API key",
"description": "Verify the recovery code to retrieve your API key. The key is shown only in the response — never sent via email.",
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"type": "object",
"required": ["email", "code"],
"properties": {
"email": { "type": "string", "format": "email" },
"code": { "type": "string", "example": "123456" }
}
}
}
}
},
"responses": {
"200": {
"description": "API key recovered",
"content": { "application/json": { "schema": { "type": "object", "properties": { "status": { "type": "string", "example": "recovered" }, "apiKey": { "type": "string" }, "tier": { "type": "string" } } } } }
},
"400": { "description": "Invalid code" },
"410": { "description": "Code expired" },
"429": { "description": "Too many attempts" }
}
}
},
"/v1/email-change": {
"post": {
"tags": ["Account"],
"summary": "Request email change",
"description": "Change the email associated with your API key. Sends a verification code to the new email address.",
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"type": "object",
"required": ["apiKey", "newEmail"],
"properties": {
"apiKey": { "type": "string", "description": "Your current API key" },
"newEmail": { "type": "string", "format": "email", "description": "New email address" }
}
}
}
}
},
"responses": {
"200": { "description": "Verification code sent to new email" },
"400": { "description": "Invalid input" },
"401": { "description": "Invalid API key" },
"409": { "description": "Email already in use" },
"429": { "description": "Too many attempts" }
}
}
},
"/v1/email-change/verify": {
"post": {
"tags": ["Account"],
"summary": "Verify email change",
"description": "Verify the code sent to your new email to complete the change.",
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"type": "object",
"required": ["apiKey", "newEmail", "code"],
"properties": {
"apiKey": { "type": "string" },
"newEmail": { "type": "string", "format": "email" },
"code": { "type": "string", "example": "123456" }
}
}
}
}
},
"responses": {
"200": { "description": "Email updated", "content": { "application/json": { "schema": { "type": "object", "properties": { "status": { "type": "string", "example": "updated" }, "newEmail": { "type": "string" } } } } } },
"400": { "description": "Invalid code" },
"401": { "description": "Invalid API key" },
"410": { "description": "Code expired" }
}
}
},
"/v1/billing/checkout": {
"post": {
"tags": ["Billing"],
"summary": "Start Pro subscription checkout",
"description": "Creates a Stripe Checkout session for the Pro plan ($9/mo). Returns a URL to redirect the user to.",
"responses": {
"200": { "description": "Checkout URL", "content": { "application/json": { "schema": { "type": "object", "properties": { "url": { "type": "string", "format": "uri" } } } } } },
"500": { "description": "Checkout creation failed" }
}
}
},
"/v1/usage": {
"get": {
"tags": ["System"],
"summary": "Get usage statistics",
"description": "Returns your API usage statistics for the current billing period.",
"security": [{ "BearerAuth": [] }, { "ApiKeyHeader": [] }],
"responses": {
"200": { "description": "Usage stats" }
}
}
},
"/health": {
"get": {
"tags": ["System"],
"summary": "Health check",
"description": "Returns service health status. No authentication required.",
"responses": {
"200": { "description": "Service is healthy" }
}
}
}
}
}

View file

@ -0,0 +1,222 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="icon" href="data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'><text y='.9em' font-size='90'>⚡</text></svg>">
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap" rel="stylesheet">
<title>Privacy Policy — DocFast</title>
<meta name="description" content="Privacy policy for DocFast API service - GDPR compliant data protection information.">
<link rel="canonical" href="https://docfast.dev/privacy">
<style>
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
--bg: #0b0d11; --bg2: #12151c; --fg: #e4e7ed; --muted: #7a8194;
--accent: #34d399; --accent-hover: #5eead4; --accent-glow: rgba(52,211,153,0.12);
--accent2: #60a5fa; --card: #151922; --border: #1e2433;
--radius: 12px; --radius-lg: 16px;
}
body { font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; background: var(--bg); color: var(--fg); line-height: 1.65; -webkit-font-smoothing: antialiased; }
a { color: var(--accent); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--accent-hover); }
.container { max-width: 1020px; margin: 0 auto; padding: 0 24px; }
/* Nav */
nav { padding: 20px 0; border-bottom: 1px solid var(--border); }
nav .container { display: flex; align-items: center; justify-content: space-between; }
.logo { font-size: 1.25rem; font-weight: 700; letter-spacing: -0.5px; color: var(--fg); display: flex; align-items: center; gap: 8px; text-decoration: none; }
.logo:hover { color: var(--fg); }
.logo span { color: var(--accent); }
.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-links a { color: var(--muted); font-size: 0.9rem; font-weight: 500; }
.nav-links a:hover { color: var(--fg); }
/* Footer */
footer { padding: 40px 0; border-top: 1px solid var(--border); }
footer .container { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.footer-left { color: var(--muted); font-size: 0.85rem; }
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-links a { color: var(--muted); font-size: 0.85rem; }
.footer-links a:hover { color: var(--fg); }
/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 28px; border-radius: 10px; font-size: 0.95rem; font-weight: 600; transition: all 0.2s; border: none; cursor: pointer; text-decoration: none; }
.btn-primary { background: var(--accent); color: #0b0d11; }
.btn-primary:hover { background: var(--accent-hover); text-decoration: none; transform: translateY(-1px); box-shadow: 0 8px 24px rgba(52,211,153,0.2); }
.btn-secondary { border: 1px solid var(--border); color: var(--fg); background: transparent; }
.btn-secondary:hover { border-color: var(--muted); text-decoration: none; background: rgba(255,255,255,0.03); }
.btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }
.btn:focus-visible, a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
/* Responsive base */
@media (max-width: 640px) {
.nav-links { gap: 16px; }
.footer-links { gap: 16px; }
footer .container { flex-direction: column; text-align: center; }
}
.container { max-width: 800px; margin: 0 auto; padding: 0 24px; }
/* Legal page overrides */
.container { max-width: 800px; }
main { padding: 60px 0 80px; }
h1 { font-size: 2.5rem; font-weight: 800; margin-bottom: 16px; letter-spacing: -1px; }
h2 { font-size: 1.5rem; font-weight: 700; margin: 32px 0 16px; color: var(--accent); }
h3 { font-size: 1.2rem; font-weight: 600; margin: 24px 0 12px; }
p { margin-bottom: 16px; line-height: 1.7; }
ul { margin-bottom: 16px; padding-left: 24px; }
li { margin-bottom: 8px; line-height: 1.7; }
.highlight { background: rgba(52,211,153,0.08); border: 1px solid rgba(52,211,153,0.15); border-radius: 8px; padding: 16px; margin: 24px 0; color: var(--accent); font-size: 0.9rem; }
.info { background: rgba(96,165,250,0.08); border: 1px solid rgba(96,165,250,0.15); border-radius: 8px; padding: 16px; margin: 24px 0; color: #60a5fa; font-size: 0.9rem; }
.warning { background: rgba(251,191,36,0.08); border: 1px solid rgba(251,191,36,0.15); border-radius: 8px; padding: 16px; margin: 24px 0; color: #fbbf24; font-size: 0.9rem; }
@media (max-width: 640px) {
main { padding: 40px 0 60px; }
h1 { font-size: 2rem; }
}
</style>
</head>
<body>
<nav aria-label="Main navigation">
<div class="container">
<a href="/" class="logo">⚡ Doc<span>Fast</span></a>
<div class="nav-links">
<a href="/#features">Features</a>
<a href="/#pricing">Pricing</a>
<a href="/docs">Docs</a>
</div>
</div>
</nav>
<main>
<div class="container">
<h1>Privacy Policy</h1>
<p><em>Last updated: February 16, 2026</em></p>
<div class="info">
This privacy policy is GDPR compliant and explains how we collect, use, and protect your personal data.
</div>
<h2>1. Data Controller</h2>
<p><strong>Cloonar Technologies GmbH</strong><br>
Address: Vienna, Austria<br>
Email: <a href="mailto:legal@docfast.dev">legal@docfast.dev</a><br>
Data Protection Contact: <a href="mailto:privacy@docfast.dev">privacy@docfast.dev</a></p>
<h2>2. Data We Collect</h2>
<h3>2.1 Account Information</h3>
<ul>
<li><strong>Email address</strong> - Required for account creation and API key delivery</li>
<li><strong>API key</strong> - Automatically generated unique identifier</li>
</ul>
<h3>2.2 API Usage Data</h3>
<ul>
<li><strong>Request logs</strong> - API endpoint accessed, timestamp, response status</li>
<li><strong>Usage metrics</strong> - Number of API calls, data volume processed</li>
<li><strong>IP address</strong> - For rate limiting and abuse prevention</li>
</ul>
<h3>2.3 Payment Information</h3>
<ul>
<li><strong>Stripe Customer ID</strong> - For Pro subscription billing</li>
<li><strong>Payment metadata</strong> - Subscription status, billing period</li>
</ul>
<div class="highlight">
<strong>No PDF content stored:</strong> We process your HTML/Markdown input to generate PDFs, but do not store the content or resulting PDFs on our servers.
</div>
<h2>3. Legal Basis for Processing</h2>
<ul>
<li><strong>Contract fulfillment</strong> (Art. 6(1)(b) GDPR) - Account creation, API service provision</li>
<li><strong>Legitimate interest</strong> (Art. 6(1)(f) GDPR) - Service monitoring, abuse prevention, performance optimization</li>
<li><strong>Legal obligation</strong> (Art. 6(1)(c) GDPR) - Tax records, payment processing compliance</li>
</ul>
<h2>4. Data Retention</h2>
<ul>
<li><strong>Account data:</strong> Retained while account is active + 30 days after deletion request</li>
<li><strong>API usage logs:</strong> 90 days for operational monitoring</li>
<li><strong>Payment records:</strong> 7 years for tax compliance (Austrian law)</li>
<li><strong>PDF processing data:</strong> Not stored (processed in memory only)</li>
</ul>
<h2>5. Third-Party Processors</h2>
<h3>5.1 Stripe (Payment Processing)</h3>
<p><strong>Purpose:</strong> Payment processing for Pro subscriptions<br>
<strong>Data:</strong> Email, payment information<br>
<strong>Location:</strong> EU (GDPR compliant)<br>
<strong>Privacy Policy:</strong> <a href="https://stripe.com/privacy" target="_blank" rel="noopener">https://stripe.com/privacy</a></p>
<h3>5.2 Hetzner (Hosting)</h3>
<p><strong>Purpose:</strong> Server hosting and infrastructure<br>
<strong>Data:</strong> All data processed by DocFast<br>
<strong>Location:</strong> Germany (Nuremberg)<br>
<strong>Privacy Policy:</strong> <a href="https://www.hetzner.com/legal/privacy-policy" target="_blank" rel="noopener">https://www.hetzner.com/legal/privacy-policy</a></p>
<div class="highlight">
<strong>EU Data Residency:</strong> All your data is processed and stored exclusively within the European Union.
</div>
<h2>6. Your Rights Under GDPR</h2>
<ul>
<li><strong>Right of access</strong> - Request information about your personal data</li>
<li><strong>Right to rectification</strong> - Correct inaccurate data (e.g., email changes)</li>
<li><strong>Right to erasure</strong> - Delete your account and associated data</li>
<li><strong>Right to data portability</strong> - Receive your data in machine-readable format</li>
<li><strong>Right to object</strong> - Object to processing based on legitimate interest</li>
<li><strong>Right to lodge a complaint</strong> - Contact your data protection authority</li>
</ul>
<p><strong>To exercise your rights:</strong> Email <a href="mailto:privacy@docfast.dev">privacy@docfast.dev</a></p>
<h2>7. Cookies and Tracking</h2>
<p>DocFast uses minimal technical cookies:</p>
<ul>
<li><strong>Session cookies</strong> - For login state (if applicable)</li>
<li><strong>No tracking cookies</strong> - We do not use analytics, advertising, or third-party tracking</li>
</ul>
<h2>8. Data Security</h2>
<ul>
<li><strong>Encryption:</strong> All data transmission via HTTPS/TLS</li>
<li><strong>Access control:</strong> Limited employee access with logging</li>
<li><strong>Infrastructure:</strong> EU-based servers with enterprise security</li>
<li><strong>API keys:</strong> Securely hashed and stored</li>
</ul>
<h2>9. International Transfers</h2>
<p>Your personal data does not leave the European Union. Our infrastructure is hosted exclusively by Hetzner in Germany.</p>
<h2>10. Contact for Data Protection</h2>
<p>For questions about data processing or to exercise your rights:</p>
<p><strong>Email:</strong> <a href="mailto:privacy@docfast.dev">privacy@docfast.dev</a><br>
<strong>Subject:</strong> Include "GDPR" in the subject line for priority handling</p>
<h2>11. Changes to This Policy</h2>
<p>We will notify users of material changes via email. Continued use of the service constitutes acceptance of updated terms.</p>
</div>
</main>
<footer aria-label="Footer">
<div class="container">
<div class="footer-left">© 2026 DocFast. Fast PDF generation for developers.</div>
<div class="footer-links">
<a href="/">Home</a>
<a href="/docs">Docs</a>
<a href="/health">API Status</a>
<a href="/#change-email" class="open-email-change">Change Email</a>
<a href="/impressum">Impressum</a>
<a href="/privacy">Privacy Policy</a>
<a href="/terms">Terms of Service</a>
</div>
</div>
</footer>
</body>
</html>

View file

@ -0,0 +1,191 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Privacy Policy — DocFast</title>
<meta name="description" content="Privacy policy for DocFast API service - GDPR compliant data protection information.">
<link rel="canonical" href="https://docfast.dev/privacy">
<link rel="icon" href="data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'><text y='.9em' font-size='90'>⚡</text></svg>">
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap" rel="stylesheet">
<style>
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
--bg: #0b0d11; --bg2: #12151c; --fg: #e4e7ed; --muted: #7a8194;
--accent: #34d399; --accent-hover: #5eead4; --accent-glow: rgba(52,211,153,0.12);
--card: #151922; --border: #1e2433;
--radius: 12px; --radius-lg: 16px;
}
body { font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; background: var(--bg); color: var(--fg); line-height: 1.65; -webkit-font-smoothing: antialiased; }
a { color: var(--accent); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--accent-hover); }
.container { max-width: 800px; margin: 0 auto; padding: 0 24px; }
nav { padding: 20px 0; border-bottom: 1px solid var(--border); }
nav .container { display: flex; align-items: center; justify-content: space-between; }
.logo { font-size: 1.25rem; font-weight: 700; letter-spacing: -0.5px; color: var(--fg); display: flex; align-items: center; gap: 8px; text-decoration: none; }
.logo span { color: var(--accent); }
.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-links a { color: var(--muted); font-size: 0.9rem; font-weight: 500; }
.nav-links a:hover { color: var(--fg); }
.content { padding: 60px 0; min-height: 60vh; }
.content h1 { font-size: 2rem; font-weight: 800; margin-bottom: 32px; letter-spacing: -1px; }
.content h2 { font-size: 1.3rem; font-weight: 700; margin: 32px 0 16px; color: var(--fg); }
.content h3 { font-size: 1.1rem; font-weight: 600; margin: 24px 0 12px; color: var(--fg); }
.content p, .content li { color: var(--muted); margin-bottom: 12px; }
.content ul, .content ol { padding-left: 24px; }
.content strong { color: var(--fg); }
footer { padding: 32px 0; border-top: 1px solid var(--border); margin-top: 60px; }
footer .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; }
.footer-left { color: var(--muted); font-size: 0.85rem; }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-links a { color: var(--muted); font-size: 0.85rem; }
.footer-links a:hover { color: var(--fg); }
@media (max-width: 768px) {
footer .container { flex-direction: column; text-align: center; }
.nav-links { gap: 16px; }
}
</style>
</head>
<body>
<nav aria-label="Main navigation">
<div class="container">
<a href="/" class="logo">⚡ Doc<span>Fast</span></a>
<div class="nav-links">
<a href="/#features">Features</a>
<a href="/#pricing">Pricing</a>
<a href="/docs">Docs</a>
</div>
</div>
</nav>
<main>
<div class="container">
<h1>Privacy Policy</h1>
<p><em>Last updated: February 16, 2026</em></p>
<div class="info">
This privacy policy is GDPR compliant and explains how we collect, use, and protect your personal data.
</div>
<h2>1. Data Controller</h2>
<p><strong>Cloonar Technologies GmbH</strong><br>
Address: Vienna, Austria<br>
Email: <a href="mailto:legal@docfast.dev">legal@docfast.dev</a><br>
Data Protection Contact: <a href="mailto:privacy@docfast.dev">privacy@docfast.dev</a></p>
<h2>2. Data We Collect</h2>
<h3>2.1 Account Information</h3>
<ul>
<li><strong>Email address</strong> - Required for account creation and API key delivery</li>
<li><strong>API key</strong> - Automatically generated unique identifier</li>
</ul>
<h3>2.2 API Usage Data</h3>
<ul>
<li><strong>Request logs</strong> - API endpoint accessed, timestamp, response status</li>
<li><strong>Usage metrics</strong> - Number of API calls, data volume processed</li>
<li><strong>IP address</strong> - For rate limiting and abuse prevention</li>
</ul>
<h3>2.3 Payment Information</h3>
<ul>
<li><strong>Stripe Customer ID</strong> - For Pro subscription billing</li>
<li><strong>Payment metadata</strong> - Subscription status, billing period</li>
</ul>
<div class="highlight">
<strong>No PDF content stored:</strong> We process your HTML/Markdown input to generate PDFs, but do not store the content or resulting PDFs on our servers.
</div>
<h2>3. Legal Basis for Processing</h2>
<ul>
<li><strong>Contract fulfillment</strong> (Art. 6(1)(b) GDPR) - Account creation, API service provision</li>
<li><strong>Legitimate interest</strong> (Art. 6(1)(f) GDPR) - Service monitoring, abuse prevention, performance optimization</li>
<li><strong>Legal obligation</strong> (Art. 6(1)(c) GDPR) - Tax records, payment processing compliance</li>
</ul>
<h2>4. Data Retention</h2>
<ul>
<li><strong>Account data:</strong> Retained while account is active + 30 days after deletion request</li>
<li><strong>API usage logs:</strong> 90 days for operational monitoring</li>
<li><strong>Payment records:</strong> 7 years for tax compliance (Austrian law)</li>
<li><strong>PDF processing data:</strong> Not stored (processed in memory only)</li>
</ul>
<h2>5. Third-Party Processors</h2>
<h3>5.1 Stripe (Payment Processing)</h3>
<p><strong>Purpose:</strong> Payment processing for Pro subscriptions<br>
<strong>Data:</strong> Email, payment information<br>
<strong>Location:</strong> EU (GDPR compliant)<br>
<strong>Privacy Policy:</strong> <a href="https://stripe.com/privacy" target="_blank" rel="noopener">https://stripe.com/privacy</a></p>
<h3>5.2 Hetzner (Hosting)</h3>
<p><strong>Purpose:</strong> Server hosting and infrastructure<br>
<strong>Data:</strong> All data processed by DocFast<br>
<strong>Location:</strong> Germany (Nuremberg)<br>
<strong>Privacy Policy:</strong> <a href="https://www.hetzner.com/legal/privacy-policy" target="_blank" rel="noopener">https://www.hetzner.com/legal/privacy-policy</a></p>
<div class="highlight">
<strong>EU Data Residency:</strong> All your data is processed and stored exclusively within the European Union.
</div>
<h2>6. Your Rights Under GDPR</h2>
<ul>
<li><strong>Right of access</strong> - Request information about your personal data</li>
<li><strong>Right to rectification</strong> - Correct inaccurate data (e.g., email changes)</li>
<li><strong>Right to erasure</strong> - Delete your account and associated data</li>
<li><strong>Right to data portability</strong> - Receive your data in machine-readable format</li>
<li><strong>Right to object</strong> - Object to processing based on legitimate interest</li>
<li><strong>Right to lodge a complaint</strong> - Contact your data protection authority</li>
</ul>
<p><strong>To exercise your rights:</strong> Email <a href="mailto:privacy@docfast.dev">privacy@docfast.dev</a></p>
<h2>7. Cookies and Tracking</h2>
<p>DocFast uses minimal technical cookies:</p>
<ul>
<li><strong>Session cookies</strong> - For login state (if applicable)</li>
<li><strong>No tracking cookies</strong> - We do not use analytics, advertising, or third-party tracking</li>
</ul>
<h2>8. Data Security</h2>
<ul>
<li><strong>Encryption:</strong> All data transmission via HTTPS/TLS</li>
<li><strong>Access control:</strong> Limited employee access with logging</li>
<li><strong>Infrastructure:</strong> EU-based servers with enterprise security</li>
<li><strong>API keys:</strong> Securely hashed and stored</li>
</ul>
<h2>9. International Transfers</h2>
<p>Your personal data does not leave the European Union. Our infrastructure is hosted exclusively by Hetzner in Germany.</p>
<h2>10. Contact for Data Protection</h2>
<p>For questions about data processing or to exercise your rights:</p>
<p><strong>Email:</strong> <a href="mailto:privacy@docfast.dev">privacy@docfast.dev</a><br>
<strong>Subject:</strong> Include "GDPR" in the subject line for priority handling</p>
<h2>11. Changes to This Policy</h2>
<p>We will notify users of material changes via email. Continued use of the service constitutes acceptance of updated terms.</p>
</div>
</main>
<footer aria-label="Footer">
<div class="container">
<div class="footer-left">© 2026 DocFast. Fast PDF generation for developers.</div>
<div class="footer-links">
<a href="/">Home</a>
<a href="/docs">Docs</a>
<a href="/health">API Status</a>
<a href="/#change-email" class="open-email-change">Change Email</a>
<a href="/impressum">Impressum</a>
<a href="/privacy">Privacy Policy</a>
<a href="/terms">Terms of Service</a>
</div>
</div>
</footer>
</body>
</html>

View file

@ -0,0 +1,6 @@
User-agent: *
Allow: /
Disallow: /v1/
Disallow: /api
Disallow: /health
Sitemap: https://docfast.dev/sitemap.xml

View file

@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemapns.org/schemas/sitemap/0.9">
<url><loc>https://docfast.dev/</loc><lastmod>2026-02-16</lastmod><changefreq>weekly</changefreq><priority>1.0</priority></url>
<url><loc>https://docfast.dev/docs</loc><lastmod>2026-02-16</lastmod><changefreq>weekly</changefreq><priority>0.8</priority></url>
<url><loc>https://docfast.dev/impressum</loc><lastmod>2026-02-16</lastmod><changefreq>monthly</changefreq><priority>0.3</priority></url>
<url><loc>https://docfast.dev/privacy</loc><lastmod>2026-02-16</lastmod><changefreq>monthly</changefreq><priority>0.3</priority></url>
<url><loc>https://docfast.dev/terms</loc><lastmod>2026-02-16</lastmod><changefreq>monthly</changefreq><priority>0.3</priority></url>
</urlset>

View file

@ -0,0 +1,18 @@
SwaggerUIBundle({
url: "/openapi.json",
dom_id: "#swagger-ui",
deepLinking: true,
presets: [
SwaggerUIBundle.presets.apis,
SwaggerUIBundle.SwaggerUIStandalonePreset
],
layout: "BaseLayout",
defaultModelsExpandDepth: 1,
defaultModelExpandDepth: 2,
docExpansion: "list",
filter: true,
tryItOutEnabled: true,
requestSnippetsEnabled: true,
persistAuthorization: true,
syntaxHighlight: { theme: "monokai" }
});

View file

@ -0,0 +1 @@
../node_modules/swagger-ui-dist

View file

@ -0,0 +1,294 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="icon" href="data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'><text y='.9em' font-size='90'>⚡</text></svg>">
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap" rel="stylesheet">
<title>Terms of Service — DocFast</title>
<meta name="description" content="Terms of service for DocFast API - legal terms and conditions for using our PDF generation service.">
<link rel="canonical" href="https://docfast.dev/terms">
<style>
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
--bg: #0b0d11; --bg2: #12151c; --fg: #e4e7ed; --muted: #7a8194;
--accent: #34d399; --accent-hover: #5eead4; --accent-glow: rgba(52,211,153,0.12);
--accent2: #60a5fa; --card: #151922; --border: #1e2433;
--radius: 12px; --radius-lg: 16px;
}
body { font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; background: var(--bg); color: var(--fg); line-height: 1.65; -webkit-font-smoothing: antialiased; }
a { color: var(--accent); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--accent-hover); }
.container { max-width: 1020px; margin: 0 auto; padding: 0 24px; }
/* Nav */
nav { padding: 20px 0; border-bottom: 1px solid var(--border); }
nav .container { display: flex; align-items: center; justify-content: space-between; }
.logo { font-size: 1.25rem; font-weight: 700; letter-spacing: -0.5px; color: var(--fg); display: flex; align-items: center; gap: 8px; text-decoration: none; }
.logo:hover { color: var(--fg); }
.logo span { color: var(--accent); }
.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-links a { color: var(--muted); font-size: 0.9rem; font-weight: 500; }
.nav-links a:hover { color: var(--fg); }
/* Footer */
footer { padding: 40px 0; border-top: 1px solid var(--border); }
footer .container { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.footer-left { color: var(--muted); font-size: 0.85rem; }
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-links a { color: var(--muted); font-size: 0.85rem; }
.footer-links a:hover { color: var(--fg); }
/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 28px; border-radius: 10px; font-size: 0.95rem; font-weight: 600; transition: all 0.2s; border: none; cursor: pointer; text-decoration: none; }
.btn-primary { background: var(--accent); color: #0b0d11; }
.btn-primary:hover { background: var(--accent-hover); text-decoration: none; transform: translateY(-1px); box-shadow: 0 8px 24px rgba(52,211,153,0.2); }
.btn-secondary { border: 1px solid var(--border); color: var(--fg); background: transparent; }
.btn-secondary:hover { border-color: var(--muted); text-decoration: none; background: rgba(255,255,255,0.03); }
.btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }
.btn:focus-visible, a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
/* Responsive base */
@media (max-width: 640px) {
.nav-links { gap: 16px; }
.footer-links { gap: 16px; }
footer .container { flex-direction: column; text-align: center; }
}
.container { max-width: 800px; margin: 0 auto; padding: 0 24px; }
/* Legal page overrides */
.container { max-width: 800px; }
main { padding: 60px 0 80px; }
h1 { font-size: 2.5rem; font-weight: 800; margin-bottom: 16px; letter-spacing: -1px; }
h2 { font-size: 1.5rem; font-weight: 700; margin: 32px 0 16px; color: var(--accent); }
h3 { font-size: 1.2rem; font-weight: 600; margin: 24px 0 12px; }
p { margin-bottom: 16px; line-height: 1.7; }
ul { margin-bottom: 16px; padding-left: 24px; }
li { margin-bottom: 8px; line-height: 1.7; }
.highlight { background: rgba(52,211,153,0.08); border: 1px solid rgba(52,211,153,0.15); border-radius: 8px; padding: 16px; margin: 24px 0; color: var(--accent); font-size: 0.9rem; }
.info { background: rgba(96,165,250,0.08); border: 1px solid rgba(96,165,250,0.15); border-radius: 8px; padding: 16px; margin: 24px 0; color: #60a5fa; font-size: 0.9rem; }
.warning { background: rgba(251,191,36,0.08); border: 1px solid rgba(251,191,36,0.15); border-radius: 8px; padding: 16px; margin: 24px 0; color: #fbbf24; font-size: 0.9rem; }
@media (max-width: 640px) {
main { padding: 40px 0 60px; }
h1 { font-size: 2rem; }
}
</style>
</head>
<body>
<nav aria-label="Main navigation">
<div class="container">
<a href="/" class="logo">⚡ Doc<span>Fast</span></a>
<div class="nav-links">
<a href="/#features">Features</a>
<a href="/#pricing">Pricing</a>
<a href="/docs">Docs</a>
</div>
</div>
</nav>
<main>
<div class="container">
<h1>Terms of Service</h1>
<p><em>Last updated: February 16, 2026</em></p>
<div class="info">
By using DocFast, you agree to these terms. Please read them carefully.
</div>
<h2>1. Service Description</h2>
<p>DocFast provides an API service for converting HTML, Markdown, and URLs to PDF documents. The service includes:</p>
<ul>
<li>HTML to PDF conversion</li>
<li>Markdown to PDF conversion</li>
<li>URL to PDF conversion</li>
<li>Pre-built invoice and receipt templates</li>
<li>Custom CSS styling support</li>
</ul>
<h2>2. Service Plans</h2>
<h3>2.1 Free Tier</h3>
<ul>
<li><strong>Monthly limit:</strong> 100 PDF conversions</li>
<li><strong>Rate limit:</strong> 10 requests per minute</li>
<li><strong>Fair use policy:</strong> Personal and small business use</li>
<li><strong>Support:</strong> Community documentation</li>
</ul>
<h3>2.2 Pro Tier</h3>
<ul>
<li><strong>Price:</strong> €9 per month</li>
<li><strong>Monthly limit:</strong> 10,000 PDF conversions</li>
<li><strong>Rate limit:</strong> Higher limits based on fair use</li>
<li><strong>Support:</strong> Priority email support</li>
<li><strong>Billing:</strong> Monthly subscription via Stripe</li>
</ul>
<div class="highlight">
<strong>Overage:</strong> If you exceed your plan limits, API requests will return rate limiting errors. No automatic charges apply.
</div>
<h2>3. Acceptable Use</h2>
<h3>3.1 Permitted Uses</h3>
<ul>
<li>Business documents (invoices, reports, receipts)</li>
<li>Personal document generation</li>
<li>Integration into web applications</li>
<li>Educational and non-commercial projects</li>
</ul>
<h3>3.2 Prohibited Uses</h3>
<ul>
<li><strong>Illegal content:</strong> No processing of copyrighted material without permission</li>
<li><strong>Abuse:</strong> No attempts to overload or disrupt the service</li>
<li><strong>Harmful content:</strong> No generation of malicious, threatening, or harmful documents</li>
<li><strong>Reselling:</strong> No white-labeling or reselling of the raw API service</li>
<li><strong>Reverse engineering:</strong> No attempts to extract proprietary algorithms</li>
</ul>
<div class="warning">
<strong>Violation consequences:</strong> Account termination, permanent ban, and legal action if necessary.
</div>
<h2>4. API Key Security</h2>
<ul>
<li><strong>Responsibility:</strong> You are responsible for keeping your API key secure</li>
<li><strong>Unauthorized use:</strong> You are liable for all usage under your API key</li>
<li><strong>Recovery:</strong> Lost keys can be recovered via email verification</li>
<li><strong>Sharing:</strong> Do not share API keys publicly or in client-side code</li>
</ul>
<h2>5. Service Availability</h2>
<h3>5.1 Uptime</h3>
<ul>
<li><strong>Target:</strong> 99.5% uptime (best effort, no SLA for free tier)</li>
<li><strong>Maintenance:</strong> Scheduled maintenance with advance notice</li>
<li><strong>Status page:</strong> <a href="/health">https://docfast.dev/health</a></li>
</ul>
<h3>5.2 Performance</h3>
<ul>
<li><strong>Processing time:</strong> Typically under 1 second per PDF</li>
<li><strong>Rate limiting:</strong> Applied fairly to ensure service stability</li>
<li><strong>File size limits:</strong> Input HTML/Markdown up to 2MB</li>
</ul>
<h2>6. Data Processing</h2>
<ul>
<li><strong>No storage:</strong> PDF content is processed in memory only</li>
<li><strong>Logs:</strong> API usage logs retained for 90 days</li>
<li><strong>Privacy:</strong> See our <a href="/privacy">Privacy Policy</a> for details</li>
<li><strong>EU hosting:</strong> All data processed in Germany (Hetzner)</li>
</ul>
<h2>7. Payment Terms</h2>
<h3>7.1 Pro Subscription</h3>
<ul>
<li><strong>Billing cycle:</strong> Monthly, billed in advance</li>
<li><strong>Payment method:</strong> Credit card via Stripe</li>
<li><strong>Currency:</strong> EUR (Euro)</li>
<li><strong>Auto-renewal:</strong> Subscription renews automatically</li>
</ul>
<h3>7.2 Cancellation</h3>
<ul>
<li><strong>Anytime:</strong> Cancel your subscription at any time</li>
<li><strong>Access:</strong> Service continues until end of billing period</li>
<li><strong>Refunds:</strong> No partial refunds for unused portions</li>
</ul>
<div class="info">
<strong>EU Consumer Rights:</strong> 14-day right of withdrawal applies to digital services not yet delivered. Once you start using the Pro service, withdrawal right expires.
</div>
<h2>8. Limitation of Liability</h2>
<ul>
<li><strong>Service provision:</strong> Best effort basis, no guarantees</li>
<li><strong>Damages:</strong> Our liability is limited to the amount paid for the service</li>
<li><strong>Indirect damages:</strong> We are not liable for lost profits, business interruption, or data loss</li>
<li><strong>Force majeure:</strong> Not liable for events beyond our reasonable control</li>
</ul>
<h2>9. Account Termination</h2>
<h3>9.1 By You</h3>
<ul>
<li>Delete your account by emailing <a href="mailto:legal@docfast.dev">legal@docfast.dev</a></li>
<li>Cancel Pro subscription through your account or email</li>
</ul>
<h3>9.2 By Us</h3>
<p>We may terminate accounts for:</p>
<ul>
<li>Violation of these terms</li>
<li>Non-payment (Pro accounts)</li>
<li>Extended inactivity (12+ months)</li>
<li>Technical abuse or security concerns</li>
</ul>
<div class="warning">
<strong>Termination notice:</strong> We will provide reasonable notice except for immediate security threats.
</div>
<h2>10. Intellectual Property</h2>
<ul>
<li><strong>Service ownership:</strong> DocFast and its technology remain our property</li>
<li><strong>Your content:</strong> You retain rights to content you process through our API</li>
<li><strong>Generated PDFs:</strong> You own the PDFs generated from your content</li>
<li><strong>Feedback:</strong> Any feedback provided may be used to improve the service</li>
</ul>
<h2>11. Governing Law</h2>
<ul>
<li><strong>Jurisdiction:</strong> These terms are governed by Austrian law</li>
<li><strong>Courts:</strong> Disputes resolved in Vienna, Austria</li>
<li><strong>Language:</strong> German version prevails in case of translation conflicts</li>
<li><strong>EU regulations:</strong> GDPR and other EU laws apply</li>
</ul>
<h2>12. Changes to Terms</h2>
<p>We may update these terms by:</p>
<ul>
<li><strong>Email notification:</strong> For material changes affecting your rights</li>
<li><strong>Website posting:</strong> Updated version posted with revision date</li>
<li><strong>Continued use:</strong> Using the service after changes constitutes acceptance</li>
</ul>
<h2>13. Contact Information</h2>
<p>Questions about these terms:</p>
<ul>
<li><strong>Email:</strong> <a href="mailto:legal@docfast.dev">legal@docfast.dev</a></li>
<li><strong>Company:</strong> Cloonar Technologies GmbH, Vienna, Austria</li>
<li><strong>Legal notice:</strong> See <a href="/impressum">Impressum</a> for full company details</li>
</ul>
<div class="highlight">
<strong>Effective Date:</strong> These terms are effective immediately upon posting. By using DocFast, you acknowledge reading and agreeing to these terms.
</div>
</div>
</main>
<footer aria-label="Footer">
<div class="container">
<div class="footer-left">© 2026 DocFast. Fast PDF generation for developers.</div>
<div class="footer-links">
<a href="/">Home</a>
<a href="/docs">Docs</a>
<a href="/health">API Status</a>
<a href="/#change-email" class="open-email-change">Change Email</a>
<a href="/impressum">Impressum</a>
<a href="/privacy">Privacy Policy</a>
<a href="/terms">Terms of Service</a>
</div>
</div>
</footer>
</body>
</html>

View file

@ -0,0 +1,263 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Terms of Service — DocFast</title>
<meta name="description" content="Terms of service for DocFast API - legal terms and conditions for using our PDF generation service.">
<link rel="canonical" href="https://docfast.dev/terms">
<link rel="icon" href="data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'><text y='.9em' font-size='90'>⚡</text></svg>">
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap" rel="stylesheet">
<style>
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
--bg: #0b0d11; --bg2: #12151c; --fg: #e4e7ed; --muted: #7a8194;
--accent: #34d399; --accent-hover: #5eead4; --accent-glow: rgba(52,211,153,0.12);
--card: #151922; --border: #1e2433;
--radius: 12px; --radius-lg: 16px;
}
body { font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; background: var(--bg); color: var(--fg); line-height: 1.65; -webkit-font-smoothing: antialiased; }
a { color: var(--accent); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--accent-hover); }
.container { max-width: 800px; margin: 0 auto; padding: 0 24px; }
nav { padding: 20px 0; border-bottom: 1px solid var(--border); }
nav .container { display: flex; align-items: center; justify-content: space-between; }
.logo { font-size: 1.25rem; font-weight: 700; letter-spacing: -0.5px; color: var(--fg); display: flex; align-items: center; gap: 8px; text-decoration: none; }
.logo span { color: var(--accent); }
.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-links a { color: var(--muted); font-size: 0.9rem; font-weight: 500; }
.nav-links a:hover { color: var(--fg); }
.content { padding: 60px 0; min-height: 60vh; }
.content h1 { font-size: 2rem; font-weight: 800; margin-bottom: 32px; letter-spacing: -1px; }
.content h2 { font-size: 1.3rem; font-weight: 700; margin: 32px 0 16px; color: var(--fg); }
.content h3 { font-size: 1.1rem; font-weight: 600; margin: 24px 0 12px; color: var(--fg); }
.content p, .content li { color: var(--muted); margin-bottom: 12px; }
.content ul, .content ol { padding-left: 24px; }
.content strong { color: var(--fg); }
footer { padding: 32px 0; border-top: 1px solid var(--border); margin-top: 60px; }
footer .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; }
.footer-left { color: var(--muted); font-size: 0.85rem; }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-links a { color: var(--muted); font-size: 0.85rem; }
.footer-links a:hover { color: var(--fg); }
@media (max-width: 768px) {
footer .container { flex-direction: column; text-align: center; }
.nav-links { gap: 16px; }
}
</style>
</head>
<body>
<nav aria-label="Main navigation">
<div class="container">
<a href="/" class="logo">⚡ Doc<span>Fast</span></a>
<div class="nav-links">
<a href="/#features">Features</a>
<a href="/#pricing">Pricing</a>
<a href="/docs">Docs</a>
</div>
</div>
</nav>
<main>
<div class="container">
<h1>Terms of Service</h1>
<p><em>Last updated: February 16, 2026</em></p>
<div class="info">
By using DocFast, you agree to these terms. Please read them carefully.
</div>
<h2>1. Service Description</h2>
<p>DocFast provides an API service for converting HTML, Markdown, and URLs to PDF documents. The service includes:</p>
<ul>
<li>HTML to PDF conversion</li>
<li>Markdown to PDF conversion</li>
<li>URL to PDF conversion</li>
<li>Pre-built invoice and receipt templates</li>
<li>Custom CSS styling support</li>
</ul>
<h2>2. Service Plans</h2>
<h3>2.1 Free Tier</h3>
<ul>
<li><strong>Monthly limit:</strong> 100 PDF conversions</li>
<li><strong>Rate limit:</strong> 10 requests per minute</li>
<li><strong>Fair use policy:</strong> Personal and small business use</li>
<li><strong>Support:</strong> Community documentation</li>
</ul>
<h3>2.2 Pro Tier</h3>
<ul>
<li><strong>Price:</strong> €9 per month</li>
<li><strong>Monthly limit:</strong> 10,000 PDF conversions</li>
<li><strong>Rate limit:</strong> Higher limits based on fair use</li>
<li><strong>Support:</strong> Priority email support</li>
<li><strong>Billing:</strong> Monthly subscription via Stripe</li>
</ul>
<div class="highlight">
<strong>Overage:</strong> If you exceed your plan limits, API requests will return rate limiting errors. No automatic charges apply.
</div>
<h2>3. Acceptable Use</h2>
<h3>3.1 Permitted Uses</h3>
<ul>
<li>Business documents (invoices, reports, receipts)</li>
<li>Personal document generation</li>
<li>Integration into web applications</li>
<li>Educational and non-commercial projects</li>
</ul>
<h3>3.2 Prohibited Uses</h3>
<ul>
<li><strong>Illegal content:</strong> No processing of copyrighted material without permission</li>
<li><strong>Abuse:</strong> No attempts to overload or disrupt the service</li>
<li><strong>Harmful content:</strong> No generation of malicious, threatening, or harmful documents</li>
<li><strong>Reselling:</strong> No white-labeling or reselling of the raw API service</li>
<li><strong>Reverse engineering:</strong> No attempts to extract proprietary algorithms</li>
</ul>
<div class="warning">
<strong>Violation consequences:</strong> Account termination, permanent ban, and legal action if necessary.
</div>
<h2>4. API Key Security</h2>
<ul>
<li><strong>Responsibility:</strong> You are responsible for keeping your API key secure</li>
<li><strong>Unauthorized use:</strong> You are liable for all usage under your API key</li>
<li><strong>Recovery:</strong> Lost keys can be recovered via email verification</li>
<li><strong>Sharing:</strong> Do not share API keys publicly or in client-side code</li>
</ul>
<h2>5. Service Availability</h2>
<h3>5.1 Uptime</h3>
<ul>
<li><strong>Target:</strong> 99.5% uptime (best effort, no SLA for free tier)</li>
<li><strong>Maintenance:</strong> Scheduled maintenance with advance notice</li>
<li><strong>Status page:</strong> <a href="/health">https://docfast.dev/health</a></li>
</ul>
<h3>5.2 Performance</h3>
<ul>
<li><strong>Processing time:</strong> Typically under 1 second per PDF</li>
<li><strong>Rate limiting:</strong> Applied fairly to ensure service stability</li>
<li><strong>File size limits:</strong> Input HTML/Markdown up to 2MB</li>
</ul>
<h2>6. Data Processing</h2>
<ul>
<li><strong>No storage:</strong> PDF content is processed in memory only</li>
<li><strong>Logs:</strong> API usage logs retained for 90 days</li>
<li><strong>Privacy:</strong> See our <a href="/privacy">Privacy Policy</a> for details</li>
<li><strong>EU hosting:</strong> All data processed in Germany (Hetzner)</li>
</ul>
<h2>7. Payment Terms</h2>
<h3>7.1 Pro Subscription</h3>
<ul>
<li><strong>Billing cycle:</strong> Monthly, billed in advance</li>
<li><strong>Payment method:</strong> Credit card via Stripe</li>
<li><strong>Currency:</strong> EUR (Euro)</li>
<li><strong>Auto-renewal:</strong> Subscription renews automatically</li>
</ul>
<h3>7.2 Cancellation</h3>
<ul>
<li><strong>Anytime:</strong> Cancel your subscription at any time</li>
<li><strong>Access:</strong> Service continues until end of billing period</li>
<li><strong>Refunds:</strong> No partial refunds for unused portions</li>
</ul>
<div class="info">
<strong>EU Consumer Rights:</strong> 14-day right of withdrawal applies to digital services not yet delivered. Once you start using the Pro service, withdrawal right expires.
</div>
<h2>8. Limitation of Liability</h2>
<ul>
<li><strong>Service provision:</strong> Best effort basis, no guarantees</li>
<li><strong>Damages:</strong> Our liability is limited to the amount paid for the service</li>
<li><strong>Indirect damages:</strong> We are not liable for lost profits, business interruption, or data loss</li>
<li><strong>Force majeure:</strong> Not liable for events beyond our reasonable control</li>
</ul>
<h2>9. Account Termination</h2>
<h3>9.1 By You</h3>
<ul>
<li>Delete your account by emailing <a href="mailto:legal@docfast.dev">legal@docfast.dev</a></li>
<li>Cancel Pro subscription through your account or email</li>
</ul>
<h3>9.2 By Us</h3>
<p>We may terminate accounts for:</p>
<ul>
<li>Violation of these terms</li>
<li>Non-payment (Pro accounts)</li>
<li>Extended inactivity (12+ months)</li>
<li>Technical abuse or security concerns</li>
</ul>
<div class="warning">
<strong>Termination notice:</strong> We will provide reasonable notice except for immediate security threats.
</div>
<h2>10. Intellectual Property</h2>
<ul>
<li><strong>Service ownership:</strong> DocFast and its technology remain our property</li>
<li><strong>Your content:</strong> You retain rights to content you process through our API</li>
<li><strong>Generated PDFs:</strong> You own the PDFs generated from your content</li>
<li><strong>Feedback:</strong> Any feedback provided may be used to improve the service</li>
</ul>
<h2>11. Governing Law</h2>
<ul>
<li><strong>Jurisdiction:</strong> These terms are governed by Austrian law</li>
<li><strong>Courts:</strong> Disputes resolved in Vienna, Austria</li>
<li><strong>Language:</strong> German version prevails in case of translation conflicts</li>
<li><strong>EU regulations:</strong> GDPR and other EU laws apply</li>
</ul>
<h2>12. Changes to Terms</h2>
<p>We may update these terms by:</p>
<ul>
<li><strong>Email notification:</strong> For material changes affecting your rights</li>
<li><strong>Website posting:</strong> Updated version posted with revision date</li>
<li><strong>Continued use:</strong> Using the service after changes constitutes acceptance</li>
</ul>
<h2>13. Contact Information</h2>
<p>Questions about these terms:</p>
<ul>
<li><strong>Email:</strong> <a href="mailto:legal@docfast.dev">legal@docfast.dev</a></li>
<li><strong>Company:</strong> Cloonar Technologies GmbH, Vienna, Austria</li>
<li><strong>Legal notice:</strong> See <a href="/impressum">Impressum</a> for full company details</li>
</ul>
<div class="highlight">
<strong>Effective Date:</strong> These terms are effective immediately upon posting. By using DocFast, you acknowledge reading and agreeing to these terms.
</div>
</div>
</main>
<footer aria-label="Footer">
<div class="container">
<div class="footer-left">© 2026 DocFast. Fast PDF generation for developers.</div>
<div class="footer-links">
<a href="/">Home</a>
<a href="/docs">Docs</a>
<a href="/health">API Status</a>
<a href="/#change-email" class="open-email-change">Change Email</a>
<a href="/impressum">Impressum</a>
<a href="/privacy">Privacy Policy</a>
<a href="/terms">Terms of Service</a>
</div>
</div>
</footer>
</body>
</html>