Dominex is a polished frontend for a developer-focused social network built with Next.js 14 App Router. It combines secure token-based authentication, modern UI patterns, and real-time collaboration to deliver a rich experience for devs to share posts, follow peers, and engage through nested comments and AI-enhanced workflows.
Designed as an Instagram-style feed for developers, Dominex prioritizes session continuity, responsive navigation, and fast content interactions.
- Next.js 14 (App Router)
- React 19
- Zustand for client state management
- Custom fetch interceptor for auth token refresh
- Socket.io client for real-time updates
- Tailwind CSS for styling
- Lucide React for icons
- Secure JWT authentication flow
- Access token returned in response body
- Refresh token stored in an
httpOnlycookie
- OTP-based user registration via SMTP
- Protected routes with session restore and no F5 flicker
- GitHub-inspired navbar with hamburger sidebar and avatar dropdown
- Feed page with modal-based PostViewer experience
- Nested comments with reply threads and author controls
- Optimistic like toggling for responsive interaction
- Full profile page with follow/unfollow actions and overlay panels
- CreatePostModal with multipart
FormDataimage upload - AI assistant integration with switchable Gemini / OpenAI support
- Refreshable auth interceptor to keep sessions active seamlessly
- Node.js 20+ recommended
- npm (or yarn/pnpm compatible)
- A running backend API that supports the Dominex auth contract
Create a .env.local file at the project root with the following:
NEXT_PUBLIC_SERVER_BASE_URL=https://api.example.com
NEXT_PUBLIC_SERVER_BASE_URLshould point to your Dominex API backend. Example:https://api.dominex.dev/
npm install
npm run devBuild for production:
npm run build
npm startLint:
npm run lintapp/
auth/ # login, register, verify, forgot-password flows
main/ # protected app shell and main pages
components/
navbar/ # GitHub-style header, sidebar, avatar dropdown
post/ # feed cards, post viewer, comment system, create post modal
profile/ # profile layout, stats, follow panels
interceptors/ # custom auth fetch interceptor
lib/ # reusable API helpers and fetch utilities
store/ # Zustand auth state management
public/ # static assets
- Fork the repository
- Create a new branch:
git checkout -b feature/your-feature - Install dependencies:
npm install - Make your changes
- Submit a pull request with a clear summary of the improvement
MIT License
Built with confidence for developer communities and modern social experiences.




