tinyfiles.tv
● Joke page · no real money printer · do not print real money

Support.

Replace donate.html with this. Donations done lazily get lazy results. So here is what the money pays for, a monthly goal, a public ledger, and supporter roles. All of it, 100 percent, goes to making laser beams and money printing machines.

Joke page. Laser beams = cat toy lasers and tiny LED beams for videos. Money printing machines = a printer that prints tinyfiles dollars, worthless, for jokes, for the site. Not real money. Do not print real money. That is illegal and also not funny.

What the money pays for

🔦 40% Laser Beams

Cat toy lasers, LED beams, tiny laser pointers for videos and photos. For making the site look like it has a death ray. It does not. It has a cat toy.

🖨️ 40% Money Printing Machines

A printer that prints tinyfiles dollars. They say “tinyfiles.tv” on them, they are worth zero dollars, they are for jokes and for the ledger photos. Not real money.

🖥️ 20% Real boring stuff

VPS, domain tinyfiles.tv, a little coffee. 10% VPS, 5% domain, 5% coffee. The boring 20% keeps the joke 80% online.

If you donate lazily, you get lazy lasers. Dim lasers. A printer that jams. Donate with intent, get a beam that actually beams.

Monthly goal · November 2026

Goal: $100 for lasers + printer ink (tinyfiles dollars ink)$23 of $100

23% there. At $50, we buy a second laser. At $100, we buy printer ink and a new cat toy laser. At $101, we buy a third laser because why not.

Goal updates from the public ledger below. Add your name to the ledger and the total moves.

Supporter roles

👀 Visitor · $0

Free. You read the site. You sign the guestbook. You see what you see. No laser.

🔦 Laser Operator · $1

You funded one minute of laser. You get a shout in the ledger: “Funded laser beam.”

🖨️ Money Printer · $5

You funded printer ink. You get a tinyfiles dollar with your name on it, in the ledger photo, worthless, perfect.

👑 Beam Lord · $10

You funded both. Laser + printer. You get both shoutouts, plus a role in Discord, plus we pretend you control the death ray. You do not.

Public ledger · every dollar, public

This is the ledger. Name, amount, what it funded, date. Moderated, like guestbook. If it is not here, it did not happen. If it is here, it funded a laser or a printer.

Backend status: checking… This form is a ledger demo. It does not charge you. Real payments would go through a payment provider, not this form.

HOW TO RUN THE LEDGER · SAME TECH AS BUGS + GUESTBOOK · RIGHT HERE

How this ledger works

Same tech as bugs and guestbook, different table and port. Frontend tries GET /api/support/ledger and POST /api/support/ledger. GET only returns approved = 1. POST creates approved = 0, pending. You approve it. Goal total is sum of approved amounts. If backend is off, it falls back to localStorage with seed ledger.

  1. Upload support.html to /opt/tinyfiles/public/support.html, delete or redirect donate.html to support.html
  2. Pick Python OR PHP below
  3. Add nginx block, reload nginx
  4. Approve test entry, refresh, goal moves
Option A / Python service · stdlib only · port 5003 · moderated ledger
# File: /opt/tinyfiles/support_api.py
# Run: nohup python3 /opt/tinyfiles/support_api.py &
import json, sqlite3
from http.server import BaseHTTPRequestHandler, HTTPServer
from datetime import datetime
DB = "/opt/tinyfiles/support.db"
ADMIN_KEY = "change-me-to-a-long-secret"

def init():
    c = sqlite3.connect(DB)
    c.execute("CREATE TABLE IF NOT EXISTS support_ledger (id INTEGER PRIMARY KEY AUTOINCREMENT, name TEXT, amount REAL, funded TEXT, note TEXT, approved INTEGER DEFAULT 0, created_at TEXT)")
    c.commit(); c.close()

