basirapp.site · Repository · API docs · @BasiraCheckBot
How Basira works — engineering notes
Paste a post, an article, a chatbot answer or an image. Basira finds every quotation presented as Quran or Hadith, matches it byte-exactly against licensed, sha256-pinned corpora (71,987 records), shows the verbatim source next to the user's text with a letter-level diff, and returns one of four states. The language model only proposes positions and reads images — the deterministic engine decides. No generated religious text, no rulings, no storage.
| Measured | Result |
|---|---|
| Evaluation (150 cases, 13 categories incl. prompt injection, 3 repeats) | 150/150, variance 0 |
| False alarms on 500 verbatim corpus segments | 0/500 |
| IslamicEval 2025 · subtask 1B (dev) | 78.54 %, only 2 / 100 wrong spans confirmed |
| Tests | 345 backend · 110 bot · 32 frontend · mypy --strict |
Corpus-anchored seed-and-extend detection (BLAST-style) · three-tier Arabic normalisation · numpy positional index
(< 5 ms / quote over 4.5 M tokens) · BM25 + char-3-gram + RRF retrieval · windowed token-Levenshtein · harakat gate &
rasm-uniqueness proof · 19 named safety invariants · validator that independently re-proves every “found” ·
determinism_hash on every response · REST, MCP server, Guard for chatbots, Telegram bot · one-command run.
Entry to the AI in Service of Islamic Content Challenge 2026 — Track 4 (knowledge & verification tools).
nexus-notify · scam2027 · motech-platform · Ai_Alabbasi · telegram-mcp-2 · my-bro · دفتر البقالة · Sijilati · electricity-billing · PWA
+ 9 more — tutoring platform, accounting, AI voice training, forensics lab, client websites
| Project | What it is | Stack |
|---|---|---|
| Idhaat-Platform | منصة إضاءات — live tutoring: live classes, protected 48-hour recordings, homework, messaging; installable PWA | TypeScript · PWA |
| hesabati | حساباتي — multi-business financial & accounting system with an Arabic UI | TypeScript |
| ghaida | غيداء — trains domestic workers in their own language with AI voice, video and tailored schedules | TypeScript · Python |
| digital-forensics-lab | Windows Registry, Event Log, Autopsy, FTK Imager, browser forensics — with real artifacts | PowerShell |
| motech-cli | One-command cross-platform agent (Windows / Linux / macOS, amd64 + arm64) | Go |
| keif-aldiafa-web | كيف الضيافة — production site for a Saudi hospitality business (CRO, SEO/GEO, PDPL compliance) | Next.js · TypeScript |
| osoul-aldiafa-v2 | أصول الضيافة — luxury hospitality website | Next.js 14 |
| royal-coffee-hospitality | القهوة الملكية — Arabic hospitality site with a luxury identity, native RTL, high performance | Hono · Cloudflare Pages |
| alabbasi-soft-site | Official website of Alabbasi Tech, a software house in Sana'a | Next.js 15 |
I work with frontier AI coding agents — Claude Opus 5.5 · Claude Fable 5.1 · GPT-6 Astra via Genspark — under strict engineering rules: every safety invariant has a named test, every number is measured and dated, every decision is recorded, and nothing ships without passing the gates.
Toolbox
- Languages · Python · TypeScript · JavaScript · Dart · Go · SQL · PowerShell
- Backend · FastAPI · Pydantic · Hono · Node.js · PostgreSQL · Drizzle · REST · Model Context Protocol (MCP)
- Frontend & mobile · React 19 · Next.js · Vite · Tailwind CSS · Flutter · PWA · RTL / Arabic-first UX · accessibility (axe)
- AI & NLP · Arabic text normalisation · information retrieval (BM25, n-grams, RRF) · fuzzy matching · LLM integration with constrained outputs · OCR pipelines · model benchmarking
- Security · SOC with Wazuh SIEM · digital forensics (Autopsy, FTK Imager, registry & event logs) · secure remote access (SSH, NetBird mesh)
- Quality & ops · pytest · vitest · Playwright · ruff · mypy strict · Docker · Caddy · GitHub Actions CI/CD · VPS deployment
Two accounts: @MoTechSys (main) · @moain2026 (systems, AI agents, client work).


