next-ai-news  by rauchg

Full-stack web app replicating Hacker News with AI-generated content

created 1 year ago
853 stars

Top 42.8% on sourcepulse

GitHubView on GitHub
1 Expert Loves This Project
Project Summary

This project is a full-stack replica of Hacker News, built with Next.js 14 and AI-generated content. It targets developers interested in modern Next.js features, serverless deployment, and AI integration, offering a practical example of a dynamic, high-performance web application.

How It Works

The application leverages Next.js 14's App Router and React Server Components (RSC) with the Node.js runtime for server-rendered, dynamic pages. It utilizes Server Actions for mutations and streams content throughout for speed. The architecture emphasizes performance through experimental Per-Page Rendering (PPR) for static edge deployment, reducing Time To First Byte (TTFB). The data layer uses Drizzle ORM and Zod, with Auth.js for authentication. AI content generation is powered by Mixtral 8x7b-32kseqlen via Anyscale's finetune for tools.

Quick Start & Requirements

  • Install with pnpm install.
  • Run with pnpm dev.
  • Requires Node.js, pnpm, and a PostgreSQL database (Neon recommended).
  • Vercel CLI is recommended for local development (vc env pull).
  • Database migrations require pnpm drizzle-kit push:pg.
  • Official docs: https://nextjs.org/docs

Highlighted Details

  • Full-stack HN replica with AI-generated content.
  • Next.js 14 App Router, RSC, Server Actions, and experimental PPR.
  • Deployed serverlessly on Vercel's Edge Network.
  • Mixtral 8x7b-32kseqlen LLM for content generation.
  • Drizzle ORM, Zod, Auth.js, Tailwind, Shadcn UI, Radix UI.

Maintenance & Community

The project is maintained by rauchg. Community contributions are welcomed to fill feature gaps. Links to community channels are not specified in the README.

Licensing & Compatibility

Licensed under the MIT license. This permissive license allows for commercial use and integration into closed-source projects.

Limitations & Caveats

The project is a work in progress with several features marked as TODO, including inline comment replies, voting, ranking, comment toggling, and user profiles. Some UI components were custom-built due to specific server-rendering requirements.

Health Check
Last commit

1 year ago

Responsiveness

Inactive

Pull Requests (30d)
1
Issues (30d)
0
Star History
7 stars in the last 90 days

Explore Similar Projects

Feedback? Help us improve.