Darbar.one
Blog WebApp · Darbar · 1 month
Darbar (দরবার) is a Bangla-language community blog and media platform built for Muslim readers who want trustworthy Islamic knowledge, culture, history, and opinion in their native language. Anyone can read; registered members can write, save, like, and discuss; and a built-in editorial pipeline ensures every piece of content is reviewed before it reaches the public.
Darbar is an online publication and knowledge sharing destination designed entirely around the Bangla speaking Muslim community. Where most digital Islamic media in Bengal either lives behind language barriers (Arabic, Urdu) or lacks editorial rigour, Darbar fills that gap with a platform that combines a community blog, a moderated editorial workflow, and a multimedia library all in fluent, native Bangla (with full English support alongside it).
The experience mirrors the feel of a respected magazine. Visitors land on a rich homepage with a hero slider of featured content, curated podcast and video boxes, and a browsable feed filterable by format (article, video, podcast) and topic (Religion, History, Politics, Technology, Sports, Opinion). Content pages support text-to-speech meaning a reader can listen to an article in Bangla without any extra app alongside inline video and audio players, a threaded comment section, social sharing, bookmarking, and a like system.
Community participation is a first-class feature. Any registered user can draft and submit writing directly through the platform. Guest submissions are also accepted through a public form. Once submitted, content enters a moderation queue where a moderator reviews it, requests changes if needed, approves or rejects it, and can send written feedback to the author. Approved content is then published, optionally featured by an admin, and tracked for views, likes, and engagement. Authors can watch the lifecycle of their work through a personal dashboard draft, submitted, under review, published, or rejected and resubmit after edits.
The platform's four-tier role system (Reader → Writer → Moderator → Admin) gives it genuine editorial depth. Admins manage featured content slots, control site-wide branding and SEO metadata from a settings panel, run analytics on view and engagement trends, and maintain the taxonomy of categories and hashtags. Moderators handle the day-to-day submission queue and can flag users. Writers have a full content editor with rich-text body, thumbnail upload to Cloudinary, video/audio URLs, hashtags, and draft saving. Comments themselves are moderated every comment is held pending before appearing publicly, keeping discourse clean.
The platform is a Progressive Web App: it works offline via a service worker, is installable on mobile home screens, and uses a self-hosted Bengali Unicode font (Shokuntola) to guarantee beautiful Bangla typography across all devices. SEO is handled with structured JSON-LD, dynamic sitemap generation, Open Graph and Twitter Card metadata, and a canonical URL strategy so every article is discoverable by search engines and shareable on social media.
Technical Foundation The stack is deliberately modern and lean. The frontend and server both run on Next.js 16 / React 19, using the App Router for co-located layouts, server components, and API route handlers. All real-time persistence and authentication are handled by Firebase (Firestore for the database, Firebase Auth for identity, including Google OAuth). Firebase Admin SDK runs on the server side for protected routes and session management using signed HTTP-only cookies. Media uploads (thumbnails) go to Cloudinary through a server-side API route so credentials never reach the browser. The UI is styled with Tailwind CSS v4, localisation is handled by a hand-rolled LanguageContext covering full Bangla and English translation maps, and input validation uses Zod schemas shared across client and server. The test suite combines Vitest (unit/integration) with Playwright (end-to-end, including accessibility, mobile, and i18n specs).
Challenges The hardest problems are the ones that come with building for a language and audience that most tooling ignores. Rendering Bangla typography correctly across browsers required self-hosting a Unicode woff2 font and carefully tuning CSS line-heights. Building a bilingual interface where every string, label, error message, and admin panel toggle exists in both Bangla and English and is contextually appropriate, not just machine-translated demanded a large, carefully maintained translation layer. The moderation pipeline had to handle multiple concurrent state transitions (submitted → under review → changes requested → resubmitted → approved → re-moderated) without race conditions in Firestore, which is eventually consistent. Keeping the service worker's offline cache fresh without breaking deployments, and ensuring the PWA manifest and themed status bar work across both Android and iOS, added layers of platform-specific friction that documentation alone cannot solve.
Technologies
Next.js, TypeScript, Node.js, Firebase, Apache
Services
UI/UX, Development