Skip to content
shenoudaemadPublic

About

مدرك (Modrek): Arabic-first AI chat web app with image generation, code runner and MCP support. Free, no sign-up. Try it online.

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Latest commit

 

History

263 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

مُدرِك — Modrek

Arabic-first AI assistant that speaks Egyptian Arabic. A free tier with a daily limit, and paid Pro and Max plans priced in EGP.

Live: https://modrek.pages.dev · Telegram: https://t.me/Modrek1bot

What it is

Modrek is a full assistant, not a chat box: it answers, builds, reads your mail and files when you connect them, remembers what matters, and works from the web, from Telegram, and from a worker API.

Features

Chat

  • Egyptian Arabic by default, short answers unless you ask for depth
  • Model tiers shown in Modrek's own names: Modrek Pro, Modrek Max, Modrek Lite, Modrek Code
  • Deep thinking mode, web search with sources only when you ask for them
  • Chat history kept in your browser; nothing is shown to anyone else

Projects (Code Studio)

  • Ask for a site or an app and Modrek builds it as real files in the project panel
  • Live preview runs the project, console errors are read back and fixed automatically
  • Edit requests ("غير اللون") update the existing files instead of rebuilding
  • Download the whole project as a ZIP

Connected accounts

  • Google: Gmail, Drive, Calendar. Archive, label, search, read and create files
  • GitHub: repositories, issues, pull requests
  • Every write goes through a confirm card first; nothing happens silently
  • Scopes are requested per tool, so Modrek only offers what you actually granted

Memory

  • Facts you tell it are remembered and reused on the site and on Telegram
  • You can list and delete them from the app

Telegram bot (@Modrek1bot)

  • Same persona and same tiers: /model pro|max|lite|code
  • Shared memory with your account, /voice on for spoken replies
  • Project requests come back as files plus a ZIP, not a code paste
  • Photos are read, voice notes are transcribed, reminders are delivered by cron

Other

  • Image generation, speech, transcription
  • Reminders, deep research, MCP servers
  • RTL Arabic UI, dark and light themes, installable PWA

Architecture

app.html            the whole app: chat, project panel, editor, settings
admin.html          admin dashboard
worker/             Modrek AI server (Cloudflare Worker)
  src/index.js      routes, model calls, memory, images, speech
  src/agent.js      tool loop, scope filtering, confirm cards
  src/connect.js    OAuth for Google and GitHub
  src/persona.js    the system prompt and voice rules
  src/providers.js  model providers (free tier first)
bot/                Telegram bot worker (talks to the engine over a service binding)
  • Frontend: one HTML file served by Cloudflare Pages, no build step, no framework
  • Engine: Cloudflare Worker + D1 (users, memory, connections, actions), KV for sessions and bot state
  • Models: free providers first, with a provider layer that accepts a paid key later without a rewrite
  • Auth: Google sign-in or email and password, session tokens signed with HMAC
  • Security: DB-backed login lockout, CSP, HSTS, frame denial, per-tool scopes, confirm cards for every write

Screenshots

Project panel with live preview Code Studio
Project panel Code Studio

Run it yourself

The app is a static file, but it needs the engine for answers.

# 1. engine (needs a Cloudflare account and a D1 database)
cd worker
npm install
npx wrangler d1 create modrek-db      # then put the id in wrangler.toml
npx wrangler secret put SESSION_SECRET
npx wrangler secret put GEMINI_API_KEY   # free tier key
npx wrangler deploy

# 2. frontend
# point API bases in app.html at your worker, then:
npx wrangler pages deploy .

Telegram bot: cd bot && npx wrangler deploy, then set TG_TOKEN, TG_SECRET and BOT_SECRET, and point the webhook at the worker.

Plans

Plan Replies per day Price
Free 25 0
Pro 50 100 EGP / month · 700 EGP / year
Max no daily cap 200 EGP / month · 1,000 EGP / year

Modrek Lite, Pro, Max and Code are the model tiers you pick inside the app. The Pro and Max plans are subscriptions. The two are separate: a plan decides how much you get, the model tier decides which model answers.

Pro adds file and image analysis, speech, and longer conversation memory. Max adds the top image quality, the full voice mode, code agent for long tasks, queue priority and a weekly summary.

Payment is a Vodafone Cash transfer: no card, no online checkout. Each transfer is reviewed by hand and the plan is activated on the account, with an email and an in-app notice when it is approved or rejected. A rejected request cannot be resubmitted for 10 days.

Text and image models run on free provider tiers first, so the free plan is a real ceiling: very long answers can be cut short, and the app continues them automatically.

License

Proprietary. Copyright (c) 2026 Shenouda Emad. All rights reserved. The source is visible but is not open source: copying, modifying, redistributing or hosting it requires written permission. See LICENSE and NOTICE. Earlier copies obtained while the repo was MIT-licensed remain under MIT.


DEVELOPED BY Shenouda Emad

About

مدرك (Modrek): Arabic-first AI chat web app with image generation, code runner and MCP support. Free, no sign-up. Try it online.

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages