SaaS · Backend · AI integrationSaaS · خادم · دمج ذكاء اصطناعي
● Team of twoفريق من اثنينBlatos: a multi-tenant store SaaS, with an AI bot per shop.Blatos: نظام SaaS متعدّد المستأجرين للمتاجر، ببوت ذكاء لكل متجر.
A full-stack SaaS built by two of us. A collaborating engineer designed the core logic and the AI, and I built the stack around that design: the FastAPI and PostgreSQL backend, the Vue 3 dashboard, and the wiring that puts the AI layer inside the product. Each shop gets an isolated workspace and its own Telegram assistant, which uses 15 function-call tools against that shop's real data and answers customers in Arabic, English, Turkish, French and German.نظام SaaS متكامل بنيناه اثنين. مهندس مشارك صمّم منطق النظام الجوهري وذكاءه، وأنا بنيتُ الطبقات حول ذلك التصميم: خادم FastAPI وPostgreSQL، ولوحة تحكّم Vue 3، والوصل الذي يضع طبقة الذكاء داخل المنتج. ولكل متجر مساحة معزولة ومساعده الخاص عبر Telegram، يستخدم 15 أداة استدعاء دوال على بيانات ذلك المتجر الحقيقية ويجيب العملاء بالعربية والإنجليزية والتركية والفرنسية والألمانية.
- Yearالسنة
- 2026
- Roleالدور
- Full-stack engineer, with a collaboratorمهندسة Full-stack، مع متعاون
- Stackالتقنيات
- FastAPIPostgreSQLSQLAlchemyRedisVue 3TailwindGroq LLMTelegram Bot
§ Overviewنظرة عامة
What it is, and what I did.ما هو، وما الذي فعلته.
Each shop is a tenant with its own isolated space and its own AI assistant reachable over Telegram. What I owned is the API surface, the Vue 3 dashboard, and the integration that ties the layers into one product.كل متجر مستأجر له مساحته المعزولة ومساعده الذكي عبر Telegram. وما كان لي هو واجهة الـAPI، ولوحة تحكّم Vue 3، والدمج الذي يربط الطبقات في منتج واحد.
- My roleدوري
- Wrote the stack and the integrationكتبتُ الطبقات والدمج
- Collaboratorالمشارك
- An engineer, on core logic and AI designمهندس، على منطق النظام وتصميم الذكاء
- Backendالخلفية
- FastAPI · PostgreSQL · SQLAlchemy
- Frontendالواجهة
- Vue 3 · Tailwind
- AIالذكاء
- Groq llama-3.3-70b · function-callingGroq llama-3.3-70b · استدعاء دوال
- Channelالقناة
- Telegram bot per shopبوت Telegram لكل متجر
- Infraالبنية
- Multi-tenant, with JWT and Redisمتعدّد المستأجرين، مع JWT وRedis
§ Architectureالبنية
One codebase, an isolated workspace per shop.قاعدة كودٍ واحدة، مساحة معزولة لكل متجر.
The hard part of a multi-tenant system is keeping every shop's data cleanly separated while running one codebase. The backend is FastAPI with PostgreSQL through SQLAlchemy, plus JWT auth and Redis, and tenancy runs through the data layer so one shop never sees another's rows. A Vue 3 and Tailwind dashboard sits on top for the shop owners.الجزء الصعب في نظام متعدّد المستأجرين هو إبقاء بيانات كل متجر منفصلة بنظافة مع تشغيل قاعدة كود واحدة. الخادم FastAPI مع PostgreSQL عبر SQLAlchemy، ومعه مصادقة JWT وRedis، وفصل المستأجرين يمرّ عبر طبقة البيانات بحيث لا يرى متجر صفوف متجر آخر. وفوقها لوحة تحكّم Vue 3 وTailwind لأصحاب المتاجر.
Architecture
Visual placeholder · add exportصورة مؤقتة · أضف التصدير
§ The AI layerطبقة الذكاء
A shop assistant that acts, not just chats.مساعدُ متجرٍ يتصرّف، لا يحادث فقط.
Each shop gets an AI assistant over Telegram, running on Groq's llama-3.3-70b. It does more than chat: 15 function-call tools let it act on that shop's own data, and it serves customers in Arabic, English, Turkish, French and German. Because those tools run against the tenant's data, the AI is held to the same boundaries as every other request.لكل متجر مساعد ذكي عبر Telegram، يعمل على نموذج Groq llama-3.3-70b. وهو يفعل أكثر من المحادثة: 15 أداة استدعاء دوال تتيح له التعامل مع بيانات ذلك المتجر، ويخدم العملاء بالعربية والإنجليزية والتركية والفرنسية والألمانية. ولأن تلك الأدوات تعمل على بيانات المستأجر، يخضع الذكاء للحدود نفسها التي يخضع لها أي طلب آخر.
§ Reflectionتأمّل
Working across every layer of one product.العمل عبر كل طبقة في منتج واحد.
Blatos is where I worked across every layer of a real SaaS: a multi-tenant data model, a FastAPI backend, a Vue front-end, and an AI layer wired in with function-calling. I did it alongside an engineer whose core-logic and AI design I was building against, which turned out to be its own skill. Integrating someone else's strongest thinking without flattening it is harder than owning the whole thing.في Blatos عملتُ عبر كل طبقة في نظام SaaS حقيقي: نموذج بيانات متعدّد المستأجرين، وخادم FastAPI، وواجهة Vue، وطبقة ذكاء موصولة عبر استدعاء الدوال. وفعلتُ ذلك إلى جانب مهندس كنتُ أبني على تصميمه لمنطق النظام وذكائه، وتبيّن أن هذه مهارة بحدّ ذاتها. فدمج أقوى تفكير شخص آخر دون أن تُسطّحه أصعب من أن تملك الشيء كله.
