Brainfish

motorprint on-device bot detection

Move the mouse, click the buttons, type and scroll. A tiny neural net () scores every 3 second window of your input dynamics, right here in the tab. Nothing is sent anywhere.

--bot score
waiting for input
0 windows · raw -- · -- ms
Your motor print: the last 3 seconds of pointer movement and clicks. This is what gets scored.

Playground

Feature readout (latest window)

Install & use

Runs completely on-device in ~5.4 KB gzipped. No server, no LLM, no network calls.

Install bash
npm install @brainfish-ai/motorprint
Vanilla JS / TypeScript ts
import { createBotDetector } from '@brainfish-ai/motorprint';const detector = createBotDetector({  onScore: ({ score, isBot, windows }) => {    if (windows >= 4 && isBot) markSessionSuspicious(score);  },});
React tsx
import { useBotScore } from '@brainfish-ai/motorprint/react';function Checkout() {  const bot = useBotScore();  return <input type="hidden" name="motorprint" value={bot ? bot.score.toFixed(3) : ''} />;}