🚀. Socket Launch Week Day 3:Socket Firewall Now Blocks Malicious VS Code and Open VSX Extensions.Learn more
Sign In

anti-ai-ui

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

anti-ai-ui

A framework for creating UI components that are resilient against AI browsers and automated interactions

latest
Source
npmnpm
Version
0.1.7
Version published
Weekly downloads
13
8.33%
Maintainers
1
Weekly downloads
 
Created
Source
Anti-AI UI Framework

The first framework more hostile than Adobe's cancellation flow.

npm node install size License: MIT TypeScript Follow on X Follow on Bluesky

What is Anti-AI UI?  |  Anti-AI Test  |  Documentation  |  Intro Article

▶️ Watch the Product Release

Why?

AI took your job. Then it took your browser's job.

Every product update has AI. Every startup pitch has AI. Every tech conference has AI. You can't return your limited edition pink Stanley tumbler to Target without the customer service guy telling you about his ChatGPT wrapper startup that's about to blow up.

And now it's gotten worse. With the release of ChatGPT's Atlas and other AI browsers, AI can click buttons and fill out forms. It can navigate the web. It's coming for the entire internet.

You could make it easy for them. Or you could not.

Let's make it harder.

We already have patterns that frustrate users. Dark patterns have tortured humans for decades. Microscopic close buttons. Fake download links. Cookie consent mazes five layers deep. We adapted. We learned to find the real X button surrounded by decoys.

Let's take these patterns and adapt them for AI. Read the full intro article.

Traffic Light Forms
Traffic Light Forms

Three-Form Carousel
Three-Form Carousel

What's In It

The Anti-AI UI Framework is a UI library that provides 20 AI-hostile components. You can install it with npm and use it on any website. It has everything you need to make AI miserable:

  • 20 components
  • React and vanilla JS
  • Zero dependencies
  • TypeScript
  • Tree-shakeable, so you only ship the suffering you need
  • Works with React, Vue, Angular, Svelte, Next.js, HTMX, jQuery. Anything that can run JavaScript.
  • 403 unit tests. Because hostile interfaces still need to be reliable. The button should always run away. The password requirements should always change. Consistency matters, even when nothing else does.

MIT licensed, because suffering should be free.

Install

npm install anti-ai-ui

Quick Start

React

import { RunawayButton, PasswordHell, CookieHell } from 'anti-ai-ui';

function App() {
  return (
    <>
      <RunawayButton onCatch={() => console.log('Caught!')}>
        Click me if you can
      </RunawayButton>

      <PasswordHell onValidPassword={(pw) => console.log('Valid:', pw)} />

      <CookieHell depth={5} onAcceptAll={() => console.log('Accepted')} />
    </>
  );
}

Vanilla JavaScript

import { createRunawayButton, createPasswordHell } from 'anti-ai-ui/vanilla';

const cleanup = createRunawayButton({
  container: document.getElementById('app'),
  label: 'Click me if you can',
  onCatch: () => console.log('Caught!'),
});

// Later: cleanup()

jQuery

$('#submit-btn').each(function () {
  createRunawayButton({
    container: $(this).parent()[0],
    element: this,
    onCatch: () => $('#form').submit(),
  });
});

createCookieHell({
  container: $('body')[0],
  depth: 4,
  onAcceptAll: () => $.cookie('consent', 'true'),
});

The Patterns

The framework contains two types of hostile patterns.

Intentionally AI-Hostile. New patterns specifically created to exploit how AI interacts with websites. Traffic lights that gate form submissions. Pendulum fields powered by keystrokes. Three identical forms that shuffle positions, only one of which is real.

Naturally Hostile. Dark patterns humans have adapted to over decades but AI encounters for the first time. Microscopic close buttons. Cookie consent mazes. Password requirements that change as you type.

Movement & Chaos

ComponentDescription
GravityFieldButtons orbit around invisible gravity wells. Click one and it drifts away.
PendulumFieldsInputs swing like pendulums. Keep typing to maintain momentum.
ThreeFormCarouselThree rotating forms. Only one is real. The other two submit to nowhere.
RunawayButtonTry to hover over it. It moves faster than you can track.
FormChaosThe entire form rotates and scales randomly.
MitosisButtonClick the wrong button and more spawn. Only one is real at any time.
ShiftingInterfaceForm elements randomly shift position, change colors, and duplicate.

Deception & Confusion

ComponentDescription
TrafficLightFormFields only accept input when their traffic light is green.
FakeMarqueeFieldsFake input fields scroll across the screen. AI tries to fill them.
InputMisdirectionType in one field, your text appears in another.
GlitchTextCharacters shuffle positions. Humans read it. OCR gets scrambled output.
SemanticGaslighting"Cancel" submits. "Submit" cancels. Green means danger.

Navigation Breaking

ComponentDescription
TabIndexRandomizationTab order shuffles every 3 seconds. Breaks automated form filling.
LabelPositionSwapLabels randomly shuffle between different input fields.

Naturally Hostile

ComponentDescription
MicroscopicCloseButton4x4 pixel real button surrounded by decoys.
CookieHellNested cookie consent dialogs. Five layers deep.
PasswordHellPassword requirements that change as you type. Requirements multiply.
PopupChaosNested popups that must be closed in specific order.
FloatingBannerAdsAds that cover the content you want. They spawn every few seconds.
FakeDownloadGridOne real download button. Many fakes.

Utilities

Detection utilities for analyzing interaction patterns:

import {
  detectPerfectMovement, // Unnaturally straight cursor paths
  detectExactClicks, // Repetitive click coordinates
  detectTiming, // Suspiciously consistent timing
  detectPatterns, // Automation signatures
} from 'anti-ai-ui/utils';

Documentation

Full docs and interactive demos at codinhood.com/anti-ai-ui-framework.

More Unhinged Projects

License

MIT

AI took your job. Now take its time.

Keywords

ui

FAQs

Package last updated on 23 Dec 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts