{"id":50497926,"url":"https://github.com/aurorascharff/next16-social-media","last_synced_at":"2026-06-02T09:30:32.352Z","repository":{"id":360295944,"uuid":"1242443675","full_name":"aurorascharff/next16-social-media","owner":"aurorascharff","description":"A dev-flavored social network demo exploring Async React, Cache Components, streaming, and runtime prefetch with Next.js 16, React 19, Tailwind CSS v4, and Shiki.","archived":false,"fork":false,"pushed_at":"2026-05-25T20:35:27.000Z","size":690,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-05-25T21:29:13.496Z","etag":null,"topics":["app-router","async-react","cache-components","nextjs","optimistic-ui","react19","rsc","server-actions","shiki","suspense","tailwindcss-v4","view-transitions"],"latest_commit_sha":null,"homepage":"https://next16-social-media.vercel.app","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/aurorascharff.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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,"notice":null,"maintainers":null,"copyright":null,"agents":"AGENTS.md","dco":null,"cla":null}},"created_at":"2026-05-18T12:37:46.000Z","updated_at":"2026-05-25T20:35:31.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/aurorascharff/next16-social-media","commit_stats":null,"previous_names":["aurorascharff/next16-social-media"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/aurorascharff/next16-social-media","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aurorascharff%2Fnext16-social-media","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aurorascharff%2Fnext16-social-media/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aurorascharff%2Fnext16-social-media/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aurorascharff%2Fnext16-social-media/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/aurorascharff","download_url":"https://codeload.github.com/aurorascharff/next16-social-media/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aurorascharff%2Fnext16-social-media/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33816485,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-02T02:00:07.132Z","response_time":109,"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":["app-router","async-react","cache-components","nextjs","optimistic-ui","react19","rsc","server-actions","shiki","suspense","tailwindcss-v4","view-transitions"],"created_at":"2026-06-02T09:30:30.734Z","updated_at":"2026-06-02T09:30:32.346Z","avatar_url":"https://github.com/aurorascharff.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Next 16 Social Media \"Drop\"\n\nA dev-flavored social network built with Next.js 16, React 19, Tailwind CSS v4, Prisma 7 on Neon Postgres, and Shiki for server-side syntax highlighting.\n\nThe architecture follows the [Next.js App Architecture](.agents/skills/nextjs-app-architecture/SKILL.md) skill and the [Component Architecture for React Server Components](https://aurorascharff.no/posts/component-architecture-for-react-server-components/) blog post.\n\n## Architecture\n\n- **Feature-sliced structure**: `drop/`, `user/`, `tag/` each own queries, actions, and components\n- **Components own their data**: `\u003cFeed\u003e`, `\u003cDropDetail\u003e`, `\u003cTrendingTagsList\u003e` fetch on the server. Move them between pages freely\n- **Pages compose, they don't fetch**: each page is a synchronous blueprint of async components wrapped in Suspense\n- **Client boundaries as leaf nodes**: `'use client'` pushed deep. Server content flows into client components as children\n\n## Caching and Navigation\n\n- **Cache Components**: `'use cache'` per query, not per page. A feed caches for seconds, trending tags for minutes, user-specific data with `'use cache: private'`. `cacheTag` names data, `updateTag` invalidates both server and browser cache\n- **Runtime prefetching**: all pages export `unstable_prefetch = 'force-runtime'` so the framework prefetches cached dynamic data ahead of time, making even database-driven pages instant on click\n\n## Getting Started\n\n```bash\npnpm install\npnpm run prisma.push\npnpm run prisma.seed\npnpm run dev\n```\n\nOpen [http://localhost:3000](http://localhost:3000) in your browser.\n\n## Project Structure\n\n```\napp/                    Pages and layouts\ncomponents/ui/          Visual primitives\nfeatures/\n  drop/                 Queries, actions, and components for drops\n  user/                 Queries, actions, and components for users\n  tag/                  Queries and components for tags\n  search/               Components for search\ntypes/                  Shared types\nlib/                    Prisma client, utilities\ntests/                  Playwright E2E tests\n```\n\n## E2E Tests\n\nUses `@next/playwright` with the `instant()` API to assert loading states:\n\n```bash\npnpm test:e2e\n```\n\n## Database\n\nUses Prisma with PostgreSQL (Neon).\n\n```bash\npnpm run prisma.push     # Push schema to DB\npnpm run prisma.seed     # Seed with sample data\npnpm run prisma.studio   # Open Prisma Studio\npnpm run prisma.reset    # Reset and re-seed\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faurorascharff%2Fnext16-social-media","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faurorascharff%2Fnext16-social-media","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faurorascharff%2Fnext16-social-media/lists"}