{"id":16485770,"url":"https://github.com/maearon/bugbook","last_synced_at":"2026-05-05T08:36:11.026Z","repository":{"id":299500112,"uuid":"994495233","full_name":"maearon/bugbook","owner":"maearon","description":null,"archived":false,"fork":false,"pushed_at":"2025-06-02T05:37:24.000Z","size":272,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-06-16T22:11:52.125Z","etag":null,"topics":["lucia-auth","lucide-react","next-api-routes","nextjs","prisma","radix-ui","serverless","session-cookie","social","tailwindcss"],"latest_commit_sha":null,"homepage":"https://ruby-rails-boilerplate.vercel.app/","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/maearon.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-06-02T02:59:12.000Z","updated_at":"2025-06-13T06:17:43.000Z","dependencies_parsed_at":"2025-06-16T22:21:57.918Z","dependency_job_id":null,"html_url":"https://github.com/maearon/bugbook","commit_stats":null,"previous_names":["maearon/bugbook"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/maearon/bugbook","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maearon%2Fbugbook","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maearon%2Fbugbook/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maearon%2Fbugbook/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maearon%2Fbugbook/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/maearon","download_url":"https://codeload.github.com/maearon/bugbook/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maearon%2Fbugbook/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":268171959,"owners_count":24207437,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-01T02:00:08.611Z","response_time":67,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["lucia-auth","lucide-react","next-api-routes","nextjs","prisma","radix-ui","serverless","session-cookie","social","tailwindcss"],"created_at":"2024-10-11T13:27:07.921Z","updated_at":"2026-05-05T08:36:05.992Z","avatar_url":"https://github.com/maearon.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Next.js 15 Social Media App\n\n```\nhttps://github.com/maearon/bugbook\n├── ./src/app/layout.tsx\n│   ├── @/components/ui/toaster.tsx\n│   │   ├── @/components/ui/toast.ts\n│   │   └── @/components/ui/use-toast.ts\n│   ├── ./src/app/api/uploadthing/core.ts\n│   │   ├── @/auth.ts\n│   │   ├── @lib/prisma.ts\n│   │   └── @/lib/stream\n│   └── ./src/app/ReactQueryProvider.tsx\n├── \n├── \n├── \n├── \n├── \n├── \n└── \n```\n\nA full-stack social media app with infinite loading, optimistic updates, authentication, DMs, notifications, file uploads, and much more.\n\nWatch the free tutorial on YouTube PART 1: https://www.youtube.com/watch?v=TyV12oBDsYI\n\n```\nTimestamps:\n0:00 - Project overview\n16:54 - Project \u0026 IDE setup (create-next-app, Shadcn UI, Prettier Tailwind plugin, Prisma, extensions)\n40:52 - DB setup (Vercel Postgres + Prisma ORM)\n46:02 - Lucia Auth setup (username, email, password login)\n2:35:11 - Navbar, SessionProvider, user button\n3:17:41 - Dark mode (next-themes)\n3:24:00 - Responsive sticky sidebar/bottom bar\n3:34:21 - Creating posts (TipTap editor)\n3:52:06 - Loading posts server-side (server component)\n4:08:42 - Trending topics sidebar (unstable_cache, Suspense)\n4:35:25 - React Query introduction (useQuery, QueryClient, QueryClientProvider, ReactQueryDevTools)\n4:52:59 - Ky setup\n4:57:46 - useInfiniteQuery (infinite loading, cursor-based pagination, react-intersection-observer)\n5:22:29 - React Query cache mutation (useMutation, setQueriesData vs invalidateQueries)\n5:41:21 - Deleting posts\n6:08:50 - Follow feature (React Query optimistic updates)\n6:53:47 - Following feed (Shadcn UI customization)\n7:01:21 - User profile page (generateMetadata, loading.tsx, not-found.tsx)\n```\n\nWatch the free tutorial on YouTube PART 2: https://www.youtube.com/watch?v=1nKETjqJluI\u0026t\n\n```\nTimestamps:\n0:00 - User tooltip \u0026 react-linkify-it\n30:26 - Update user profile \u0026 upload avatar (UploadThing, react-cropper, react-image-file-resizer)\n1:42:48 - Post media uploads (image \u0026 video)\n2:38:48 - Drag \u0026 drop and copy-paste uploads\n2:46:07 - Cron job to delete orphaned uploads (Vercel cron)\n2:57:52 - Post details page\n3:14:58 - Likes feature (optimistic updates)\n3:35:14 - Bookmarks feature\n3:50:27 - Comments feature (with infinite loading)\n4:49:02 - Notifications feature (Prisma transactions)\n5:39:06 - Direct messages feature (Stream Chat)\n7:20:36 - Google signin (OAuth2, Lucia)\n7:48:20 - Search feature (+ rewrites)\n8:01:51 - Deployment (Vercel, custom install command)\n```\n\n![thumbnail 7](https://github.com/user-attachments/assets/686b37e4-3d16-4bc4-a7f2-9d152c3addf5)\n\nThis is a [Next.js](https://nextjs.org) project bootstrapped with [`create-next-app`](https://nextjs.org/docs/app/api-reference/cli/create-next-app).\n\n## Getting Started\n\nFirst, run the development server:\n\n```bash\nnpm install \\\n@hookform/resolvers \\\n@lucia-auth/adapter-prisma \\\n@prisma/client \\\n@radix-ui/react-dialog \\\n@radix-ui/react-dropdown-menu \\\n@radix-ui/react-label \\\n@radix-ui/react-slot \\\n@radix-ui/react-tabs \\\n@radix-ui/react-toast \\\n@radix-ui/react-tooltip \\\n@tanstack/react-query \\\n@tanstack/react-query-devtools \\\n@tiptap/extension-placeholder \\\n@tiptap/pm \\\n@tiptap/react \\\n@tiptap/starter-kit \\\n@uploadthing/react \\\narctic \\\nbcrypt \\\nclass-variance-authority \\\nclsx \\\ndate-fns \\\nky \\\nlucia \\\nlucide-react \\\nnext \\\nnext-themes \\\nprisma \\\nreact \\\nreact-cropper \\\nreact-dom \\\nreact-hook-form \\\nreact-image-file-resizer \\\nreact-intersection-observer \\\nreact-linkify-it \\\nstream-chat \\\nstream-chat-react \\\ntailwind-merge \\\ntailwindcss-animate \\\nuploadthing \\\nzod\n```\n\n```bash\nnpm install -D \\\n@types/bcrypt \\\n@types/node \\\n@types/react \\\n@types/react-dom \\\neslint \\\neslint-config-next \\\neslint-config-prettier \\\npostcss \\\nprettier \\\nprettier-plugin-tailwindcss \\\ntailwindcss \\\ntypescript\n```\n\n```bash\nnpm run dev\n# or\nyarn dev\n# or\npnpm dev\n# or\nbun dev\n```\n\nOpen [http://localhost:3000](http://localhost:3000) with your browser to see the result.\n\nYou can start editing the page by modifying `app/page.tsx`. The page auto-updates as you edit the file.\n\nThis project uses [`next/font`](https://nextjs.org/docs/app/building-your-application/optimizing/fonts) to automatically optimize and load [Geist](https://vercel.com/font), a new font family for Vercel.\n\n## Learn More\n\nTo learn more about Next.js, take a look at the following resources:\n\n- [Next.js Documentation](https://nextjs.org/docs) - learn about Next.js features and API.\n- [Learn Next.js](https://nextjs.org/learn) - an interactive Next.js tutorial.\n\nYou can check out [the Next.js GitHub repository](https://github.com/vercel/next.js) - your feedback and contributions are welcome!\n\n## Deploy on Vercel\n\nThe easiest way to deploy your Next.js app is to use the [Vercel Platform](https://vercel.com/new?utm_medium=default-template\u0026filter=next.js\u0026utm_source=create-next-app\u0026utm_campaign=create-next-app-readme) from the creators of Next.js.\n\nCheck out our [Next.js deployment documentation](https://nextjs.org/docs/app/building-your-application/deploying) for more details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaearon%2Fbugbook","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmaearon%2Fbugbook","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaearon%2Fbugbook/lists"}