AnonymousThinker is a premium AI reasoning platform designed to provide structured, logical responses with a specialized focus on defending and explaining Islamic principles through reason and scholarly knowledge.
- Dual-Model Comparative Analysis: Compare responses from a personal logic model (Llama 3.1 8B) and a powerful reasoning model (DeepSeek-R1-70B) side-by-side.
- Sovereign AI Hub: A centralized command center for administrators to define the AI's persona, logical framework, and core strategy.
- Knowledge Base (RAG): Ground AI responses in scholarly Islamic knowledge by uploading PDFs and text files globally.
- Admin-Restricted Training: Only authorized developers can train the AI or modify its core directives.
- Glassmorphic UI: A premium, modern interface with dark mode, fluid animations, and a focus on readability.
- Frontend: React.js, React Router, Axios, Vanilla CSS (Standardized Design System).
- Backend: Node.js, Express, MongoDB (Mongoose), JWT Auth.
- AI Infrastructure:
- Inference: Groq API & Hugging Face Serverless Inference.
- Reasoning Models: Llama-3.1-8B-Instruct & Llama-3.3-70B-Versatile.
- Logic Engine: Custom NLP pipeline for PDF parsing and RAG (Retrieval Augmented Generation).
Follow these steps to get the project running on your local machine.
- Node.js (v18+)
- npm or yarn
- MongoDB (Local instance or Atlas URI)
git clone <repository-url>
cd AnonymousThinker-
Navigate to the backend directory:
cd backend -
Install dependencies:
npm install
-
Configure Environment Variables:
- Copy
.env.exampleto.env:cp .env.example .env
- Open
.envand add yourMONGODB_URI,JWT_SECRET,GROQ_API_KEY, andHUGGINGFACE_API_KEY.
- Copy
-
Start the server (Development mode):
npm run dev
- Navigate to the frontend directory:
cd ../frontend - Install dependencies:
npm install
- Start the application:
npm start
To access the "Train AI" command center, you must promote your account.
- Register an account through the UI.
- In the
backend/scriptsfolder, run:Note: Ensure your backend server is stopped or you have configurednode makeAdmin.js your-email@example.com
.envcorrectly for the script.
If you configured ADMIN_EMAIL and ADMIN_PASSWORD in your .env, you can login directly with those credentials to auto-promote your session.
To ensure the AI prioritizes Islamic logical proofs:
- Login as an Admin.
- Click "Train AI" in the sidebar.
- Use the Upload Zone to ingest PDFs of scholarly Islamic works.
- Update the "Core Logic & Strategy" textarea to define how the AI should refute specific claims.
- Click "Commit Changes to Core" to synchronize the AI's logic globally.
MIT License - Developed for Sovereign Thought Analysis.