EN

@core / antispam

1.1.0 ▾
verifiedMIT
GitHub

Spam protection for public forms: honeypot, signed timing, Turnstile or hCaptcha and Postgres rate limits

Code9 filesContext~722 tokensscan passed

The exact tree that will be injected, after .genpmignore. Pinned to

src/lib/antispam/react.tsread-only · 0328b98
// `<AntispamFields />`: campos ocultos para formularios HTML (trampa y hora firmada). Componente de servidor (async).
import { createElement as h, Fragment, type ReactNode } from 'react';
import { formTimingToken, HONEYPOT_FIELD, honeypotProps, TIMING_FIELD } from './checks.ts';

export async function AntispamFields(): Promise<ReactNode> {
  return h(Fragment, null, h('input', { ...honeypotProps, key: HONEYPOT_FIELD }), h('input', { type: 'hidden', name: TIMING_FIELD, value: await formTimingToken(), key: TIMING_FIELD }));
}

Report @core/antispam

Sign in with GitHub to report a package.