From c7eccf705dbe1d94b204cb7737b7e1333517cb55 Mon Sep 17 00:00:00 2001 From: Julien Calixte Date: Sun, 5 Apr 2026 12:31:03 +0200 Subject: [PATCH] Add Stripe-style API key generator and key favicon --- index.html | 2 +- public/favicon.svg | 11 ++- src/App.svelte | 85 +-------------------- src/lib/KeyGenerator.svelte | 146 ++++++++++++++++++++++++++++++++++++ 4 files changed, 161 insertions(+), 83 deletions(-) create mode 100644 src/lib/KeyGenerator.svelte diff --git a/index.html b/index.html index 8a28494..5966f25 100644 --- a/index.html +++ b/index.html @@ -4,7 +4,7 @@ - random + API Key Generator
diff --git a/public/favicon.svg b/public/favicon.svg index 6893eb1..3a93133 100644 --- a/public/favicon.svg +++ b/public/favicon.svg @@ -1 +1,10 @@ - \ No newline at end of file + + + + + + + + + + diff --git a/src/App.svelte b/src/App.svelte index dafc575..4290dd5 100644 --- a/src/App.svelte +++ b/src/App.svelte @@ -1,88 +1,11 @@
-
- - Svelte logo - Vite logo -
-
-

Get started

-

Edit src/App.svelte and save to test HMR

-
- -
- -
- -
-
- -

Documentation

-

Your questions, answered

- -
-
- -

Connect with us

-

Join the Vite community

- -
+

API Key Generator

+

Generate secure Stripe-style API keys

+
diff --git a/src/lib/KeyGenerator.svelte b/src/lib/KeyGenerator.svelte new file mode 100644 index 0000000..f5c958b --- /dev/null +++ b/src/lib/KeyGenerator.svelte @@ -0,0 +1,146 @@ + + +
+
+ + {revealed ? key : 'sk_live_' + '•'.repeat(32)} + + +
+ +
+ + +
+
+ +