Skip to content

sanjayrohith/post-dost

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

27 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation


Mission Made in India Status

Next.js TypeScript Tailwind shadcn/ui

Stars Forks Issues License

Quick Start Features Team Contribute

See PostDost in Action

Homepage
๐Ÿ  Beautiful Homepage
Clean, modern interface with dark theme
Generated Posts
๐ŸŽจ AI-Generated Posts
Culturally-aware content creation
Explore Page
๐Ÿ” Explore Ideas
Discover trending content themes
Maps Feature
๐Ÿ—บ๏ธ Location Intelligence
Interactive maps for local businesses

๐Ÿ“Œ Overview

Overview Typing

Note

PostDost AI empowers small & local Indian businesses to quickly spin up engaging, culturally-relevant social media post ideas (captions + images). The current version ships with deterministic placeholder generation to keep the project light, demo-friendly, and privacy-safe. Plug in any AI provider later!



Made for India
Localized for Indian festivals & culture

Lightning Fast
No external API calls needed

Privacy First
Your data stays local

Open Source
Fork & customize freely

โœจ Features

Features

๐ŸŽฏ Core Features

Feature Description Status
๐Ÿ“ Smart Captions Multi-caption generation with localized hashtag patterns โœ… Live
๐Ÿ–ผ๏ธ Image Selection Deterministic pseudo-random selection from curated sources โœ… Live
๐Ÿ—บ๏ธ Maps Integration Leaflet + OpenStreetMap with geolocation & mock POIs โœ… Live
๐ŸŒ™ Dark Theme Beautiful dark UI with accessible components โœ… Live
๐Ÿ“ฑ Responsive Works perfectly on all device sizes โœ… Live
๐Ÿ” Auth System JWT-based authentication with secure endpoints โœ… Live

๐ŸŽจ Click to see Feature Highlights
โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚                    ๐ŸŽฏ POST GENERATOR                          โ”‚
โ”‚                                                               โ”‚
โ”‚  โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”    โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”                  โ”‚
โ”‚  โ”‚  Business Info  โ”‚ -> โ”‚  AI Processing  โ”‚                  โ”‚
โ”‚  โ”‚  โ€ข Name         โ”‚    โ”‚  โ€ข Caption Gen  โ”‚                  โ”‚
โ”‚  โ”‚  โ€ข Category     โ”‚    โ”‚  โ€ข Hashtags     โ”‚                  โ”‚
โ”‚  โ”‚  โ€ข Location     โ”‚    โ”‚  โ€ข Image Match  โ”‚                  โ”‚
โ”‚  โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜    โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜                  โ”‚
โ”‚                                โ”‚                              โ”‚
โ”‚                                โ–ผ                              โ”‚
โ”‚                    โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”                       โ”‚
โ”‚                    โ”‚  Ready to Post! โ”‚                       โ”‚
โ”‚                    โ”‚  ๐Ÿ“ฑ Instagram   โ”‚                       โ”‚
โ”‚                    โ”‚  ๐Ÿ“˜ Facebook    โ”‚                       โ”‚
โ”‚                    โ”‚  ๐Ÿฆ Twitter     โ”‚                       โ”‚
โ”‚                    โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜                       โ”‚
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜

๐Ÿ› ๏ธ Tech Stack

Tech Stack

Next.js
Next.js 15
App Router
TypeScript
TypeScript 5
Type Safety
Tailwind
Tailwind CSS
Styling
React
React 19
UI Library
shadcn
shadcn/ui
Components
RHF
React Hook Form
Form Handling
Zod
Zod
Validation
Leaflet
Leaflet
Maps

๐Ÿงฑ Architecture

flowchart LR
    A[๐Ÿ‘ค User Input] --> B{๐Ÿ“‹ Zod Validation}
    B --> C[๐Ÿค– AI Flow Engine]
    C --> D[๐Ÿ“ Caption Generator]
    C --> E[๐Ÿ–ผ๏ธ Image Selector]
    D --> F[๐ŸŽจ Result Renderer]
    E --> F
    F --> G[๐Ÿ“ฑ Copy/Download]
    
    style A fill:#FF6B35,stroke:#FF6B35,color:#fff
    style B fill:#6C63FF,stroke:#6C63FF,color:#fff
    style C fill:#00D4AA,stroke:#00D4AA,color:#fff
    style D fill:#E91E63,stroke:#E91E63,color:#fff
    style E fill:#E91E63,stroke:#E91E63,color:#fff
    style F fill:#FFD700,stroke:#FFD700,color:#000
    style G fill:#138808,stroke:#138808,color:#fff
