New Captcha Package added

This commit is contained in:
2026-07-25 13:38:18 +05:30
parent d0aded0392
commit 8b728a3e5d
157 changed files with 12092 additions and 1913 deletions
+14
View File
@@ -0,0 +1,14 @@
import { ManagedCaptchaService } from "./service.ts";
export * from "./types.ts";
export * from "./store.ts";
export * from "./service.ts";
if (import.meta.main) {
const port = Number(process.env.PORT ?? 8787);
const service = new ManagedCaptchaService({
adminToken: process.env.CAPTCHA_ADMIN_TOKEN ?? "replace-this-development-admin-token",
baseUrl: process.env.CAPTCHA_BASE_URL ?? `http://localhost:${port}`,
});
Bun.serve({ port, fetch: (request) => service.handle(request) });
console.log(`WRNexus Managed CAPTCHA listening on http://localhost:${port}`);
}