From b7bff6027153c82b123157ea60ba4c8a2decc8f5 Mon Sep 17 00:00:00 2001 From: Leopere Date: Sun, 8 Feb 2026 16:45:14 -0500 Subject: [PATCH] Add standalone /tools page for bookmarkable quantum random tools Dedicated tools-only page at /tools with dice, password generator, coin flip, and 8 ball - each with its own click-to-copy output box. Clean, lightweight page without API docs/MCP/contact form clutter. Linked from the main page's QTRNG Tools section. Co-authored-by: Cursor --- src/index.html | 2 +- src/main.rs | 3 + src/tools.html | 326 +++++++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 330 insertions(+), 1 deletion(-) create mode 100644 src/tools.html diff --git a/src/index.html b/src/index.html index 4dd18a9..fcbb884 100644 --- a/src/index.html +++ b/src/index.html @@ -397,7 +397,7 @@

QTRNG Tools

-

Quantum dice, passwords, coin flips, and a Magic 8 Ball — all powered by quantum camera noise.

+

Quantum dice, passwords, coin flips, and a Magic 8 Ball — all powered by quantum camera noise. Standalone tools page →

Quantum Dice

diff --git a/src/main.rs b/src/main.rs index 8a3c906..39e864e 100644 --- a/src/main.rs +++ b/src/main.rs @@ -75,6 +75,7 @@ async fn main() -> Result<(), Box> { .route("/password", get(get_password)) .route("/coin", get(get_coin)) .route("/8ball", get(get_eightball)) + .route("/tools", get(tools_page)) .route("/health", get(health)) .route("/.well-known/mcp.json", get(mcp_wellknown)) .route("/.well-known/skill.md", get(get_skill_md)) @@ -90,6 +91,7 @@ async fn main() -> Result<(), Box> { } async fn index() -> Html<&'static str> { Html(INDEX_HTML) } +async fn tools_page() -> Html<&'static str> { Html(TOOLS_HTML) } async fn health() -> &'static str { "ok" } async fn get_docs() -> Html { @@ -423,4 +425,5 @@ async fn get_stream(Query(params): Query) -> Response { const INDEX_HTML: &str = include_str!("index.html"); +const TOOLS_HTML: &str = include_str!("tools.html"); const SKILL_MD: &str = include_str!("../skill.md"); diff --git a/src/tools.html b/src/tools.html new file mode 100644 index 0000000..28697e7 --- /dev/null +++ b/src/tools.html @@ -0,0 +1,326 @@ + + + + + + + Quantum Random Tools - Camera TRNG + + + + + + +
+ +
+ + ← Back to Camera TRNG +

Quantum Random Tools

+

Dice, passwords, coin flips, and a Magic 8 Ball — all from quantum camera noise.

+ + +
+

Quantum Dice

+
+
+ + +
+
+ + +
+ +
+
Roll some dice...
+
+ + +
+

Quantum Password

+
+
+ + +
+
+ + +
+
+ +
+ +
+
Generate a password...
+
+ + +
+

Quantum Coin Flip

+
+ +
+
Flip a coin...
+
+ + +
+

Quantum 8 Ball

+
+
+ + +
+ +
+ +
Shake the 8 ball...
+
+ +
Copied!
+ + + +