rauchg/next-ai-news là một trong những repo mã nguồn mở mà TopGit theo dõi, hiện có 850 sao, viết chủ yếu bằng TypeScript.
Tóm tắt dựng từ metadata GitHub của chính dự án — chưa có bài review TopGit. Trang sẽ tự động cập nhật khi bài review đầy đủ được xuất bản.
VÌ SAO CHƯA CÓ REVIEW
TopGit viết bài đầy đủ cho repo có nhiều sao nhất và được yêu cầu nhiều nhất. Trang này là snapshot trong thời gian chờ — xem README gốc ở tab READ ME.
A full-stack replica of HN using Next.js and AI generated content.
Design notes
Uses Next.js 14 with App Router and RSC on the Node.js runtime
All pages are server-rendered and dynamic, with no data caching
All mutations are done via Server Actions
Streaming is used throughout to maximize speed and concurrency
Uses pnpm for package management
Uses Drizzle ORM and Zod as the data layer
Uses Auth.js's Next-Auth for password authentication
Used v0 to generate all initial UIs with
Tailwind, Shadcn UI and Radix UI
Developed entirely and tested with the new Next.js --turbo Rust compiler
Uses react-highlight-words for search highlights
PPR (experimental) is used to precompute the shells of pages
When deployed, these are served statically from the edge
This makes TTFB faster and speeds up CSS/fonts while origin streams
Deployed serverlessly on Vercel's Edge Network using:
Cron Jobs for AI generation
Serverless Functions (Node.js) for SSR (iad1 / us-east-1)
KV (Upstash) for rate-limiting (iad1 / us-east-1)
Postgres (Neon) for core storage and search with pg_trgm (iad1 / us-east-1)
AI
Uses Mixtral mixtral-8x7b-32kseqlen as the LLM for generated content
Uses Anyscale's finetune for Tools support
Uses openai-zod-functions for structured and runtime-validated generation
Deployment
Make sure the Vercel project is connected to a Vercel Postgres (Neon) database
Optionally, for rate limiting, add a Vercel KV (Upstash) database
Run pnpm drizzle-kit push:pg
Update metadataBase in app/layout.tsx to match your target domain
Local dev
Run vc env pull to get a .env.local file with your db credentials.
Run pnpm dev to start developing
For DB migrations with drizzle-kit:
Make sure ?sslmode=required is added to the POSTGRES_URL env for dev
Run pnpm drizzle-kit generate:pg to generate migrations
Run pnpm drizzle-kit push:pg to apply them
Performance
PageSpeed report for Emulated Moto G Power with Lighthouse 11.0.0, Slow 4G Throttling:
💩 The SEO 98 score cannot be 100 without sacrificing stylistic fidelity to the original HN navigation
Codebase notes
Auth is initialized in app/auth.tsx, Drizzle in app/db.tsx.
Shared components are in ./components (exposed as @/components)
Only one component was not reused from npm / shadcn (components/time-ago.tsx)
I couldn't find something very light that worked well with server-rendering (takes a now prop with a timestamp)
The following db migrations were added manually:
CREATE EXTENSION IF NOT EXISTS pg_trgm; as part of #13
USING GIN (title gin_trgm_ops); as part of #13
TODO
This project is unique in that it's a full-stack replica of HN, with quite a few features. It'd be great
for the community to fill in some important gaps, however:
Trang TopGit này là một snapshot — tab "Readme" hiển thị nguyên văn README của repo (đã bỏ link, giữ ảnh). Repo GitHub ở github.com/rauchg/next-ai-news là nguồn chính thức.
rauchg/next-ai-news có bao nhiêu sao?
rauchg/next-ai-news có 850 sao GitHub — tải lại trang để xem số mới nhất, hoặc xem trực tiếp github.com/rauchg/next-ai-news. TopGit phản chiếu số sao của GitHub nhưng không cam kết đến từng phút.
rauchg/next-ai-news có phải mã nguồn mở không?
TopGit chưa ghi nhận license cho rauchg/next-ai-news. Phần lớn repo public trên GitHub là mã nguồn mở, nhưng điều khoản khác nhau từng repo — mở file LICENSE để xác nhận.
rauchg/next-ai-news có tag gì không?
Bản đồng bộ chưa ghi nhận topic GitHub nào cho rauchg/next-ai-news. GitHub topics hiển thị ở thanh bên phải trang repo — đó là nơi đáng kiểm tra nhất.
rauchg/next-ai-news có trang demo không?
Dự án có trang chủ ở https://next-ai-news.vercel.app. Tab "Readme" ở trang này thường có ảnh chụp và hướng dẫn bắt đầu nhanh.
rauchg/next-ai-news còn đang phát triển không?
Commit gần nhất trên rauchg/next-ai-news là 2.5 năm trước (theo timestamp GitHub). Repo có 91 fork — một chỉ báo về mức độ quan tâm của cộng đồng.
Đọc đầy đủ README ở tab phía trên.
next-ai-news có đáng để bạn bỏ thời gian?
ChatGPT, Claude và Perplexity đều đọc được trang này. Hỏi thử xem họ nghĩ gì về next-ai-news.