#!/usr/bin/env python3 """DRACO theme part 2: library, pricing, api pages. Jinja vars injected by app.render().""" PAGE_LIBRARY = """

The Hoard

__STATS__. Every passage DRACO cites comes from these shelves. Downloads are free for personal use — this is the library, open to the public.

◈ Collections

CollectionContents
library_linuxThe coding canon: C/C++, Python, Perl, PHP, Java, assembly, SQL/databases, web, Unix/Linux internals, networks & security, math, Apache, Windows/M$.
hackerpackThe Hacker Pro Pack: exploitation, malware, network attacks, crypto, wireless, OSINT, lockpicking-of-the-digital-kind, and the classics of the scene.

◈ Browse the shelves

""" PAGE_PRICING = """

Pricing

No subscriptions. No accounts-with-email-verification loops. Bitcoin only, self-hosted BTCPay — no card processor ever sees you or us.

FREE{{ free_monthly }} API credits / month + {{ free_day }} web questions / day
1 credit= 1 ask (RAG + citations) or 1 search

◈ Pricing — the honest kind

$50/mo HOARD = unlimited: every ask, every search, the whole {{ mb }}M-char library, as hard as you want to run it. Or pay-per-use with packs. Bitcoin only, no subscription trap — HOARD simply expires in 30 days unless you renew.

{% for name, p in plans.items() %} = 50 %} style='border:1px solid var(--gold)'{% endif %}> {% endfor %}
TierPriceWhat you get
{{ name }}{% if p.usd >= 50 %} BEST{% endif %} ${{ '%.0f'|format(p.usd) }}{% if p.usd >= 50 %}/mo{% endif %} {% if p.usd >= 50 %}UNLIMITED asks + searches for 30 days. The whole library, unmetered.{% else %}{{ p.credits }} credits (1 = 1 ask or search), never expire.{% endif %}

◈ Why paid tiers exist

GPU time is realevery answer runs retrieval + local inference on bare metal — electricity isn't free
The free tier stays free{{ free_monthly }}/mo forever, no card, email is just your key-recovery address
Zero data resalewe sell answers, not you. no telemetry, no logs sold, ever
Bitcoin onlypay from any wallet, no chargebacks, no KYC, invoices live ~15 min
""" PAGE_API = """

API

One endpoint, RAG-grounded answers with citations. Free {{ free_monthly }} calls/month. Works with curl, any HTTP client, or as an MCP tool for your agents.

◈ Get your key

◈ Ask

curl -s -X POST {{ base }}/api/ask \\
  -H 'Content-Type: application/json' \\
  -d '{"q": "explain integer overflow with C poc", "api_key": "sk-draco-..."}'

→ {"answer": "...", "sources": [{"title": "...", "category": "..."}]}

◈ Search the library raw

curl -s "{{ base }}/api/search?q=tcp+syn+flood&k=5" \\
  -H 'X-API-Key: sk-draco-...'

◈ Usage & credits

curl -s {{ base }}/api/my-usage -H 'X-API-Key: sk-draco-...'

◈ MCP (for Claude / GPT / any agent)

{
  "mcpServers": {
    "draco": { "url": "{{ base }}/mcp" }
  }
}

Tools: draco_ask · draco_search · draco_status. Machine-readable docs: llms.txt · openapi.json · ai-plugin.json

◈ Rate limits & rules

TierLimits
Web (no key){{ free_day }} questions/day per IP
Free API{{ free_monthly }}/month, then buy credits
Paid credits1 credit = 1 ask/search, never expire
Adminunlimited — contact
"""