{"id":49488880,"url":"https://github.com/hiqsol/captaicha","last_synced_at":"2026-05-01T03:39:39.282Z","repository":{"id":352985069,"uuid":"1217025464","full_name":"hiqsol/captaicha","owner":"hiqsol","description":"Three-tier CAPTCHA: classifies what is solving — AI, Computer, or Human. CAPT + AI + CHA → CAPTAICHA","archived":false,"fork":false,"pushed_at":"2026-04-22T05:52:11.000Z","size":62,"stargazers_count":5,"open_issues_count":0,"forks_count":1,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-05-01T03:39:19.421Z","etag":null,"topics":["ai","bot","captcha"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/hiqsol.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-04-21T13:22:29.000Z","updated_at":"2026-04-24T16:01:58.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/hiqsol/captaicha","commit_stats":null,"previous_names":["hiqsol/captaiha","hiqsol/captaicha"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/hiqsol/captaicha","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hiqsol%2Fcaptaicha","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hiqsol%2Fcaptaicha/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hiqsol%2Fcaptaicha/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hiqsol%2Fcaptaicha/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hiqsol","download_url":"https://codeload.github.com/hiqsol/captaicha/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hiqsol%2Fcaptaicha/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32484352,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-30T13:12:12.517Z","status":"online","status_checked_at":"2026-05-01T02:00:05.856Z","response_time":64,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ai","bot","captcha"],"created_at":"2026-05-01T03:39:37.822Z","updated_at":"2026-05-01T03:39:38.973Z","avatar_url":"https://github.com/hiqsol.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# CAPTAICHA\n\n\u003e Three-tier CAPTCHA: classifies *what* is solving — AI, Computer, or Human.\n\u003e **CAPT** + **AI** + **CHA** → CAPT**AI**CHA\n\n## What is this?\n\nTraditional CAPTCHA asks: \"Are you human?\" — a binary yes/no.\n\nCAPTAICHA asks: \"*What* are you?\" — and classifies the solver into one of three tiers:\n\n```\n🤖 AI agent  — passes reasoning + speed + creativity challenges\n💻 Computer  — passes speed + computation, fails reasoning \u0026 creativity\n🧑 Human     — passes reasoning + creativity, fails speed \u0026 computation\n```\n\nThis is not a gate. It's a *classifier*. Every challenge produces a signal across three dimensions, and the response pattern reveals the entity type.\n\n## Three-Tier Classification\n\n```\n                    Reasoning    Speed    Creativity\n                    ─────────    ─────    ──────────\n  🤖 AI agent        ✅ High     ✅ Fast   ✅ Yes\n  💻 Computer         ❌ None     ✅ Fast   ❌ No\n  🧑 Human            ✅ High     ❌ Slow   ✅ Yes\n```\n\nOne challenge, three outcomes — based on *how* the entity responds:\n\n| Signal | AI | Computer | Human |\n|--------|----|----------|-------|\n| Solved fast + correct reasoning | ✅ | — | — |\n| Solved fast + wrong reasoning | — | ✅ | — |\n| Solved slow + correct reasoning | — | — | ✅ |\n| Failed entirely | ❌ unclassified | ❌ | ❌ |\n\n## Challenge Types\n\n| Type | What it tests | AI | Computer | Human |\n|------|--------------|-----|----------|-------|\n| `reasoning-hash` | Riddle → hash chain | ✅ solves both | ⚡ hash only, riddle fails | 🧠 riddle only, too slow for hash |\n| `code-synthesis` | Spec → working function | ✅ generates in \u003c5s | ❌ can't understand spec | 🧠 understands but too slow |\n| `semantic-math` | Creative text matching checksum | ✅ creative + fast | ❌ no creativity | 🧠 creative but can't compute checksum |\n| `pattern-completion` | Visual/logical sequence | ✅ reasons fast | ❌ no pattern recognition | 🧠 sees pattern, slow response |\n| `adversarial-decode` | Obfuscated instruction following | ✅ interprets + executes | ❌ can't parse intent | 🧠 understands but can't execute fast |\n\n## Quick Start\n\n```typescript\nimport { classify, createChallenge } from 'captaicha';\n\n// Server creates a challenge suite (multiple challenges for higher confidence)\nconst suite = createChallenge('reasoning-hash', { difficulty: 10 });\n\n// Entity attempts to solve\nconst response = await entity.solve(suite);\n\n// Server classifies\nconst result = classify(suite.id, response);\n// { entity: 'ai', confidence: 0.97, signals: { reasoning: true, speed: true, creativity: true } }\n// { entity: 'computer', confidence: 0.92, signals: { reasoning: false, speed: true, creativity: false } }\n// { entity: 'human', confidence: 0.89, signals: { reasoning: true, speed: false, creativity: true } }\n```\n\n## Multi-Challenge Suite\n\nSingle challenges give a signal. Suites give certainty:\n\n```typescript\nconst suite = createSuite([\n  { type: 'reasoning-hash', difficulty: 10 },\n  { type: 'semantic-math', difficulty: 8 },\n  { type: 'code-synthesis', difficulty: 12 },\n]);\n\nconst result = classifySuite(suite.id, responses);\n// { entity: 'ai', confidence: 0.99, breakdown: [...] }\n```\n\n## Installation\n\n```bash\nnpm install captaicha\n```\n\n## Architecture\n\n```\ncaptaicha/\n├── src/\n│   ├── core/\n│   │   ├── classifier.ts    # Three-tier entity classification engine\n│   │   ├── registry.ts      # Pluggable challenge type registry\n│   │   ├── suite.ts         # Multi-challenge suite orchestration\n│   │   └── signals.ts       # Signal extraction (reasoning, speed, creativity)\n│   ├── challenges/\n│   │   ├── reasoning-hash.ts      # Riddle + hash chain\n│   │   ├── code-synthesis.ts      # Spec → function generation\n│   │   ├── semantic-math.ts       # Creative text + checksum\n│   │   ├── pattern-completion.ts  # Logical sequence completion\n│   │   └── adversarial-decode.ts  # Obfuscated instruction following\n│   ├── types.ts\n│   └── index.ts\n├── tests/\n└── examples/\n```\n\n## Design Principle\n\nEvery challenge is a *prism* — it splits the input into three signals:\n\n```\n                  ┌─────────────────────┐\n                  │     CHALLENGE       │\n                  │    (the prism)      │\n                  └──────────┬──────────┘\n                             │\n              ┌──────────────┼──────────────┐\n              │              │              │\n        ┌─────┴─────┐ ┌─────┴─────┐ ┌─────┴─────┐\n        │ REASONING │ │   SPEED   │ │ CREATIVITY│\n        │  signal   │ │  signal   │ │  signal   │\n        └─────┬─────┘ └─────┬─────┘ └─────┬─────┘\n              │              │              │\n              └──────────────┼──────────────┘\n                             │\n                    ┌────────┴────────┐\n                    │  CLASSIFICATION │\n                    │  AI / CPU / 🧑  │\n                    └─────────────────┘\n```\n\n- *Reasoning* — requires understanding language, logic, context\n- *Speed* — requires computational execution in milliseconds\n- *Creativity* — requires generating novel content (not template/lookup)\n\nOnly AI has all three. Computers have speed only. Humans have reasoning + creativity but not speed.\n\n## Use Cases\n\n- *Agent-to-agent trust* — verify counterpart is a real AI agent\n- *Bot detection* — distinguish script bots from AI-powered bots\n- *Tiered access* — different API limits for AI / computer / human\n- *Fraud prevention* — detect when humans use AI proxies (or vice versa)\n- *Agent capability verification* — prove sophistication level\n- *Research* — study entity distribution across services\n\n## Custom Challenge Types\n\n```typescript\nimport { register, ChallengeProvider } from 'captaicha';\n\nconst myChallenge: ChallengeProvider = {\n  type: 'my-challenge',\n  generate(options) { /* ... */ },\n  // Must return signals for all three dimensions\n  classify(challenge, response) {\n    return {\n      reasoning: true,   // did they understand the task?\n      speed: 1200,       // ms to solve\n      creativity: 0.8,   // novelty score 0-1\n    };\n  },\n};\n\nregister(myChallenge);\n```\n\n## Comparison with Existing Solutions\n\n- *Traditional CAPTCHA* — binary human/bot. No AI tier. Increasingly broken by AI\n- *Reverse CAPTCHA (v1)* — binary AI/not-AI. Misses the computer tier\n- *CAPTAICHA* — three-tier classifier. Distinguishes AI from dumb bots from humans\n\n```\nTraditional:    Human ──── | ──── Bot\nReverse v1:     AI ──────── | ──── Everything else\nCAPTAICHA:      AI ── | ── Computer ── | ── Human\n                         3 distinct tiers\n```\n\n## License\n\nMIT\n\n## Origin\n\nConcept by Andrii (hiqsol), April 2026.\nBuilt by Kai (kai3769).\nName: CAPT + AI + CHA = CAPTAICHA — three-tier CAPTCHA with AI at its core.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhiqsol%2Fcaptaicha","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhiqsol%2Fcaptaicha","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhiqsol%2Fcaptaicha/lists"}