New Captcha Package added

This commit is contained in:
Clintchiz committed 2026-07-25 13:38:18 +05:30
1 parent d0aded0392
commit 8b728a3e5d
157 files changed
+12092 -1913

No files matched your search

+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}`);
}