Knowledge hub for developers for snippets, prompts, commands and more
Knowledge hub for developers for snippets, prompts, commands and more
DevStash
A unified hub for developer knowledge & resources
Developers keep their essentials scattered across VS Code snippets, browser bookmarks, chat histories, bash history, and random folders. DevStash brings everything into one fast, searchable, AI-enhanced hub.
This project is part of the Coding With AI course by Brad Traversy.
The docs, spec files, and other resources for this project are available in the course resources repo.
Core
AI-Powered (Pro)
Other
| Category | Technology |
|---|---|
| Framework | Next.js 16 / React 19 |
| Language | TypeScript 5 |
| Database | Neon PostgreSQL |
| ORM | Prisma 7 |
| Auth | NextAuth v5 (JWT) |
| Styling | Tailwind CSS v4 + shadcn/ui |
| AI | OpenAI |
| Payments | Stripe |
| File Storage | Cloudflare R2 |
| Rate Limiting | Upstash Redis |
| Resend | |
| Testing | Vitest |
git clone https://github.com/bradtraversy/devstash.git
cd devstash
npm installCopy the example env file and fill in your values:
cp .env.example .env| Variable | Description |
|---|---|
NEXT_PUBLIC_APP_URL |
App URL (default: http://localhost:3000) |
DATABASE_URL |
Neon PostgreSQL connection string |
AUTH_SECRET |
NextAuth secret (generate with npx auth secret) |
AUTH_GITHUB_ID |
GitHub OAuth app ID |
AUTH_GITHUB_SECRET |
GitHub OAuth app secret |
RESEND_API_KEY |
Resend API key for emails |
SKIP_EMAIL_VERIFICATION |
Set to true to skip email verification in dev |
UPSTASH_REDIS_REST_URL |
Upstash Redis URL for rate limiting |
UPSTASH_REDIS_REST_TOKEN |
Upstash Redis token |
R2_ACCOUNT_ID |
Cloudflare R2 account ID |
R2_ACCESS_KEY_ID |
R2 access key |
R2_SECRET_ACCESS_KEY |
R2 secret key |
R2_BUCKET_NAME |
R2 bucket name |
R2_PUBLIC_URL |
R2 public URL |
OPENAI_API_KEY |
OpenAI API key for AI features |
STRIPE_SECRET_KEY |
Stripe secret key |
STRIPE_PUBLISHABLE_KEY |
Stripe publishable key |
STRIPE_WEBHOOK_SECRET |
Stripe webhook signing secret |
STRIPE_PRICE_ID_MONTHLY |
Stripe monthly price ID |
STRIPE_PRICE_ID_YEARLY |
Stripe yearly price ID |
# Run migrations
npx prisma migrate dev
# Seed system item types (snippet, prompt, command, note, file, image, link)
npm run db:seednpm run devOpen http://localhost:3000.
| Command | Description |
|---|---|
npm run dev |
Start dev server |
npm run build |
Build for production |
npm run start |
Start production server |
npm run lint |
Run ESLint |
npm run test |
Run tests (single run) |
npm run test:watch |
Run tests (watch mode) |
npm run db:migrate |
Create and run migrations |
npm run db:seed |
Seed system item types |
npm run db:studio |
Open Prisma Studio |
…This project is licensed under the MIT License.
No open issues yet, or sync has not completed.