Loading
๐Ÿ“ Project Structure (Click to expand)
๐Ÿ“ฆ post-dost
โ”œโ”€โ”€ ๐Ÿ“‚ src
โ”‚   โ”œโ”€โ”€ ๐Ÿ“‚ ai                    # ๐Ÿค– AI-related functionality
โ”‚   โ”‚   โ”œโ”€โ”€ generate-gemini-captions.ts
โ”‚   โ”‚   โ”œโ”€โ”€ generate-image-prompt.ts
โ”‚   โ”‚   โ””โ”€โ”€ generate-image-stability.ts
โ”‚   โ”‚
โ”‚   โ”œโ”€โ”€ ๐Ÿ“‚ app                   # ๐Ÿ“ฑ Next.js app router pages
โ”‚   โ”‚   โ”œโ”€โ”€ ๐Ÿ“‚ api              # ๐Ÿ”Œ API routes
โ”‚   โ”‚   โ”‚   โ”œโ”€โ”€ ๐Ÿ“‚ auth        # ๐Ÿ” Authentication
โ”‚   โ”‚   โ”‚   โ””โ”€โ”€ ๐Ÿ“‚ generate    # โšก Generation endpoints
โ”‚   โ”‚   โ”œโ”€โ”€ ๐Ÿ“‚ dashboard       # ๐Ÿ“Š User dashboard
โ”‚   โ”‚   โ”œโ”€โ”€ ๐Ÿ“‚ explore         # ๐Ÿ” Explore page
โ”‚   โ”‚   โ”œโ”€โ”€ ๐Ÿ“‚ maps            # ๐Ÿ—บ๏ธ Maps feature
โ”‚   โ”‚   โ”œโ”€โ”€ ๐Ÿ“‚ results         # ๐Ÿ“ Results display
โ”‚   โ”‚   โ”œโ”€โ”€ layout.tsx         # ๐ŸŽจ Root layout
โ”‚   โ”‚   โ””โ”€โ”€ page.tsx           # ๐Ÿ  Homepage
โ”‚   โ”‚
โ”‚   โ”œโ”€โ”€ ๐Ÿ“‚ components           # ๐Ÿงฉ React components
โ”‚   โ”‚   โ”œโ”€โ”€ ๐Ÿ“‚ ui              # ๐ŸŽจ shadcn/ui components
โ”‚   โ”‚   โ”œโ”€โ”€ navbar.tsx         # ๐Ÿ” Navigation bar
โ”‚   โ”‚   โ””โ”€โ”€ suggestion-cards.tsx
โ”‚   โ”‚
โ”‚   โ”œโ”€โ”€ ๐Ÿ“‚ contexts            # ๐Ÿ”„ React contexts
โ”‚   โ”œโ”€โ”€ ๐Ÿ“‚ hooks               # ๐Ÿช Custom hooks
โ”‚   โ””โ”€โ”€ ๐Ÿ“‚ lib                 # ๐Ÿ› ๏ธ Utilities
โ”‚
โ”œโ”€โ”€ ๐Ÿ“„ package.json
โ”œโ”€โ”€ ๐Ÿ“„ tailwind.config.js
โ”œโ”€โ”€ ๐Ÿ“„ tsconfig.json
โ””โ”€โ”€ ๐Ÿ“„ README.md               # ๐Ÿ“– You are here!

๐Ÿš€ Quick Start

Quick Start

โšก One-Command Setup

๐ŸชŸ Windows

.\setup.bat

๐Ÿง Linux/macOS

chmod +x setup.sh && ./setup.sh

๐Ÿ“ Manual Setup

Step-by-step instructions
# 1๏ธโƒฃ Clone the repository
git clone https://github.com/sanjayrohith/post-dost.git
cd post-dost

# 2๏ธโƒฃ Install dependencies
npm install --legacy-peer-deps

# 3๏ธโƒฃ Set up environment variables
cp .env.example .env.local

# 4๏ธโƒฃ Start development server
npm run dev

# ๐ŸŽ‰ Open http://localhost:3000 and enjoy!