class H(BaseHTTPRequestHandler):
    def _cors(self):
        self.send_header("Access-Control-Allow-Origin", "*")
        self.send_header("Access-Control-Allow-Methods", "GET, POST, OPTIONS")
        self.send_header("Access-Control-Allow-Headers", "Content-Type")
    def do_OPTIONS(self):
        self.send_response(204); self._cors(); self.end_headers()
    def do_GET(self):
        if self.path.startswith("/api/support/ledger"):
            c = sqlite3.connect(DB); c.row_factory = sqlite3.Row
            rows = c.execute("SELECT * FROM support_ledger WHERE approved=1 ORDER BY id DESC LIMIT 100").fetchall()
            body = json.dumps([dict(r) for r in rows]).encode()
            self.send_response(200); self._cors(); self.send_header("Content-Type","application/json"); self.send_header("Content-Length", str(len(body))); self.end_headers(); self.wfile.write(body)
        elif self.path.startswith("/api/support/pending"):
            if ADMIN_KEY not in self.path:
                self.send_response(403); self.end_headers(); return
            c = sqlite3.connect(DB); c.row_factory = sqlite3.Row
            rows = c.execute("SELECT * FROM support_ledger WHERE approved=0 ORDER BY id DESC").fetchall()
            body = json.dumps([dict(r) for r in rows]).encode()
            self.send_response(200); self._cors(); self.send_header("Content-Type","application/json"); self.send_header("Content-Length", str(len(body))); self.end_headers(); self.wfile.write(body)
        else:
            self.send_response(404); self.end_headers()
    def do_POST(self):
        if self.path.startswith("/api/support/ledger"):
            n = int(self.headers.get("Content-Length", 0)); j = json.loads(self.rfile.read(n).decode() or "{}")
            name = (j.get("name") or "anonymous")[:100]; funded = (j.get("funded") or "Laser Beams")[:100]; note = (j.get("note") or "")[:500]
            try: amount = float(j.get("amount") or 0)
            except: amount = 0
            if amount <= 0 or amount > 1000:
                self.send_response(400); self.end_headers(); return
            c = sqlite3.connect(DB); cur = c.execute("INSERT INTO support_ledger (name, amount, funded, note, approved, created_at) VALUES (?,?,?,?,0,?)", (name, amount, funded, note, datetime.now().isoformat())); c.commit(); cid = cur.lastrowid; c.close()
            out = json.dumps({"ok": True, "id": cid, "pending": True}).encode()
            self.send_response(200); self._cors(); self.send_header("Content-Type","application/json"); self.send_header("Content-Length", str(len(out))); self.end_headers(); self.wfile.write(out)
        elif self.path.startswith("/api/support/approve"):
            n = int(self.headers.get("Content-Length", 0)); j = json.loads(self.rfile.read(n).decode() or "{}")
            if j.get("key") != ADMIN_KEY:
                self.send_response(403); self.end_headers(); return
            c = sqlite3.connect(DB); c.execute("UPDATE support_ledger SET approved=1 WHERE id=?", (j.get("id"),)); c.commit(); c.close()
            out = json.dumps({"ok": True}).encode(); self.send_response(200); self._cors(); self.send_header("Content-Type","application/json"); self.send_header("Content-Length", str(len(out))); self.end_headers(); self.wfile.write(out)
        elif self.path.startswith("/api/support/delete"):
            n = int(self.headers.get("Content-Length", 0)); j = json.loads(self.rfile.read(n).decode() or "{}")
            if j.get("key") != ADMIN_KEY:
                self.send_response(403); self.end_headers(); return
            c = sqlite3.connect(DB); c.execute("DELETE FROM support_ledger WHERE id=?", (j.get("id"),)); c.commit(); c.close()
            out = json.dumps({"ok": True}).encode(); self.send_response(200); self._cors(); self.send_header("Content-Type","application/json"); self.send_header("Content-Length", str(len(out))); self.end_headers(); self.wfile.write(out)
        else:
            self.send_response(404); self.end_headers()
    def log_message(self, *a): pass

