faucet-server 0.0.6 → 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -4,31 +4,26 @@ A configurable EVM faucet server that dispenses testnet/devnet tokens with Proso
4
4
 
5
5
  ## Quick Start
6
6
 
7
- Run a local faucet server with a single command:
7
+ Run a local faucet server against your local chain, without captcha:
8
8
 
9
9
  ```bash
10
- npx faucet-server serve --port 3000
10
+ npx faucet-server --port 3000 --no-captcha
11
11
  ```
12
12
 
13
13
  Or install globally:
14
14
 
15
15
  ```bash
16
16
  npm install -g faucet-server
17
- serve --port 3000
17
+ faucet --port 3000 --no-captcha
18
18
  ```
19
19
 
20
- For local development without internet (disables captcha verification):
21
-
22
- ```bash
23
- npx faucet-server serve --port 3000 --no-captcha
24
- ```
20
+ The published package ships a prebuilt frontend, and a Prosopo **site key** can only be inlined at build time, so the captcha protected mode needs your own build. See [Deploy your own faucet](#deploy-your-own-faucet).
25
21
 
26
22
  **Configure via environment variables:**
27
23
 
28
24
  ```bash
29
- # Required: Prosopo captcha keys (get from https://prosopo.io/)
25
+ # Required unless --no-captcha: Prosopo secret key (get from https://prosopo.io/)
30
26
  export PROSOPO_SITE_PRIVATE_KEY=your_secret_key
31
- export VITE_PROSOPO_SITE_KEY=your_site_key
32
27
 
33
28
  # Required: Wallet with funds to dispense
34
29
  export FAUCET_PRIVATE_KEY=0x...your_wallet_private_key
@@ -36,18 +31,23 @@ export FAUCET_PRIVATE_KEY=0x...your_wallet_private_key
36
31
  # Required: Configure chains (format: amount_in_wei:rpc_endpoint)
37
32
  export CHAIN_31337=10000000000000000:http://localhost:8545
38
33
  export CHAIN_11155111=10000000000000000:https://eth-sepolia.g.alchemy.com/v2/KEY
34
+
35
+ # Recommended: persist rate limits across restarts (default is :memory:)
36
+ export DB=./faucet.db
39
37
  ```
40
38
 
41
39
  Then access the faucet at: `http://localhost:3000?chainId=31337&address=0x...`
42
40
 
43
41
  ## Features
44
42
 
45
- - 🔗 **Multi-chain support** — Configure any EVM chain via environment variables
46
- - 🤖 **Bot protection** — Integrated [Prosopo](https://prosopo.io/) captcha verification
47
- - 🚀 **Multiple deployment targets** — Cloudflare Workers or Node.js
48
- - ⚡ **Modern stack** — Svelte frontend, Hono API server, Viem for transactions
49
- - 📦 **Monorepo architecture** — Clean separation of frontend, server, and platform concerns
50
- - 🔧 **Development mode** — Disable captcha for localhost testing without internet
43
+ - 🔗 **Multi-chain support**: Configure any EVM chain via environment variables
44
+ - 🤖 **Bot protection**: Integrated [Prosopo](https://prosopo.io/) captcha verification, fail closed, single use tokens
45
+ - 🚰 **Abuse control**: Per address and per ip cooldowns, plus a recipient balance ceiling
46
+ - 🔒 **Secret rpc**: The rpc endpoint never leaves the server, clients follow their transaction through the api
47
+ - 🚀 **Multiple deployment targets**: Cloudflare Workers or Node.js
48
+ - ⚡ **Modern stack**: Svelte frontend, Hono API server, Viem for transactions
49
+ - 📦 **Monorepo architecture**: Clean separation of frontend, server, and platform concerns
50
+ - 🔧 **Development mode**: Disable captcha for localhost testing without internet
51
51
 
52
52
  ---
53
53
 
@@ -80,23 +80,28 @@ pnpm install
80
80
  The faucet requires configuration via environment variables. Copy the example files and fill in your values:
81
81
 
82
82
  **Frontend** ([`packages/frontend/.env`](packages/frontend/.env)):
83
+
83
84
  ```bash
84
85
  VITE_PROSOPO_SITE_KEY=your_prosopo_site_key
85
86
  ```
86
87
 
88
+ This one is inlined into the bundle at **build time**, not read at runtime. `pnpm build` refuses to produce a bundle without it (build with `ALLOW_NO_CAPTCHA=true` if the server runs with `DISABLE_CAPTCHA=true`). Remember to allowlist the domain you deploy to in the Prosopo portal for that site key.
89
+
87
90
  **Server** (choose your platform):
88
91
 
89
92
  For Node.js ([`platforms/nodejs/.env`](platforms/nodejs/.env)):
93
+
90
94
  ```bash
91
95
  PROSOPO_SITE_PRIVATE_KEY=your_prosopo_secret_key
92
96
  FAUCET_PRIVATE_KEY=0x...your_wallet_private_key
93
97
  CHAIN_31337=10000000000000000:http://localhost:8545
94
-
95
- # Optional: Disable captcha for localhost development (or use --no-captcha flag)
96
- DISABLE_CAPTCHA=true
98
+ DB=./faucet.db
97
99
  ```
98
100
 
101
+ For localhost development, pass `--no-captcha` on the command line (`pnpm nodejs:dev` already does) rather than putting `DISABLE_CAPTCHA=true` in a committed `.env`, so it can never follow you into a deployment.
102
+
99
103
  For Cloudflare Workers ([`platforms/cf-worker/.dev.vars`](platforms/cf-worker/.dev.vars.default)):
104
+
100
105
  ```bash
101
106
  PROSOPO_SITE_PRIVATE_KEY=your_prosopo_secret_key
102
107
  FAUCET_PRIVATE_KEY=0x...your_wallet_private_key
@@ -106,6 +111,21 @@ CHAIN_31337=10000000000000000:http://localhost:8545
106
111
  DISABLE_CAPTCHA=true
107
112
  ```
108
113
 
114
+ ##### All server variables
115
+
116
+ | Variable | Required | Default | Description |
117
+ |----------|----------|---------|-------------|
118
+ | `FAUCET_PRIVATE_KEY` | yes | | Wallet dispensing the funds |
119
+ | `PROSOPO_SITE_PRIVATE_KEY` | yes (unless captcha disabled) | | Prosopo secret key |
120
+ | `CHAIN_<CHAIN_ID>` | yes, at least one | | `<amount_in_wei>:<rpc_endpoint>` |
121
+ | `DB` (node only) | no | `:memory:` | libsql url or file path. In memory means rate limits reset on restart |
122
+ | `DISABLE_CAPTCHA` | no | `false` | `true` skips captcha entirely. Localhost only |
123
+ | `CAPTCHA_FAIL_OPEN` | no | `false` | `true` keeps dispensing when Prosopo is unreachable |
124
+ | `CORS_ORIGINS` | no | `https://jolly-roger.eth.limo` | Comma separated origins allowed to call the api cross-origin, or `*` |
125
+ | `CLAIM_COOLDOWN_SECONDS` | no | `86400` | Cooldown between two claims for the same address on the same chain |
126
+ | `IP_COOLDOWN_SECONDS` | no | same as above | Cooldown for the same ip |
127
+ | `MAX_RECIPIENT_BALANCE` | no | 10x the chain amount | Refuse addresses already holding this much (wei). `0` disables |
128
+
109
129
  #### Chain Configuration
110
130
 
111
131
  Chains are configured using the `CHAIN_<CHAIN_ID>` environment variable format:
@@ -115,6 +135,7 @@ CHAIN_<CHAIN_ID>=<amount_in_wei>:<rpc_endpoint>
115
135
  ```
116
136
 
117
137
  **Examples:**
138
+
118
139
  ```bash
119
140
  # Local development (anvil/hardhat)
120
141
  CHAIN_31337=10000000000000000:http://localhost:8545
@@ -126,6 +147,21 @@ CHAIN_11155111=10000000000000000:https://eth-sepolia.g.alchemy.com/v2/YOUR_KEY
126
147
  CHAIN_421614=10000000000000000:https://sepolia-rollup.arbitrum.io/rpc
127
148
  ```
128
149
 
150
+ The rpc endpoint is treated as a **secret**: it is never returned to clients, so it is safe to embed a provider api key in it. Set it with `pnpm exec wrangler secret put` rather than as a plain var.
151
+
152
+ #### Abuse protection
153
+
154
+ Every claim goes through, in order:
155
+
156
+ 1. **Captcha token replay check**: each Procaptcha token can only be spent once.
157
+ 2. **Captcha verification**: Prosopo answers `verified: true, score: 0` when *their* provider times out, which is a fail open. The server treats that as "unavailable" and refuses to dispense unless `CAPTCHA_FAIL_OPEN=true`. Prosopo Premium customers also get a real `score` of 0 for genuine humans, so those accounts should set `CAPTCHA_FAIL_OPEN=true` and lean on the rate limiter.
158
+ 3. **Recipient balance ceiling**: addresses already holding `MAX_RECIPIENT_BALANCE` are turned away.
159
+ 4. **Rate limit**: one claim per address and per ip per `CLAIM_COOLDOWN_SECONDS`, reserved atomically before the transaction is sent and released if it fails.
160
+ 5. **Faucet balance preflight**: an empty faucet answers `503` with a clear message instead of a raw rpc error.
161
+ 6. **Per chain send lock**: concurrent claims cannot pick the same nonce. The lock is time boxed (30s) so a crashed request cannot wedge the faucet.
162
+
163
+ Steps 1, 4 and 6 need the database, so a faucet without a real `DB` (node) or D1 binding (workers) will not start dispensing.
164
+
129
165
  ### Running Locally
130
166
 
131
167
  Start the full development environment using Zellij:
@@ -162,29 +198,151 @@ pnpm build:server
162
198
 
163
199
  ### Deployment
164
200
 
165
- #### Cloudflare Workers
201
+ See [Deploy your own faucet](#deploy-your-own-faucet).
202
+
203
+ ---
166
204
 
167
- 1. Configure your [`wrangler.toml`](platforms/cf-worker/wrangler.toml)
168
- 2. Set secrets in Cloudflare dashboard or via CLI:
169
- ```bash
170
- wrangler secret put PROSOPO_SITE_PRIVATE_KEY
171
- wrangler secret put FAUCET_PRIVATE_KEY
172
- ```
173
- 3. Deploy:
174
- ```bash
175
- pnpm deploy:cf
176
- ```
205
+ ## Deploy your own faucet
177
206
 
178
- #### Node.js
207
+ This walks through a public deployment from nothing, on Cloudflare Workers or on any Node.js host. Budget about 20 minutes.
179
208
 
180
- Build and run the Node.js server:
209
+ ### What you need first
210
+
211
+ | Thing | Why | Where |
212
+ |-------|-----|-------|
213
+ | A dedicated wallet | It dispenses the funds, and its private key lives in your deployment. Never reuse a wallet that holds anything you care about | any wallet, or `cast wallet new` |
214
+ | Testnet funds | The faucet can only give away what it holds | a public faucet for the chain, or your own funds |
215
+ | A Prosopo account | Bot protection. You need both the **site key** (public, goes in the frontend) and the **secret key** (server side) | [portal.prosopo.io](https://portal.prosopo.io) |
216
+ | An rpc endpoint per chain | To send transactions and read balances | any provider, or a public endpoint |
217
+ | A Cloudflare account | Only for the Workers path | [dash.cloudflare.com](https://dash.cloudflare.com) |
218
+
219
+ ### 1. Get the code
181
220
 
182
221
  ```bash
183
- pnpm build
222
+ git clone https://github.com/wighawag/faucet.git
223
+ cd faucet
224
+ pnpm install
225
+ ```
226
+
227
+ ### 2. Prepare the wallet
228
+
229
+ ```bash
230
+ cast wallet new # or any tool you trust
231
+ ```
232
+
233
+ Keep the private key for step 5 and send the address the funds you want to give away. The faucet stops dispensing (and answers `503`) as soon as its balance can no longer cover one claim plus gas, so top it up before it runs dry.
234
+
235
+ ### 3. Prepare the captcha keys
236
+
237
+ In the Prosopo portal, create a site and **allowlist the domain you will deploy to**. A site key that does not list your domain renders a widget that never returns a token, and nobody can claim. Note both keys down.
238
+
239
+ ### 4. Decide what each chain gives away
240
+
241
+ One variable per chain, `CHAIN_<CHAIN_ID>=<amount_in_wei>:<rpc_endpoint>`. For example 0.01 ETH on Sepolia:
242
+
243
+ ```
244
+ CHAIN_11155111=10000000000000000:https://eth-sepolia.example.com/v2/YOUR_KEY
245
+ ```
246
+
247
+ The rpc endpoint never leaves the server, so an api key in that url is safe. Treat the whole variable as a secret anyway.
248
+
249
+ ### 5a. Deploy to Cloudflare Workers
250
+
251
+ Log in to Cloudflare first, everything below talks to your account:
252
+
253
+ ```bash
254
+ pnpm --filter faucet-server-cf-worker exec wrangler login
255
+ ```
256
+
257
+ The faucet needs a D1 database for its rate limits. Create it once:
258
+
259
+ ```bash
260
+ pnpm cf-worker:create-db
261
+ ```
262
+
263
+ Paste the id it prints into [`wrangler.toml`](platforms/cf-worker/wrangler.toml), under `env.production.d1_databases[0].database_id`, then create the tables in it:
264
+
265
+ ```bash
266
+ pnpm cf-worker:init-db
267
+ ```
268
+
269
+ Set the secrets. They are environment scoped, and every script here deploys with `-e production`, so the `--env production` flag is not optional. Wrangler is a devDependency, so use `pnpm exec` from inside the `cf-worker` package to run it:
270
+
271
+ ```bash
272
+ cd platforms/cf-worker
273
+ pnpm exec wrangler secret put PROSOPO_SITE_PRIVATE_KEY --env production
274
+ pnpm exec wrangler secret put FAUCET_PRIVATE_KEY --env production
275
+ pnpm exec wrangler secret put CHAIN_11155111 --env production # 10000000000000000:https://...
276
+ cd ../..
277
+ ```
278
+
279
+ Point `CORS_ORIGINS` at the site that will open the faucet popup, in `[env.production.vars]` of `wrangler.toml`. Leave it out entirely if only the faucet page itself calls the api.
280
+
281
+ Build and deploy. The captcha site key is inlined into the bundle at build time, so it has to be present in either `packages/frontend/.env.local` or as `VITE_PROSOPO_SITE_KEY` in the environment. The `deploy:cf` script runs the full build first, so there is no way to deploy without the site key being set:
282
+
283
+ ```bash
284
+ pnpm deploy:cf
285
+ ```
286
+
287
+ ### 5b. Deploy to Node.js
288
+
289
+ ```bash
290
+ VITE_PROSOPO_SITE_KEY=your_site_key pnpm build
184
291
  cd platforms/nodejs
185
- node dist/cli.js
292
+
293
+ DB=./faucet.db \
294
+ PROSOPO_SITE_PRIVATE_KEY=your_secret_key \
295
+ FAUCET_PRIVATE_KEY=0x... \
296
+ CHAIN_11155111=10000000000000000:https://... \
297
+ CORS_ORIGINS=https://your-dapp.example.com \
298
+ node dist/cli.js --port 3000
299
+ ```
300
+
301
+ Two things matter in production here. Set `DB` to a real path or libsql url: the default `:memory:` forgets every rate limit when the process restarts. And put the server behind a proxy that sets `X-Forwarded-For` (or `CF-Connecting-IP`), otherwise the per ip limit is skipped and only the per address one applies.
302
+
303
+ The published package takes the same variables without cloning anything, though you then get the frontend that was built at publish time, with the site key of whoever published it. That path only makes sense with `--no-captcha` on localhost:
304
+
305
+ ```bash
306
+ npx faucet-server --port 3000 --no-captcha
307
+ ```
308
+
309
+ ### 6. Check it actually works
310
+
311
+ Replace `FAUCET` with your deployed url:
312
+
313
+ ```bash
314
+ # captcha must be ON in production
315
+ curl -s $FAUCET/api/config # {"captchaDisabled":false}
316
+
317
+ # the chain must be configured, and the rpc must NOT be in the answer
318
+ curl -s $FAUCET/api/chain/11155111 # {"chainId":11155111,"amount":"10000000000000000"}
319
+
320
+ # a claim without a real captcha token must be refused
321
+ curl -s -X POST $FAUCET/api/claim -H 'Content-Type: application/json' \
322
+ -d '{"token":"nope","chainId":"11155111","address":"0x0000000000000000000000000000000000000001"}'
186
323
  ```
187
324
 
325
+ Then open `$FAUCET/?chainId=11155111&address=0xYourAddress` in a browser, solve the captcha, and claim. If the button stays greyed out, the captcha widget never returned a token: check the site key and its domain allowlist.
326
+
327
+ ### 7. Running it
328
+
329
+ - **Funding.** Watch the faucet balance. When it can no longer cover a claim plus gas, users get a clear `503` and the server logs `faucet 0x... is out of funds on chain ...`.
330
+ - **Tuning the limits.** `CLAIM_COOLDOWN_SECONDS`, `IP_COOLDOWN_SECONDS` and `MAX_RECIPIENT_BALANCE` decide how fast the faucet can be drained. The defaults give one claim per address and per ip per day, and refuse addresses already holding ten times the dispensed amount.
331
+ - **Rotating the wallet.** Set the new `FAUCET_PRIVATE_KEY` secret and redeploy. Nothing else stores the address.
332
+ - **Adding a chain.** Add another `CHAIN_<id>` secret and redeploy. No code change, no database change.
333
+
334
+ ### If something is wrong
335
+
336
+ | Symptom | Cause |
337
+ |---------|-------|
338
+ | Build fails with `VITE_PROSOPO_SITE_KEY is not set` | Working as intended: set the site key in `packages/frontend/.env.local` or pass `VITE_PROSOPO_SITE_KEY=...` to `pnpm build`. The `deploy:cf` script runs the build first, so there is no way to deploy without it. Use `ALLOW_NO_CAPTCHA=true` only if the server runs with `DISABLE_CAPTCHA=true` |
339
+ | Claim button never enables | The captcha widget got no token: wrong site key, or your domain is not allowlisted in the Prosopo portal |
340
+ | `the D1 binding "DB" is missing` | `database_id` was never filled in, or the binding is not under `[env.production]` |
341
+ | `no such table: Claims` | `pnpm cf-worker:init-db` was not run against the remote database |
342
+ | Every claim answers `503` about the captcha provider | Prosopo is unreachable and the faucet fails closed by design. Set `CAPTCHA_FAIL_OPEN=true` only if you accept that bots get through during outages |
343
+ | Rate limits reset all the time (node) | `DB` is still `:memory:` |
344
+ | Everyone shares one ip bucket, or nobody is ip limited | The proxy in front does not forward the client ip |
345
+
188
346
  ---
189
347
 
190
348
  ## Usage
@@ -203,11 +361,36 @@ https://your-faucet.example.com?chainId=11155111&address=0x...
203
361
 
204
362
  ## API Reference
205
363
 
364
+ ### GET `/api/config`
365
+
366
+ ```json
367
+ {"captchaDisabled": false}
368
+ ```
369
+
370
+ ### GET `/api/chain/:chainId`
371
+
372
+ Amount dispensed on that chain, in wei. `404` when the chain is not configured. The rpc endpoint is deliberately not exposed.
373
+
374
+ ```json
375
+ {"chainId": 11155111, "amount": "10000000000000000"}
376
+ ```
377
+
378
+ ### GET `/api/tx/:chainId/:txHash`
379
+
380
+ Follows a dispensed transaction server side.
381
+
382
+ ```json
383
+ {"status": "pending"}
384
+ {"status": "success", "blockNumber": "5123456"}
385
+ {"status": "failed", "blockNumber": "5123456"}
386
+ ```
387
+
206
388
  ### POST `/api/claim`
207
389
 
208
390
  Request funds from the faucet.
209
391
 
210
392
  **Request Body:**
393
+
211
394
  ```json
212
395
  {
213
396
  "token": "prosopo_captcha_token",
@@ -217,6 +400,7 @@ Request funds from the faucet.
217
400
  ```
218
401
 
219
402
  **Success Response:**
403
+
220
404
  ```json
221
405
  {
222
406
  "success": true,
@@ -225,17 +409,26 @@ Request funds from the faucet.
225
409
  ```
226
410
 
227
411
  **Error Response:**
412
+
228
413
  ```json
229
414
  {
230
415
  "error": "Error message"
231
416
  }
232
417
  ```
233
418
 
419
+ | Status | Meaning |
420
+ |--------|---------|
421
+ | `400` | Bad input, unconfigured chain, or recipient already funded |
422
+ | `401` | Captcha failed or token already used |
423
+ | `429` | Cooldown still running, see the `Retry-After` header and `retryAfter` field |
424
+ | `503` | Captcha provider unreachable, rpc unreachable, faucet empty, or faucet busy |
425
+
234
426
  ## Project Structure
235
427
 
236
428
  ```
237
429
  faucet/
238
430
  ├── packages/
431
+ │ ├── client/ # Popup client library for dapps
239
432
  │ ├── frontend/ # Svelte SPA with captcha integration
240
433
  │ └── server/ # Hono API server (platform-agnostic)
241
434
  ├── platforms/
package/dist/cli.js CHANGED
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env node
2
2
  import "named-logs-context";
3
- import { createServer } from "faucet-server-app";
3
+ import { createServer, setupDB } from "faucet-server-app";
4
4
  import { serve } from "@hono/node-server";
5
5
  import { serveStatic } from "@hono/node-server/serve-static";
6
6
  import { RemoteLibSQL } from "remote-sql-libsql";
@@ -33,11 +33,24 @@ async function main() {
33
33
  process.env.DISABLE_CAPTCHA = "true";
34
34
  }
35
35
  const env = process.env;
36
+ if (env.DISABLE_CAPTCHA === "true") {
37
+ console.warn(`WARNING: captcha verification is DISABLED, anyone can drain this faucet. Never do this outside localhost.`);
38
+ }
36
39
  const db = env.DB || ":memory:";
40
+ // libsql wants a url: accept a plain file path too (DB=./faucet.db)
41
+ const dbUrl = db === ":memory:" || db.includes("://") || db.startsWith("file:")
42
+ ? db
43
+ : `file:${db}`;
37
44
  const client = createClient({
38
- url: db,
45
+ url: dbUrl,
39
46
  });
40
47
  const remoteSQL = new RemoteLibSQL(client);
48
+ // rate limiting, captcha replay protection and nonce serialisation all need
49
+ // these tables, and they are cheap to (re)create on every boot
50
+ await setupDB(remoteSQL);
51
+ if (db === ":memory:") {
52
+ console.warn(`WARNING: using an in-memory database, every rate limit is forgotten on restart. Set DB to a file path (DB=./faucet.db) or a libsql url for a public deployment.`);
53
+ }
41
54
  // Create server app (includes API routes under /api)
42
55
  const app = createServer({
43
56
  getDB: () => remoteSQL,
@@ -51,10 +64,6 @@ async function main() {
51
64
  // Fallback to index.html for SPA (any request that didn't match static files)
52
65
  app.get("*", serveStatic({ root: staticDir, path: "/index.html" }));
53
66
  }
54
- if (db === ":memory:") {
55
- // console.log(`executing setup...`);
56
- // can fetch an admin route with the token if needed
57
- }
58
67
  serve({
59
68
  fetch: app.fetch,
60
69
  port,
package/dist/cli.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"cli.js","sourceRoot":"","sources":["../src/cli.ts"],"names":[],"mappings":";AACA,OAAO,oBAAoB,CAAC;AAC5B,OAAO,EAAE,YAAY,EAAY,MAAM,mBAAmB,CAAC;AAC3D,OAAO,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAC1C,OAAO,EAAE,WAAW,EAAE,MAAM,gCAAgC,CAAC;AAC7D,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AACjD,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EAAE,MAAM,SAAS,CAAC;AACzB,OAAO,IAAI,MAAM,WAAW,CAAC;AAC7B,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AAEhC,MAAM,SAAS,GAAG,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC;A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,EAAE,CAAC,GAAG;KAClB,CAAC,CAAC;IAEH,yCAAyC;IACzC,MAAM,SAAS,GAAG,IAAI,CAAC,IAAI,CAAC,SAAS,EAAE,WAAW,CAAC,CAAC;IACpD,IAAI,EAAE,CAAC,UAAU,CAAC,SAAS,CAAC,EAAE,CAAC;QAC7B,sBAAsB;QACtB,GAAG,CAAC,GAAG,CAAC,IAAI,EAAE,WAAW,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC,CAAC,CAAC;QAEhD,8EAA8E;QAC9E,GAAG,CAAC,GAAG,CAAC,GAAG,EAAE,WAAW,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,aAAa,EAAE,CAAC,CAAC,CAAC;IACtE,CAAC;IAED,KAAK,CAAC;QACJ,KAAK,EAAE,GAAG,CAAC,KAAK;QAChB,IAAI;KACL,CAAC,CAAC;IAEH,OAAO,CAAC,GAAG,CAAC,yCAAyC,IAAI,EAAE,CAAC,CAAC;AAC/D,CAAC;AACD,IAAI,EAAE,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "faucet-server",
3
- "version": "0.0.6",
3
+ "version": "0.1.0",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -14,13 +14,13 @@
14
14
  "static"
15
15
  ],
16
16
  "dependencies": {
17
- "@hono/node-server": "^1.19.12",
17
+ "@hono/node-server": "^2.0.12",
18
18
  "@libsql/client": "^0.17.2",
19
19
  "commander": "^14.0.3",
20
20
  "ldenv": "^0.5.0",
21
21
  "named-logs-context": "^0.1.1",
22
22
  "remote-sql-libsql": "^0.0.7",
23
- "faucet-server-app": "0.0.5"
23
+ "faucet-server-app": "0.1.0"
24
24
  },
25
25
  "devDependencies": {
26
26
  "@types/node": "^25.5.0",
@@ -30,7 +30,7 @@
30
30
  "typescript": "^5.9.3"
31
31
  },
32
32
  "scripts": {
33
- "dev": "tsx watch src/cli.ts --port 30042",
33
+ "dev": "tsx watch src/cli.ts --port 30042 --no-captcha",
34
34
  "build": "tsc",
35
35
  "build:watch": "as-soon -w src tsc"
36
36
  }
package/src/cli.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env node
2
2
  import "named-logs-context";
3
- import { createServer, type Env } from "faucet-server-app";
3
+ import { createServer, setupDB, type Env } from "faucet-server-app";
4
4
  import { serve } from "@hono/node-server";
5
5
  import { serveStatic } from "@hono/node-server/serve-static";
6
6
  import { RemoteLibSQL } from "remote-sql-libsql";
@@ -58,13 +58,35 @@ async function main() {
58
58
 
59
59
  const env = process.env as NodeJSEnv;
60
60
 
61
+ if (env.DISABLE_CAPTCHA === "true") {
62
+ console.warn(
63
+ `WARNING: captcha verification is DISABLED, anyone can drain this faucet. Never do this outside localhost.`,
64
+ );
65
+ }
66
+
61
67
  const db = env.DB || ":memory:";
62
68
 
69
+ // libsql wants a url: accept a plain file path too (DB=./faucet.db)
70
+ const dbUrl =
71
+ db === ":memory:" || db.includes("://") || db.startsWith("file:")
72
+ ? db
73
+ : `file:${db}`;
74
+
63
75
  const client = createClient({
64
- url: db,
76
+ url: dbUrl,
65
77
  });
66
78
  const remoteSQL = new RemoteLibSQL(client);
67
79
 
80
+ // rate limiting, captcha replay protection and nonce serialisation all need
81
+ // these tables, and they are cheap to (re)create on every boot
82
+ await setupDB(remoteSQL);
83
+
84
+ if (db === ":memory:") {
85
+ console.warn(
86
+ `WARNING: using an in-memory database, every rate limit is forgotten on restart. Set DB to a file path (DB=./faucet.db) or a libsql url for a public deployment.`,
87
+ );
88
+ }
89
+
68
90
  // Create server app (includes API routes under /api)
69
91
  const app = createServer<NodeJSEnv>({
70
92
  getDB: () => remoteSQL,
@@ -81,11 +103,6 @@ async function main() {
81
103
  app.get("*", serveStatic({ root: staticDir, path: "/index.html" }));
82
104
  }
83
105
 
84
- if (db === ":memory:") {
85
- // console.log(`executing setup...`);
86
- // can fetch an admin route with the token if needed
87
- }
88
-
89
106
  serve({
90
107
  fetch: app.fetch,
91
108
  port,
@@ -0,0 +1,2 @@
1
+ /*! tailwindcss v4.2.2 | MIT License | https://tailwindcss.com */
2
+ @layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-space-y-reverse:0;--tw-border-style:solid;--tw-leading:initial;--tw-font-weight:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-outline-style:solid;--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0;--tw-animation-delay:0s;--tw-animation-direction:normal;--tw-animation-duration:initial;--tw-animation-fill-mode:none;--tw-animation-iteration-count:1;--tw-enter-blur:0;--tw-enter-opacity:1;--tw-enter-rotate:0;--tw-enter-scale:1;--tw-enter-translate-x:0;--tw-enter-translate-y:0;--tw-exit-blur:0;--tw-exit-opacity:1;--tw-exit-rotate:0;--tw-exit-scale:1;--tw-exit-translate-x:0;--tw-exit-translate-y:0}}}@layer theme{:root,:host{--font-mono:ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;--color-amber-50:oklch(98.7% .022 95.277);--color-amber-200:oklch(92.4% .12 95.746);--color-amber-300:oklch(87.9% .169 91.605);--color-amber-600:oklch(66.6% .179 58.318);--color-amber-700:oklch(55.5% .163 48.998);--color-amber-800:oklch(47.3% .137 46.201);--color-amber-900:oklch(41.4% .112 45.904);--color-amber-950:oklch(27.9% .077 45.635);--color-green-50:oklch(98.2% .018 155.826);--color-green-200:oklch(92.5% .084 155.995);--color-green-300:oklch(87.1% .15 154.449);--color-green-700:oklch(52.7% .154 150.069);--color-green-800:oklch(44.8% .119 151.328);--color-green-900:oklch(39.3% .095 152.535);--color-green-950:oklch(26.6% .065 152.934);--spacing:.25rem;--container-md:28rem;--text-xs:.75rem;--text-xs--line-height:calc(1 / .75);--text-sm:.875rem;--text-sm--line-height:calc(1.25 / .875);--text-base:1rem;--text-base--line-height:calc(1.5 / 1);--text-2xl:1.5rem;--text-2xl--line-height:calc(2 / 1.5);--font-weight-medium:500;--leading-normal:1.5;--radius-md:calc(var(--radius) * .8);--animate-spin:spin 1s linear infinite;--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4, 0, .2, 1);--default-font-family:"Inter Variable", sans-serif;--default-mono-font-family:var(--font-mono)}}@layer base{*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;tab-size:4;line-height:1.5;font-family:var(--default-font-family,ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--default-mono-font-family,ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring{outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab, red, red)){::placeholder{color:color-mix(in oklab, currentcolor 50%, transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){appearance:button}::file-selector-button{appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}*{border-color:var(--border);outline-color:var(--ring)}@supports (color:color-mix(in lab, red, red)){*{outline-color:color-mix(in oklab, var(--ring) 50%, transparent)}}body{background-color:var(--background);color:var(--foreground)}html{font-family:Inter Variable,sans-serif}}@layer components;@layer utilities{.\@container\/card-header{container:card-header/inline-size}.absolute{position:absolute}.relative{position:relative}.top-2\.5{top:calc(var(--spacing) * 2.5)}.right-3{right:calc(var(--spacing) * 3)}.col-start-2{grid-column-start:2}.row-span-2{grid-row:span 2/span 2}.row-start-1{grid-row-start:1}.mt-2{margin-top:calc(var(--spacing) * 2)}.mr-2{margin-right:calc(var(--spacing) * 2)}.block{display:block}.flex{display:flex}.grid{display:grid}.inline-block{display:inline-block}.inline-flex{display:inline-flex}.size-6{width:calc(var(--spacing) * 6);height:calc(var(--spacing) * 6)}.size-8{width:calc(var(--spacing) * 8);height:calc(var(--spacing) * 8)}.size-9{width:calc(var(--spacing) * 9);height:calc(var(--spacing) * 9)}.size-10{width:calc(var(--spacing) * 10);height:calc(var(--spacing) * 10)}.h-4{height:calc(var(--spacing) * 4)}.h-6{height:calc(var(--spacing) * 6)}.h-8{height:calc(var(--spacing) * 8)}.h-9{height:calc(var(--spacing) * 9)}.h-10{height:calc(var(--spacing) * 10)}.min-h-screen{min-height:100vh}.w-4{width:calc(var(--spacing) * 4)}.w-8{width:calc(var(--spacing) * 8)}.w-full{width:100%}.max-w-\[200px\]{max-width:200px}.max-w-md{max-width:var(--container-md)}.shrink-0{flex-shrink:0}.animate-spin{animation:var(--animate-spin)}.auto-rows-min{grid-auto-rows:min-content}.flex-col{flex-direction:column}.items-center{align-items:center}.items-start{align-items:flex-start}.justify-between{justify-content:space-between}.justify-center{justify-content:center}.gap-0\.5{gap:calc(var(--spacing) * .5)}.gap-1{gap:calc(var(--spacing) * 1)}.gap-1\.5{gap:calc(var(--spacing) * 1.5)}.gap-2{gap:calc(var(--spacing) * 2)}.gap-6{gap:calc(var(--spacing) * 6)}:where(.space-y-1>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 1) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 1) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-2>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 2) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 2) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-3>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 3) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 3) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-4>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 4) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 4) * calc(1 - var(--tw-space-y-reverse)))}.self-start{align-self:flex-start}.justify-self-end{justify-self:flex-end}.truncate{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.overflow-hidden{overflow:hidden}.rounded{border-radius:.25rem}.rounded-\[min\(var\(--radius-md\)\,8px\)\]{border-radius:min(var(--radius-md), 8px)}.rounded-\[min\(var\(--radius-md\)\,10px\)\]{border-radius:min(var(--radius-md), 10px)}.rounded-full{border-radius:3.40282e38px}.rounded-lg{border-radius:var(--radius)}.rounded-md{border-radius:calc(var(--radius) * .8)}.rounded-xl{border-radius:calc(var(--radius) * 1.4)}.rounded-t-xl{border-top-left-radius:calc(var(--radius) * 1.4);border-top-right-radius:calc(var(--radius) * 1.4)}.rounded-b-xl{border-bottom-right-radius:calc(var(--radius) * 1.4);border-bottom-left-radius:calc(var(--radius) * 1.4)}.border{border-style:var(--tw-border-style);border-width:1px}.border-2{border-style:var(--tw-border-style);border-width:2px}.border-4{border-style:var(--tw-border-style);border-width:4px}.border-amber-200{border-color:var(--color-amber-200)}.border-border{border-color:var(--border)}.border-current{border-color:currentColor}.border-green-200{border-color:var(--color-green-200)}.border-primary{border-color:var(--primary)}.border-primary-foreground{border-color:var(--primary-foreground)}.border-transparent{border-color:#0000}.border-t-transparent{border-top-color:#0000}.bg-amber-50{background-color:var(--color-amber-50)}.bg-background{background-color:var(--background)}.bg-card{background-color:var(--card)}.bg-destructive\/10{background-color:var(--destructive)}@supports (color:color-mix(in lab, red, red)){.bg-destructive\/10{background-color:color-mix(in oklab, var(--destructive) 10%, transparent)}}.bg-green-50{background-color:var(--color-green-50)}.bg-muted{background-color:var(--muted)}.bg-primary{background-color:var(--primary)}.bg-secondary{background-color:var(--secondary)}.bg-clip-padding{background-clip:padding-box}.p-2{padding:calc(var(--spacing) * 2)}.p-4{padding:calc(var(--spacing) * 4)}.px-1{padding-inline:calc(var(--spacing) * 1)}.px-2{padding-inline:calc(var(--spacing) * 2)}.px-2\.5{padding-inline:calc(var(--spacing) * 2.5)}.px-4{padding-inline:calc(var(--spacing) * 4)}.px-6{padding-inline:calc(var(--spacing) * 6)}.py-0\.5{padding-block:calc(var(--spacing) * .5)}.py-1{padding-block:calc(var(--spacing) * 1)}.py-3{padding-block:calc(var(--spacing) * 3)}.py-6{padding-block:calc(var(--spacing) * 6)}.py-8{padding-block:calc(var(--spacing) * 8)}.text-center{text-align:center}.text-left{text-align:left}.font-mono{font-family:var(--font-mono)}.text-2xl{font-size:var(--text-2xl);line-height:var(--tw-leading,var(--text-2xl--line-height))}.text-base{font-size:var(--text-base);line-height:var(--tw-leading,var(--text-base--line-height))}.text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.text-xs{font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}.leading-normal{--tw-leading:var(--leading-normal);line-height:var(--leading-normal)}.font-medium{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.text-balance{text-wrap:balance}.break-all{word-break:break-all}.whitespace-nowrap{white-space:nowrap}.text-amber-600{color:var(--color-amber-600)}.text-amber-800{color:var(--color-amber-800)}.text-card-foreground{color:var(--card-foreground)}.text-destructive{color:var(--destructive)}.text-green-800{color:var(--color-green-800)}.text-muted-foreground{color:var(--muted-foreground)}.text-primary{color:var(--primary)}.text-primary-foreground{color:var(--primary-foreground)}.text-secondary-foreground{color:var(--secondary-foreground)}.underline-offset-4{text-underline-offset:4px}.opacity-75{opacity:.75}.shadow-xs{--tw-shadow:0 1px 2px 0 var(--tw-shadow-color,#0000000d);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.ring-1{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.ring-foreground\/10{--tw-ring-color:var(--foreground)}@supports (color:color-mix(in lab, red, red)){.ring-foreground\/10{--tw-ring-color:color-mix(in oklab, var(--foreground) 10%, transparent)}}.outline{outline-style:var(--tw-outline-style);outline-width:1px}.transition-all{transition-property:all;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.outline-none{--tw-outline-style:none;outline-style:none}.select-none{-webkit-user-select:none;user-select:none}.group-has-\[\>svg\]\/alert\:col-start-2:is(:where(.group\/alert):has(>svg) *){grid-column-start:2}.group-data-\[size\=sm\]\/card\:px-4:is(:where(.group\/card)[data-size=sm] *){padding-inline:calc(var(--spacing) * 4)}.group-data-\[size\=sm\]\/card\:text-sm:is(:where(.group\/card)[data-size=sm] *){font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}@media (hover:hover){.hover\:bg-destructive\/20:hover{background-color:var(--destructive)}@supports (color:color-mix(in lab, red, red)){.hover\:bg-destructive\/20:hover{background-color:color-mix(in oklab, var(--destructive) 20%, transparent)}}.hover\:bg-muted:hover{background-color:var(--muted)}.hover\:bg-primary\/80:hover{background-color:var(--primary)}@supports (color:color-mix(in lab, red, red)){.hover\:bg-primary\/80:hover{background-color:color-mix(in oklab, var(--primary) 80%, transparent)}}.hover\:bg-secondary\/80:hover{background-color:var(--secondary)}@supports (color:color-mix(in lab, red, red)){.hover\:bg-secondary\/80:hover{background-color:color-mix(in oklab, var(--secondary) 80%, transparent)}}.hover\:text-foreground:hover{color:var(--foreground)}.hover\:underline:hover{text-decoration-line:underline}}.focus-visible\:border-destructive\/40:focus-visible{border-color:var(--destructive)}@supports (color:color-mix(in lab, red, red)){.focus-visible\:border-destructive\/40:focus-visible{border-color:color-mix(in oklab, var(--destructive) 40%, transparent)}}.focus-visible\:border-ring:focus-visible{border-color:var(--ring)}.focus-visible\:ring-3:focus-visible{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.focus-visible\:ring-destructive\/20:focus-visible{--tw-ring-color:var(--destructive)}@supports (color:color-mix(in lab, red, red)){.focus-visible\:ring-destructive\/20:focus-visible{--tw-ring-color:color-mix(in oklab, var(--destructive) 20%, transparent)}}.focus-visible\:ring-ring\/50:focus-visible{--tw-ring-color:var(--ring)}@supports (color:color-mix(in lab, red, red)){.focus-visible\:ring-ring\/50:focus-visible{--tw-ring-color:color-mix(in oklab, var(--ring) 50%, transparent)}}.active\:translate-y-px:active{--tw-translate-y:1px;translate:var(--tw-translate-x) var(--tw-translate-y)}.disabled\:pointer-events-none:disabled{pointer-events:none}.disabled\:opacity-50:disabled{opacity:.5}:where([data-slot=button-group]) .in-data-\[slot\=button-group\]\:rounded-md{border-radius:calc(var(--radius) * .8)}.has-data-\[icon\=inline-end\]\:pr-1\.5:has([data-icon=inline-end]){padding-right:calc(var(--spacing) * 1.5)}.has-data-\[icon\=inline-end\]\:pr-2:has([data-icon=inline-end]){padding-right:calc(var(--spacing) * 2)}.has-data-\[icon\=inline-end\]\:pr-3:has([data-icon=inline-end]){padding-right:calc(var(--spacing) * 3)}.has-data-\[icon\=inline-start\]\:pl-1\.5:has([data-icon=inline-start]){padding-left:calc(var(--spacing) * 1.5)}.has-data-\[icon\=inline-start\]\:pl-2:has([data-icon=inline-start]){padding-left:calc(var(--spacing) * 2)}.has-data-\[icon\=inline-start\]\:pl-3:has([data-icon=inline-start]){padding-left:calc(var(--spacing) * 3)}.has-data-\[slot\=alert-action\]\:relative:has([data-slot=alert-action]){position:relative}.has-data-\[slot\=alert-action\]\:pr-18:has([data-slot=alert-action]){padding-right:calc(var(--spacing) * 18)}.has-data-\[slot\=card-action\]\:grid-cols-\[1fr_auto\]:has([data-slot=card-action]){grid-template-columns:1fr auto}.has-data-\[slot\=card-description\]\:grid-rows-\[auto_auto\]:has([data-slot=card-description]){grid-template-rows:auto auto}.has-\[\>img\:first-child\]\:pt-0:has(>img:first-child){padding-top:calc(var(--spacing) * 0)}.has-\[\>svg\]\:grid-cols-\[auto_1fr\]:has(>svg){grid-template-columns:auto 1fr}.has-\[\>svg\]\:gap-x-2\.5:has(>svg){column-gap:calc(var(--spacing) * 2.5)}.aria-expanded\:bg-muted[aria-expanded=true]{background-color:var(--muted)}.aria-expanded\:bg-secondary[aria-expanded=true]{background-color:var(--secondary)}.aria-expanded\:text-foreground[aria-expanded=true]{color:var(--foreground)}.aria-expanded\:text-secondary-foreground[aria-expanded=true]{color:var(--secondary-foreground)}.aria-invalid\:border-destructive[aria-invalid=true]{border-color:var(--destructive)}.aria-invalid\:ring-3[aria-invalid=true]{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.aria-invalid\:ring-destructive\/20[aria-invalid=true]{--tw-ring-color:var(--destructive)}@supports (color:color-mix(in lab, red, red)){.aria-invalid\:ring-destructive\/20[aria-invalid=true]{--tw-ring-color:color-mix(in oklab, var(--destructive) 20%, transparent)}}.data-\[size\=sm\]\:gap-4[data-size=sm]{gap:calc(var(--spacing) * 4)}.data-\[size\=sm\]\:py-4[data-size=sm]{padding-block:calc(var(--spacing) * 4)}:is(.\*\:data-\[slot\=alert-description\]\:text-amber-700>*)[data-slot=alert-description]{color:var(--color-amber-700)}:is(.\*\:data-\[slot\=alert-description\]\:text-destructive\/90>*)[data-slot=alert-description]{color:var(--destructive)}@supports (color:color-mix(in lab, red, red)){:is(.\*\:data-\[slot\=alert-description\]\:text-destructive\/90>*)[data-slot=alert-description]{color:color-mix(in oklab, var(--destructive) 90%, transparent)}}:is(.\*\:data-\[slot\=alert-description\]\:text-green-700>*)[data-slot=alert-description]{color:var(--color-green-700)}@media (width>=48rem){.md\:text-pretty{text-wrap:pretty}}.dark\:border-amber-900:is(.dark *){border-color:var(--color-amber-900)}.dark\:border-green-900:is(.dark *){border-color:var(--color-green-900)}.dark\:border-input:is(.dark *){border-color:var(--input)}.dark\:bg-amber-950:is(.dark *){background-color:var(--color-amber-950)}.dark\:bg-destructive\/20:is(.dark *){background-color:var(--destructive)}@supports (color:color-mix(in lab, red, red)){.dark\:bg-destructive\/20:is(.dark *){background-color:color-mix(in oklab, var(--destructive) 20%, transparent)}}.dark\:bg-green-950:is(.dark *){background-color:var(--color-green-950)}.dark\:bg-input\/30:is(.dark *){background-color:var(--input)}@supports (color:color-mix(in lab, red, red)){.dark\:bg-input\/30:is(.dark *){background-color:color-mix(in oklab, var(--input) 30%, transparent)}}.dark\:text-amber-200:is(.dark *){color:var(--color-amber-200)}.dark\:text-green-200:is(.dark *){color:var(--color-green-200)}@media (hover:hover){.dark\:hover\:bg-destructive\/30:is(.dark *):hover{background-color:var(--destructive)}@supports (color:color-mix(in lab, red, red)){.dark\:hover\:bg-destructive\/30:is(.dark *):hover{background-color:color-mix(in oklab, var(--destructive) 30%, transparent)}}.dark\:hover\:bg-input\/50:is(.dark *):hover{background-color:var(--input)}@supports (color:color-mix(in lab, red, red)){.dark\:hover\:bg-input\/50:is(.dark *):hover{background-color:color-mix(in oklab, var(--input) 50%, transparent)}}.dark\:hover\:bg-muted\/50:is(.dark *):hover{background-color:var(--muted)}@supports (color:color-mix(in lab, red, red)){.dark\:hover\:bg-muted\/50:is(.dark *):hover{background-color:color-mix(in oklab, var(--muted) 50%, transparent)}}}.dark\:focus-visible\:ring-destructive\/40:is(.dark *):focus-visible{--tw-ring-color:var(--destructive)}@supports (color:color-mix(in lab, red, red)){.dark\:focus-visible\:ring-destructive\/40:is(.dark *):focus-visible{--tw-ring-color:color-mix(in oklab, var(--destructive) 40%, transparent)}}.dark\:aria-invalid\:border-destructive\/50:is(.dark *)[aria-invalid=true]{border-color:var(--destructive)}@supports (color:color-mix(in lab, red, red)){.dark\:aria-invalid\:border-destructive\/50:is(.dark *)[aria-invalid=true]{border-color:color-mix(in oklab, var(--destructive) 50%, transparent)}}.dark\:aria-invalid\:ring-destructive\/40:is(.dark *)[aria-invalid=true]{--tw-ring-color:var(--destructive)}@supports (color:color-mix(in lab, red, red)){.dark\:aria-invalid\:ring-destructive\/40:is(.dark *)[aria-invalid=true]{--tw-ring-color:color-mix(in oklab, var(--destructive) 40%, transparent)}}:is(.dark\:\*\:data-\[slot\=alert-description\]\:text-amber-300:is(.dark *)>*)[data-slot=alert-description]{color:var(--color-amber-300)}:is(.dark\:\*\:data-\[slot\=alert-description\]\:text-green-300:is(.dark *)>*)[data-slot=alert-description]{color:var(--color-green-300)}.\[\&_a\]\:underline a{text-decoration-line:underline}.\[\&_a\]\:underline-offset-3 a{text-underline-offset:3px}@media (hover:hover){.\[\&_a\]\:hover\:text-foreground a:hover{color:var(--foreground)}}.\[\&_p\:not\(\:last-child\)\]\:mb-4 p:not(:last-child){margin-bottom:calc(var(--spacing) * 4)}.\[\&_svg\]\:pointer-events-none svg{pointer-events:none}.\[\&_svg\]\:shrink-0 svg{flex-shrink:0}.\[\&_svg\:not\(\[class\*\=\'size-\'\]\)\]\:size-3 svg:not([class*=size-]){width:calc(var(--spacing) * 3);height:calc(var(--spacing) * 3)}.\[\&_svg\:not\(\[class\*\=\'size-\'\]\)\]\:size-4 svg:not([class*=size-]){width:calc(var(--spacing) * 4);height:calc(var(--spacing) * 4)}.\[\.border-b\]\:pb-6.border-b{padding-bottom:calc(var(--spacing) * 6)}.group-data-\[size\=sm\]\/card\:\[\.border-b\]\:pb-4:is(:where(.group\/card)[data-size=sm] *).border-b{padding-bottom:calc(var(--spacing) * 4)}.\[\.border-t\]\:pt-6.border-t{padding-top:calc(var(--spacing) * 6)}.group-data-\[size\=sm\]\/card\:\[\.border-t\]\:pt-4:is(:where(.group\/card)[data-size=sm] *).border-t{padding-top:calc(var(--spacing) * 4)}:is(.\*\:\[img\:first-child\]\:rounded-t-xl>*):is(img:first-child){border-top-left-radius:calc(var(--radius) * 1.4);border-top-right-radius:calc(var(--radius) * 1.4)}:is(.\*\:\[img\:last-child\]\:rounded-b-xl>*):is(img:last-child){border-bottom-right-radius:calc(var(--radius) * 1.4);border-bottom-left-radius:calc(var(--radius) * 1.4)}:is(.\*\:\[svg\]\:row-span-2>*):is(svg){grid-row:span 2/span 2}:is(.\*\:\[svg\]\:translate-y-0\.5>*):is(svg){--tw-translate-y:calc(var(--spacing) * .5);translate:var(--tw-translate-x) var(--tw-translate-y)}:is(.\*\:\[svg\]\:text-current>*):is(svg){color:currentColor}:is(.\*\:\[svg\:not\(\[class\*\=\'size-\'\]\)\]\:size-4>*):is(svg:not([class*=size-])){width:calc(var(--spacing) * 4);height:calc(var(--spacing) * 4)}}@property --tw-animation-delay{syntax:"*";inherits:false;initial-value:0s}@property --tw-animation-direction{syntax:"*";inherits:false;initial-value:normal}@property --tw-animation-duration{syntax:"*";inherits:false}@property --tw-animation-fill-mode{syntax:"*";inherits:false;initial-value:none}@property --tw-animation-iteration-count{syntax:"*";inherits:false;initial-value:1}@property --tw-enter-blur{syntax:"*";inherits:false;initial-value:0}@property --tw-enter-opacity{syntax:"*";inherits:false;initial-value:1}@property --tw-enter-rotate{syntax:"*";inherits:false;initial-value:0}@property --tw-enter-scale{syntax:"*";inherits:false;initial-value:1}@property --tw-enter-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-enter-translate-y{syntax:"*";inherits:false;initial-value:0}@property --tw-exit-blur{syntax:"*";inherits:false;initial-value:0}@property --tw-exit-opacity{syntax:"*";inherits:false;initial-value:1}@property --tw-exit-rotate{syntax:"*";inherits:false;initial-value:0}@property --tw-exit-scale{syntax:"*";inherits:false;initial-value:1}@property --tw-exit-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-exit-translate-y{syntax:"*";inherits:false;initial-value:0}@font-face{font-family:Inter Variable;font-style:normal;font-display:swap;font-weight:100 900;src:url(/assets/inter-cyrillic-ext-wght-normal-BOeWTOD4.woff2)format("woff2-variations");unicode-range:U+460-52F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:Inter Variable;font-style:normal;font-display:swap;font-weight:100 900;src:url(/assets/inter-cyrillic-wght-normal-DqGufNeO.woff2)format("woff2-variations");unicode-range:U+301,U+400-45F,U+490-491,U+4B0-4B1,U+2116}@font-face{font-family:Inter Variable;font-style:normal;font-display:swap;font-weight:100 900;src:url(/assets/inter-greek-ext-wght-normal-DlzME5K_.woff2)format("woff2-variations");unicode-range:U+1F??}@font-face{font-family:Inter Variable;font-style:normal;font-display:swap;font-weight:100 900;src:url(/assets/inter-greek-wght-normal-CkhJZR-_.woff2)format("woff2-variations");unicode-range:U+370-377,U+37A-37F,U+384-38A,U+38C,U+38E-3A1,U+3A3-3FF}@font-face{font-family:Inter Variable;font-style:normal;font-display:swap;font-weight:100 900;src:url(/assets/inter-vietnamese-wght-normal-CBcvBZtf.woff2)format("woff2-variations");unicode-range:U+102-103,U+110-111,U+128-129,U+168-169,U+1A0-1A1,U+1AF-1B0,U+300-301,U+303-304,U+308-309,U+323,U+329,U+1EA0-1EF9,U+20AB}@font-face{font-family:Inter Variable;font-style:normal;font-display:swap;font-weight:100 900;src:url(/assets/inter-latin-ext-wght-normal-DO1Apj_S.woff2)format("woff2-variations");unicode-range:U+100-2BA,U+2BD-2C5,U+2C7-2CC,U+2CE-2D7,U+2DD-2FF,U+304,U+308,U+329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Inter Variable;font-style:normal;font-display:swap;font-weight:100 900;src:url(/assets/inter-latin-wght-normal-Dx4kXJAl.woff2)format("woff2-variations");unicode-range:U+??,U+131,U+152-153,U+2BB-2BC,U+2C6,U+2DA,U+2DC,U+304,U+308,U+329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}:root{--background:oklch(100% 0 0);--foreground:oklch(14.5% 0 0);--card:oklch(100% 0 0);--card-foreground:oklch(14.5% 0 0);--popover:oklch(100% 0 0);--popover-foreground:oklch(14.5% 0 0);--primary:oklch(20.5% 0 0);--primary-foreground:oklch(98.5% 0 0);--secondary:oklch(97% 0 0);--secondary-foreground:oklch(20.5% 0 0);--muted:oklch(97% 0 0);--muted-foreground:oklch(55.6% 0 0);--accent:oklch(97% 0 0);--accent-foreground:oklch(20.5% 0 0);--destructive:oklch(57.7% .245 27.325);--border:oklch(92.2% 0 0);--input:oklch(92.2% 0 0);--ring:oklch(70.8% 0 0);--chart-1:oklch(80.9% .105 251.813);--chart-2:oklch(62.3% .214 259.815);--chart-3:oklch(54.6% .245 262.881);--chart-4:oklch(48.8% .243 264.376);--chart-5:oklch(42.4% .199 265.638);--radius:.625rem;--sidebar:oklch(98.5% 0 0);--sidebar-foreground:oklch(14.5% 0 0);--sidebar-primary:oklch(20.5% 0 0);--sidebar-primary-foreground:oklch(98.5% 0 0);--sidebar-accent:oklch(97% 0 0);--sidebar-accent-foreground:oklch(20.5% 0 0);--sidebar-border:oklch(92.2% 0 0);--sidebar-ring:oklch(70.8% 0 0)}.dark{--background:oklch(14.5% 0 0);--foreground:oklch(98.5% 0 0);--card:oklch(20.5% 0 0);--card-foreground:oklch(98.5% 0 0);--popover:oklch(20.5% 0 0);--popover-foreground:oklch(98.5% 0 0);--primary:oklch(92.2% 0 0);--primary-foreground:oklch(20.5% 0 0);--secondary:oklch(26.9% 0 0);--secondary-foreground:oklch(98.5% 0 0);--muted:oklch(26.9% 0 0);--muted-foreground:oklch(70.8% 0 0);--accent:oklch(26.9% 0 0);--accent-foreground:oklch(98.5% 0 0);--destructive:oklch(70.4% .191 22.216);--border:oklch(100% 0 0/.1);--input:oklch(100% 0 0/.15);--ring:oklch(55.6% 0 0);--chart-1:oklch(80.9% .105 251.813);--chart-2:oklch(62.3% .214 259.815);--chart-3:oklch(54.6% .245 262.881);--chart-4:oklch(48.8% .243 264.376);--chart-5:oklch(42.4% .199 265.638);--sidebar:oklch(20.5% 0 0);--sidebar-foreground:oklch(98.5% 0 0);--sidebar-primary:oklch(48.8% .243 264.376);--sidebar-primary-foreground:oklch(98.5% 0 0);--sidebar-accent:oklch(26.9% 0 0);--sidebar-accent-foreground:oklch(98.5% 0 0);--sidebar-border:oklch(100% 0 0/.1);--sidebar-ring:oklch(55.6% 0 0)}@property --tw-space-y-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-leading{syntax:"*";inherits:false}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"<length>";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-outline-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-y{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-z{syntax:"*";inherits:false;initial-value:0}@keyframes spin{to{transform:rotate(360deg)}}