#!/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

◈ Credit packs — one-time, never expire

{% for name, p in plans.items() %} {% endfor %}
PackPriceCredits$/credit
{{ name }}${{ '%.2f'|format(p.usd) }}{{ p.credits }}${{ '%.3f'|format(p.usd / p.credits) }}

◈ 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
"""