init()
print("support api on 127.0.0.1:5003")
HTTPServer(("127.0.0.1", 5003), H).serve_forever()
Option B / PHP snippet · one file · JSON, moderated
<?php
// File: /opt/tinyfiles/public/api/support.php
// Change JS API to "/api/support.php?action=..." if you use PHP
header("Access-Control-Allow-Origin: *");
header("Access-Control-Allow-Methods: GET, POST, OPTIONS");
header("Access-Control-Allow-Headers: Content-Type");
header("Content-Type: application/json");
if ($_SERVER["REQUEST_METHOD"] === "OPTIONS") { http_response_code(204); exit; }
$ADMIN_KEY = "change-me-to-a-long-secret";
$file = __DIR__ . "/support.json";
if (!file_exists($file)) file_put_contents($file, "[]");
$list = json_decode(file_get_contents($file), true) ?: [];
$action = $_GET["action"] ?? "list";
if ($_SERVER["REQUEST_METHOD"] === "GET" && $action === "list") {
  $approved = array_values(array_filter($list, fn($r) => !empty($r["approved"])));
  echo json_encode(array_reverse(array_slice($approved, -100))); exit;
}
if ($_SERVER["REQUEST_METHOD"] === "GET" && $action === "pending") {
  if (($_GET["key"] ?? "") !== $ADMIN_KEY) { http_response_code(403); exit; }
  echo json_encode(array_reverse(array_filter($list, fn($r) => empty($r["approved"])))); exit;
}
if ($_SERVER["REQUEST_METHOD"] === "POST" && $action === "add") {
  $j = json_decode(file_get_contents("php://input"), true) ?: [];
  $amt = floatval($j["amount"] ?? 0);
  if ($amt <= 0 || $amt > 1000) { http_response_code(400); exit; }
  $row = ["id"=>count($list)+1, "name"=>substr($j["name"]??"anonymous",0,100), "amount"=>$amt, "funded"=>substr($j["funded"]??"Laser Beams",0,100), "note"=>substr($j["note"]??"",0,500), "approved"=>0, "created_at"=>date("c")];
  $list[] = $row; file_put_contents($file, json_encode($list));
  echo json_encode(["ok"=>true, "id"=>$row["id"], "pending"=>true]); exit;
}
if ($_SERVER["REQUEST_METHOD"] === "POST" && $action === "approve") {
  $j = json_decode(file_get_contents("php://input"), true) ?: [];
  if (($j["key"] ?? "") !== $ADMIN_KEY) { http_response_code(403); exit; }
  foreach ($list as &$r) { if ($r["id"] == $j["id"]) $r["approved"] = 1; }
  file_put_contents($file, json_encode($list)); echo json_encode(["ok"=>true]); exit;
}
if ($_SERVER["REQUEST_METHOD"] === "POST" && $action === "delete") {
  $j = json_decode(file_get_contents("php://input"), true) ?: [];
  if (($j["key"] ?? "") !== $ADMIN_KEY) { http_response_code(403); exit; }
  $list = array_values(array_filter($list, fn($r) => $r["id"] != $j["id"]));
  file_put_contents($file, json_encode($list)); echo json_encode(["ok"=>true]); exit;
}
nginx + systemd + MySQL + moderation + redirect donate.html
# nginx
location /api/support/ {
  proxy_pass http://127.0.0.1:5003/;
  proxy_set_header Host $host;
  proxy_set_header X-Real-IP $remote_addr;
}
# Redirect old donate.html to support.html
location = /donate.html {
  return 301 /support.html;
}
# If PHP, no proxy needed, just /api/support.php

# systemd: /etc/systemd/system/support-api.service
[Unit]
Description=support api
After=network.target
[Service]
ExecStart=/usr/bin/python3 /opt/tinyfiles/support_api.py
Restart=always
User=root
WorkingDirectory=/opt/tinyfiles
[Install]
WantedBy=multi-user.target
# systemctl daemon-reload && systemctl enable --now support-api

# MySQL optional:
# CREATE TABLE support_ledger (
#   id INT AUTO_INCREMENT PRIMARY KEY,
#   name VARCHAR(100), amount DECIMAL(10,2), funded VARCHAR(100), note TEXT,
#   approved TINYINT DEFAULT 0,
#   created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP
# );

# Moderate:
# curl "https://tinyfiles.tv/api/support/pending?key=change-me-to-a-long-secret"
# curl -X POST https://tinyfiles.tv/api/support/approve -H "Content-Type: application/json" -d '{"id":5,"key":"change-me-to-a-long-secret"}'
# curl -X POST https://tinyfiles.tv/api/support/delete -H "Content-Type: application/json" -d '{"id":6,"key":"change-me-to-a-long-secret"}'
# Test add:
# curl -X POST https://tinyfiles.tv/api/support/ledger -H "Content-Type: application/json" -d '{"name":"Test","amount":5,"funded":"Laser Beams","note":"test"}'
# Then approve, then: curl https://tinyfiles.tv/api/support/ledger

# REAL PAYMENTS NOTE: This ledger does NOT charge anyone.
# If you ever take real money, use Stripe / PayPal / Ko-fi / etc.
# That provider sends a webhook, you insert into ledger, you approve.
# Never put card numbers in this ledger. Never.