Sierra Intelligence is a Next.js web application designed for everyday users in Sierra Leone. It combines AI-powered assistance, scam detection, business profit analysis, and land document verification into a single mobile-friendly interface.
# Sierra Intelligence
Sierra Intelligence is a modern AI-powered web application built for Sierra Leone.
It combines scam detection, business profit analysis, land document verification, and an intelligent assistant in a polished, mobile-first experience.
## Why this project exists
This application helps everyday users and small businesses in Sierra Leone:
- identify financial and messaging scams,
- assess profit and cash flow for informal businesses,
- validate land documents and reduce dispute risk,
- get fast, AI-assisted guidance in English or Krio.
## Core features
- **AI Assistant**: Ask about scams, land documents, business ideas, and local government information.
- **Scam Detector**: Analyze suspicious SMS, WhatsApp, or email text for scam indicators.
- **Profit Helper**: Calculate revenue, profit, margin, and generate practical business improvement advice.
- **Land Document Checker**: Extract and analyze land paperwork for missing fields, inconsistencies, and risk.
- **Scam Reports Store**: Save user-submitted scam reports and aggregate results for visibility.
- **Land Risk Guidance**: Provide localized land dispute risk insights for selected Sierra Leone cities.
## Tech stack
- Next.js 16
- React 19
- TypeScript
- Tailwind CSS 4
- Radix UI primitives
- OpenRouter for AI model integration
- Tesseract.js and document parsing for OCR
## Project structure
- `app/` — Next.js app routes and pages
- `app/page.tsx` — Home landing page
- `app/assistant/page.tsx` — AI assistant interface
- `app/scam/page.tsx` — Scam detection page
- `app/profit/page.tsx` — Profit analysis page
- `app/land/page.tsx` — Land verification page
- `app/api/` — Server API endpoints
- `components/` — Shared UI and layout components
- `lib/` — Utilities, OpenRouter integration, OCR, localization, rate limiting, and data helpers
- `styles/` — Global CSS styles
- `data/` — Runtime storage for scam reports
- `types/` — TypeScript declaration files
## Pages and routes
### Frontend pag …