โš™๏ธ Environment Configuration

# .env.local
JWT_SECRET=your-super-secret-jwt-key-change-in-production
NEXT_PUBLIC_APP_URL=http://localhost:3000
NODE_ENV=development

# Optional: Add when integrating AI providers
OPENAI_API_KEY=sk-...
GEMINI_API_KEY=...

๐Ÿ“œ Available Scripts

Command Description Badge
npm run dev Start development server with hot reload Dev
npm run build Build optimized production bundle Build
npm run start Start production server Start
npm run lint Run ESLint for code quality Lint
npm run type-check Run TypeScript compiler check Types
npm run clean Clean install (remove node_modules) Clean

๐Ÿ”ง Troubleshooting

๐Ÿ˜ต Nothing shows up / Blank page
# Clear cache and reinstall
rm -rf node_modules package-lock.json .next
npm install --legacy-peer-deps
npm run dev
๐Ÿ—บ๏ธ Maps not loading
  1. Check browser console for errors
  2. Ensure you're using a modern browser
  3. Try refreshing the page
  4. Check if Leaflet CSS is properly loaded
โš ๏ธ React/Leaflet version conflicts
npm install --legacy-peer-deps

๐Ÿ‘ฅ Meet the Team

Team


Contributors Graph

๐Ÿ›ฃ๏ธ Roadmap

๐Ÿš€ PostDost Development Roadmap
================================

Q1 2025                    Q2 2025                    Q3 2025
   โ”‚                          โ”‚                          โ”‚
   โ–ผ                          โ–ผ                          โ–ผ
โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”    โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”    โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚ โœ… Core Features  โ”‚    โ”‚ ๐Ÿ”„ AI Integration โ”‚    โ”‚ ๐ŸŒ Global Launch  โ”‚
โ”‚ โœ… Auth System    โ”‚    โ”‚ ๐Ÿ”„ Multi-language โ”‚    โ”‚ โณ Mobile App     โ”‚
โ”‚ โœ… Maps Module    โ”‚    โ”‚ โณ Real POI Data  โ”‚    โ”‚ โณ Analytics      โ”‚
โ”‚ โœ… Dark Theme     โ”‚    โ”‚ โณ Image Gen API  โ”‚    โ”‚ โณ Team Features  โ”‚
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜    โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜    โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜

๐Ÿ“‹ Detailed Roadmap

  • Basic post generation
  • JWT Authentication
  • Maps integration
  • Dark theme UI
  • ๐Ÿ”„ Secure HttpOnly cookie-based auth session
  • ๐Ÿ”„ Real AI provider integration behind feature flag
  • โณ Image generation microservice
  • โณ i18n (Hindi, Tamil, Telugu, Bengali support)
  • โณ Map POI real data via external API
  • โณ Accessibility audit (WCAG 2.1 AA)
  • โณ Automated e2e tests (Playwright)
  • โณ PWA support for mobile
  • โณ Analytics dashboard

Legend: โœ… Done | ๐Ÿ”„ In Progress | โณ Planned

๐Ÿค Contributing

Contributing

Step Action
1๏ธโƒฃ Fork the repository
2๏ธโƒฃ Create your feature branch (git checkout -b feature/AmazingFeature)
3๏ธโƒฃ Commit your changes (git commit -m 'Add some AmazingFeature')
4๏ธโƒฃ Push to the branch (git push origin feature/AmazingFeature)
5๏ธโƒฃ Open a Pull Request

Tip

Check out our Contributing Guidelines for more details on how to get started!

๐Ÿ“„ License

This project is licensed under the ISC License - see the LICENSE file for details.

License: ISC

๐Ÿ’ฌ Support & Community


๐ŸŒŸ Show your support

If you found this project helpful, please consider giving it a โญ!

Star on GitHub

๐Ÿงช Development Notes

Important

  • Leaflet CSS is intentionally NOT globally importedโ€”only in the maps page
  • All AI code is stubbed; swapping providers should only require updating flow functions
  • Prefer adding new flows under src/ai/ with a consistent return shape

Footer

ยฉ 2025 PostDost AI. All rights reserved.



Back to Top

About

AI social post idea generator for Indian small businesses.Culturally-aware AI-like flows for captions & placeholder images with lightweight JWT auth.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors