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91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
# ๐Ÿš€ OpenPrompt - AI Prompts Marketplace + Tools Suite

> **Production-ready platform combining a prompts marketplace with 177+ AI-powered tools, browser extension, and multi-model support**

[![Next.js](https://img.shields.io/badge/Next.js-16.0.8-black)](https://nextjs.org/)
[![TypeScript](https://img.shields.io/badge/TypeScript-5.8-blue)](https://www.typescriptlang.org/)
[![Prisma](https://img.shields.io/badge/Prisma-7.1-2D3748)](https://www.prisma.io/)
[![React](https://img.shields.io/badge/React-19.2-61DAFB)](https://react.dev/)

**Live Demo:** [https://open-prompt.netlify.app](https://open-prompt.netlify.app)

---

## ๐Ÿ“– Table of Contents

- [Features](#-features)
- [Tech Stack](#-tech-stack)
- [Getting Started](#-getting-started)
- [Project Structure](#-project-structure)
- [Browser Extension](#-browser-extension)
- [Available Tools](#-available-tools)
- [Deployment](#-deployment)
- [Documentation](#-documentation)
- [Support](#-support)

---

## โœจ Features

### Prompts Marketplace

- ๐Ÿ” **Advanced Search** - Full-text search with real-time filtering
- ๐Ÿ“Š **Trending Algorithm** - Hot score calculation for viral prompts
- ๐Ÿท๏ธ **7 Categories** - Content, Development, Marketing, Business, Education, Creative, Research
- โญ **User Engagement** - Star, share, remix, and collect prompts
- ๐Ÿ‘ฅ **Creator Economy** - Profile pages, rankings (Bronze/Silver/Gold/Verified), stats
- ๐ŸŽจ **10 Frameworks** - RACE, CARE, APE, CREATE, RISEN, RTF, TAG, BAB, STAR, PREP
- ๐Ÿ… **Quality Badges** - Auto-calculated (Hot, Viral, Featured, Top Rated, etc.)
- ๐Ÿ“ฆ **Collections** - Organize and share prompt collections
- ๐Ÿ”— **Embeds** - Share prompts with 3 theme options
- ๐Ÿ’ฌ **Comments** - Threaded discussions with likes and replies
- ๐ŸŒ“ **Dark Mode** - Beautiful light and dark themes

### AI Tools Suite (177 Tools Across 15 Categories)

- ๐ŸŽฏ **Prompting** (9) - Optimizer, Checker, Chain-of-Thought, Few-Shot, Meta-Prompt, etc.
- ๐Ÿ“ข **Marketing** (14) - Strategy, Sales Copy, Hooks, Ads, Campaigns
- ๐Ÿข **Branding** (11) - Business Names, Slogans, USP, Brand Voice
- โœ๏ธ **Copywriting** (12) - Titles, Headlines, Meta, Landing Pages
- ๐Ÿ’ผ **Business** (15) - Plans, Mission, SWOT, Pitches, Financial Models
- ๐Ÿ“ง **Email** (10) - Subject Lines, Cold Email, Sequences, Templates
- ๐Ÿ“ฆ **Product** (12) - Descriptions, PRDs, User Stories, Roadmaps
- ๐Ÿ’ผ **HR** (11) - Job Descriptions, Interviews, Reviews, Onboarding
- โญ **Personal Brand** (8) - LinkedIn, Twitter, Instagram, Bio
- ๐Ÿ“‹ **Operations** (9) - SOPs, KPIs, Process Improvement
- ๐Ÿ“ฑ **Social Media** (12) - Posts, Captions, Hashtags, Calendars
- ๐ŸŽ“ **Education** (10) - Lesson Plans, Quizzes, Curriculum
- ๐Ÿ’ป **Development** (15) - Code Review, Documentation, APIs
- ๐ŸŽจ **Creative** (14) - Stories, Scripts, Poetry, Art Prompts
- ๐Ÿ”ฌ **Research** (15) - Analysis, Summaries, Literature Review

### Image Prompts Gallery
- ๐ŸŽจ **Midjourney** - v6.1, v6, v5.2, niji 6
- ๐Ÿ–ผ๏ธ **DALL-E** - DALL-E 3, DALL-E 2
- ๐ŸŽฏ **Stable Diffusion** - SDXL, SD 3.5, SD 1.5
- โšก **FLUX** - FLUX.1-dev, schnell, pro
- ๐Ÿฆ **Leonardo AI** - Phoenix, Kino XL, Vision XL
- ๐Ÿ”ฅ **Adobe Firefly** - Firefly 3, Firefly 2

### AI Characters
- ๐Ÿค– **Experts** - Coding, Writing, Business mentors
- ๐ŸŽญ **Roleplay** - Storytelling, Adventure companions
- ๐ŸŽ“ **Education** - Tutors, Study buddies
- ๐Ÿ’ผ **Productivity** - Task assistants, Planners
- ๐ŸŽจ **Creative** - Art directors, Music composers

### Thunderdome โš”๏ธ
- **Model vs Model** - Compare AI responses head-to-head
- **Community Voting** - Real-time leaderboard
- **20+ Models** - GPT-4o, Claude 3.5, Gemini 2.5, Ollama models

### Workflow Chains ๐Ÿ”—
- **Multi-step Prompts** - Chain prompts together
- **Variable Passing** - Output โ†’ Input automation
- **Templates** - Pre-built workflow patterns

### Infrastructure

- โšก **Multi-Model AI** - OpenAI, Anthropic, Google AI, Ollama (20+ local models)
- ๐Ÿ”„ **Response Caching** - Redis with 7-day TTL
- ๐Ÿ›ก๏ธ **Rate Limiting** - 10/hr guests, 50/hr users
- ๐Ÿค– **Bot Protection** - Cloudflare Turnstile
- ๐Ÿ“Š **Analytics** - Usage tracking, engagement metrics
- ๐Ÿ” **Authentication** - Stack Auth integration
- ๐Ÿ“ฑ **Mobile Responsive** - Works on all devices
- ๐Ÿงฉ **Browser Extension** - Open prompts in any AI chat

---

## ๐Ÿ› ๏ธ Tech Stack

**Frontend:**
- [Next.js 16.0.8](https://nextjs.org/) - React framework with Turbopack
- [React 19.2.1](https://react.dev/) - UI library
- [TypeScript 5.8](https://www.typescriptlang.org/) - Type safety
- [Tailwind CSS 4.x](https://tailwindcss.com/) - Styling
- [Shadcn/ui](https://ui.shadcn.com/) - UI components
- [Framer Motion](https://www.framer.com/motion/) - Animations

**Backend:**
- [Next.js API Routes](https://nextjs.org/docs/api-routes/introduction) - Serverless functions
- [Prisma 7.1](https://www.prisma.io/) - Database ORM
- [PostgreSQL](https://www.postgresql.org/) - Database (via Neon)
- [Redis](https://redis.io/) - Caching (via Upstash)

**AI & Services:**
- [OpenAI API](https://platform.openai.com/) - GPT-4o, GPT-4o-mini
- [Anthropic API](https://www.anthropic.com/) - Claude 3.5 Sonnet, Claude 3 Haiku
- [Google AI](https://ai.google.dev/) - Gemini 2.5 Flash, Gemini 2.0 Flash
- [Ollama](https://ollama.ai/) - 20+ local models (Llama, Mistral, Phi, etc.)
- [Stack Auth](https://stack-auth.com/) - Authentication
- [Cloudflare Turnstile](https://www.cloudflare.com/products/turnstile/) - Bot protection

**Deployment:**
- [Vercel](https://vercel.com/) - Hosting & deployments
- [GitHub](https://github.com/) - Version control

---

## ๐Ÿš€ Getting Started

### Prerequisites

- Node.js 18+ 
- npm or yarn
- PostgreSQL database (or Neon account)
- OpenAI API key

### Installation

1. **Clone the repository**

```bash
git clone https://github.com/Anky9972/open-prompt.git
cd open-prompt
```

2. **Install dependencies**

```bash
npm install
```

3. **Set up environment variables**

Create `.env.local`:

```env
# Database
DATABASE_URL="postgresql://..."

# Authentication (Stack Auth)
NEXT_PUBLIC_STACK_PROJECT_ID="..."
NEXT_PUBLIC_STACK_PUBLISHABLE_CLIENT_KEY="..."
STACK_SECRET_SERVER_KEY="..."

# AI Models (Required)
OPENAI_API_KEY="sk-..."

# Optional
ANTHROPIC_API_KEY="sk-ant-..."
GOOGLE_AI_API_KEY="..."
UPSTASH_REDIS_REST_URL="..."
UPSTASH_REDIS_REST_TOKEN="..."
NEXT_PUBLIC_TURNSTILE_SITE_KEY="..."
TURNSTILE_SECRET_KEY="..."
```

4. **Set up database**

```bash
npx prisma generate
npx prisma db push
npx prisma db seed  # Optional: adds sample data
```

5. **Run development server**

```bash
npm run dev
```

Visit [http://localhost:3000](http://localhost:3000)

---

## ๐Ÿ“ Project Structure

```
openprompt/
โ”œโ”€โ”€ src/
โ”‚   โ”œโ”€โ”€ app/                    # Next.js app directory
โ”‚   โ”‚   โ”œโ”€โ”€ api/               # API routes
โ”‚   โ”‚   โ”œโ”€โ”€ categories/        # Category pages
โ”‚   โ”‚   โ”œโ”€โ”€ category/          # Dynamic category
โ”‚   โ”‚   โ”œโ”€โ”€ collections/       # Collections
โ”‚   โ”‚   โ”œโ”€โ”€ create/            # Create prompt
โ”‚   โ”‚   โ”œโ”€โ”€ creators/          # Creators index
โ”‚   โ”‚   โ”œโ”€โ”€ creator/           # Creator profile
โ”‚   โ”‚   โ”œโ”€โ”€ embed/             # Embed pages
โ”‚   โ”‚   โ”œโ”€โ”€ explore/           # Explore page
โ”‚   โ”‚   โ”œโ”€โ”€ image-prompts/     # Image generation prompts
โ”‚   โ”‚   โ”œโ”€โ”€ characters/        # AI characters
โ”‚   โ”‚   โ”œโ”€โ”€ leaderboard/       # Creator rankings
โ”‚   โ”‚   โ”œโ”€โ”€ p/                 # Prompt runner
โ”‚   โ”‚   โ”œโ”€โ”€ thunderdome/       # Model comparison
โ”‚   โ”‚   โ”œโ”€โ”€ workflows/         # Workflow chains
โ”‚   โ”‚   โ”œโ”€โ”€ tools/             # AI tools suite
โ”‚   โ”‚   โ”œโ”€โ”€ about/             # About page
โ”‚   โ”‚   โ”œโ”€โ”€ docs/              # Documentation
โ”‚   โ”‚   โ”œโ”€โ”€ guides/            # User guides
โ”‚   โ”‚   โ”œโ”€โ”€ blog/              # Blog
โ”‚   โ”‚   โ”œโ”€โ”€ layout.tsx         # Root layout
โ”‚   โ”‚   โ””โ”€โ”€ page.tsx           # Landing page
โ”‚   โ”œโ”€โ”€ components/            # React components
โ”‚   โ”‚   โ”œโ”€โ”€ auth/              # Auth components
โ”‚   โ”‚   โ”œโ”€โ”€ comments/          # Comments system
โ”‚   โ”‚   โ”œโ”€โ”€ create/            # Creation components
โ”‚   โ”‚   โ”œโ”€โ”€ engagement/        # Engagement metrics
โ”‚   โ”‚   โ”œโ”€โ”€ explore/           # Discovery components
โ”‚   โ”‚   โ”œโ”€โ”€ layout/            # Layout (header, footer)
โ”‚   โ”‚   โ”œโ”€โ”€ prompt-runner/     # Prompt execution
โ”‚   โ”‚   โ”œโ”€โ”€ prompts/           # Prompt components
โ”‚   โ”‚   โ”œโ”€โ”€ thunderdome/       # Model comparison UI
โ”‚   โ”‚   โ”œโ”€โ”€ tools/             # Tool components
โ”‚   โ”‚   โ”œโ”€โ”€ workflow/          # Workflow builder
โ”‚   โ”‚   โ””โ”€โ”€ ui/                # Shadcn UI components
โ”‚   โ”œโ”€โ”€ lib/                   # Utilities
โ”‚   โ”‚   โ”œโ”€โ”€ prisma.ts          # Prisma client
โ”‚   โ”‚   โ”œโ”€โ”€ tools.ts           # 177 tool definitions
โ”‚   โ”‚   โ”œโ”€โ”€ frameworks.ts      # Prompt frameworks
โ”‚   โ”‚   โ””โ”€โ”€ utils.ts           # Helper functions
โ”‚   โ””โ”€โ”€ types/                 # TypeScript types
โ”œโ”€โ”€ prisma/
โ”‚   โ”œโ”€โ”€ schema.prisma          # Database schema
โ”‚   โ””โ”€โ”€ seed.ts                # Seed data
โ”œโ”€โ”€ openprompt-extension/      # Browser extension
โ”‚   โ”œโ”€โ”€ src/                   # Extension source
โ”‚   โ”œโ”€โ”€ dist/                  # Built extension
โ”‚   โ””โ”€โ”€ README.md              # Extension docs
โ”œโ”€โ”€ public/                    # Static assets
โ”œโ”€โ”€ DEPLOYMENT.md              # Deployment guide
โ”œโ”€โ”€ FEATURE-GAP-ANALYSIS.md    # Feature roadmap
โ””โ”€โ”€ README.md                  # This file
```

---

## ๐Ÿงฉ Browser Extension

Open prompts directly in ChatGPT, Claude, Gemini, and other AI interfaces with one click!

### Supported Platforms
- โœ… ChatGPT (chatgpt.com)
- โœ… Claude (claude.ai)
- โœ… Gemini (gemini.google.com)
- โœ… Perplexity (perplexity.ai)
- โœ… Mistral (chat.mistral.ai)
- โœ… Microsoft Copilot (copilot.microsoft.com)

### Installation

```bash
cd openprompt-extension
npm install
npm run build
```

Then load the `dist` folder as an unpacked extension in Chrome.

See [openprompt-extension/README.md](openprompt-extension/README.md) for detailed instructions.

---

## ๐Ÿ”ง Available Tools

### 177 Tools Across 15 Categories

| Category | Count | Examples |
|----------|-------|----------|
| **Prompting** | 9 | Optimizer, Chain-of-Thought, Meta-Prompt |
| **Marketing** | 14 | Strategy, Ads, Campaigns, Funnels |
| **Branding** | 11 | Names, Slogans, Voice, Guidelines |
| **Copywriting** | 12 | Headlines, Landing Pages, CTAs |
| **Business** | 15 | Plans, SWOT, Pitches, Financials |
| **Email** | 10 | Sequences, Templates, Subject Lines |
| **Product** | 12 | PRDs, Roadmaps, User Stories |
| **HR** | 11 | Job Posts, Interviews, Onboarding |
| **Personal Brand** | 8 | LinkedIn, Twitter, Bio Generators |
| **Operations** | 9 | SOPs, KPIs, Process Improvement |
| **Social Media** | 12 | Posts, Reels, Calendars, Hashtags |
| **Education** | 10 | Lesson Plans, Quizzes, Curriculum |
| **Development** | 15 | Code Review, Docs, API Design |
| **Creative** | 14 | Stories, Scripts, Poetry, Art |
| **Research** | 15 | Analysis, Summaries, Literature |

See [src/lib/tools.ts](src/lib/tools.ts) for complete definitions.

---

## ๐ŸŒ Deployment

### Deploy to Vercel (Recommended)

1. **Push to GitHub**

```bash
git add .
git commit -m "Initial commit"
git push origin main
```

2. **Import to Vercel**

- Go to [vercel.com/new](https://vercel.com/new)
- Import your repository
- Add environment variables
- Deploy!

3. **Set up domain** (optional)

- Add custom domain in Vercel dashboard
- Configure DNS settings
- SSL automatically provisioned

For detailed instructions, see [DEPLOYMENT.md](DEPLOYMENT.md)

---

## ๐Ÿ“š Documentation

- **[DEPLOYMENT.md](DEPLOYMENT.md)** - Complete deployment guide
- **[FEATURE-GAP-ANALYSIS.md](FEATURE-GAP-ANALYSIS.md)** - Competitor analysis & roadmap
- **[openprompt-extension/README.md](openprompt-extension/README.md)** - Browser extension docs

---

## ๐ŸŽฏ Roadmap

### โœ… Current: v1.0 (Complete)
- โœ… Full prompts marketplace with 7 categories
- โœ… 177 AI tools across 15 categories
- โœ… Multi-model support (OpenAI, Anthropic, Google, Ollama)
- โœ… Thunderdome model comparison
- โœ… Workflow chains
- โœ… Image prompts gallery
- โœ… AI characters
- โœ… Comments & engagement
- โœ… Creator leaderboard
- โœ… Browser extension

### ๐Ÿšง Next: v1.5
- [ ] Prompt marketplace (buy/sell)
- [ ] Team workspaces
- [ ] API access
- [ ] Custom fine-tuning

### ๐Ÿ”ฎ Future: v2.0
- [ ] Mobile app
- [ ] Enterprise features
- [ ] White-label option
- [ ] Plugin ecosystem

---

## ๐Ÿ’ฐ Monetization

### Free Tier
- All basic features
- 20 tool executions/day
- Community prompts

### Pro ($9/month)
- Unlimited tool executions
- Access to PRO tools
- Execution history
- Priority support

### Enterprise (Custom)
- API access
- Custom tools
- White-label
- SLA guarantee

---

## ๐Ÿ“ž Support

- **Issues:** [GitHub Issues](https://github.com/Anky9972/open-prompt/issues)
- **Discussions:** [GitHub Discussions](https://github.com/Anky9972/open-prompt/discussions)
- **Email:** ankygaur9972@gmail.com
- **Twitter:** [@anky_vivek](https://x.com/anky_vivek)

---

## ๐ŸŒŸ Star History

If you find this project useful, please consider giving it a star โญ

---

**Built with โค๏ธ by [Anky9972](https://github.com/Anky9972)**

[Website](https://open-prompt.netlify.app) ยท [Twitter](https://x.com/anky_vivek) ยท [GitHub](https://github.com/Anky9972/open-prompt)