在 AI 协助下,完成的经典算法的交互式可视化网站,代码开源。
Go to file
2026-03-25 10:45:32 +08:00
.cursor/rules Add tool: retire cal 2025-03-27 21:08:36 +08:00
.github/workflows Improve cube and update node 2026-02-09 12:29:22 +08:00
public RaceChart: add race chart data 2025-01-17 18:09:13 +08:00
scripts 自动生成 30 个关卡 2025-10-11 20:02:15 +08:00
src 尝试用 Cloudflare 2026-03-25 10:45:32 +08:00
.gitignore 尝试用 Cloudflare 2026-03-25 10:45:32 +08:00
.nvmrc 升级 nextjs,指定 node 版本 2026-03-24 13:12:47 +08:00
jest.config.js Support jtest now 2024-09-08 15:44:55 +08:00
jest.setup.js minesweeper: fix bug and add test case 2024-12-06 19:59:17 +08:00
jsconfig.json Change to nextjs and add hashtable 2024-07-26 20:30:18 +08:00
netlify.toml Improve cube and update node 2026-02-09 12:29:22 +08:00
next.config.js 尝试用 Cloudflare 2026-03-25 10:45:32 +08:00
open-next.config.ts 尝试用 Cloudflare 2026-03-25 10:45:32 +08:00
package.json 尝试用 Cloudflare 2026-03-25 10:45:32 +08:00
pnpm-lock.yaml 尝试用 Cloudflare 2026-03-25 10:45:32 +08:00
postcss.config.mjs Change to nextjs and add hashtable 2024-07-26 20:30:18 +08:00
README_zh.md Improve cube and update node 2026-02-09 12:29:22 +08:00
README.md Improve cube and update node 2026-02-09 12:29:22 +08:00
tailwind.config.js fix blog css 2024-08-14 10:22:06 +08:00
wrangler.jsonc 尝试用 Cloudflare 2026-03-25 10:45:32 +08:00

English | 中文

Test coverage

Welcome to my AI-assisted web development project! Despite having minimal frontend knowledge (just a bit of HTML and CSS), I've managed to create some interesting components with the help of Claude 3.5 and GPT-4. More recently, I've also started using GPT-5.2 and GPT-5.3 in daily development workflows. I've integrated these components into this showcase site. Feel free to explore and experience it yourself!

I must say, AI has truly transformed the way we write code.

Project Overview

This project is built using React and Nextjs for static site generation (SSG) and is deployed on Netlify. It features automatic sitemap generation, Google Analytics integration, and i18n support for internationalization. Currently, the gallery includes several interesting components, and I plan to continually add more with AI assistance.

Algorithms: Explore interactive visualizations of classic algorithms such as BFS pathfinding, A* search, Dijkstra's algorithm, and heap operations.

BFS Pathfinding Dijkstra's Shortest Path Heap Data Structure

Games: Implementation of classic games like Gomoku (Five in a Row), Chinese Chess, Tetris, and 2048.

Gomoku Tetris 2048

Other Components: Various interesting widgets, including dynamic charts for data visualization.

Local Development

Everyone is welcome to contribute to improving these components. Don't worry if you lack a frontend technical background you can leverage AI to bring your ideas to life! Here are the simple steps to run this project locally:

Prerequisites: Node.js 22+ and pnpm 9+.

  1. Clone the repository:
    git clone git@github.com:selfboot/ai_gallery.git
    
  2. Navigate to the project directory:
    cd ai_gallery
    
  3. Install dependencies:
    pnpm install
    
  4. Start the development server:
    pnpm dev
    
  5. Open your browser and visit http://localhost:3000 to view the project.

If you encounter any issues along the way, try using AI to solve them!

Reflections on Using AI

As a novice with no web development experience, I've learned a lot of practical frontend knowledge through AI-assisted development of this project. It's been incredibly fulfilling to finally create the visualizations I've always wanted to make.

  1. Learning Opportunity: AI assistance helped me quickly understand aspects of React, JavaScript, and modern web development practices.
  2. Problem Solving: While AI played a crucial role in many aspects, there were still issues that required human intervention to resolve.

The Impact of AI

GPT-4 and Claude 3.5 have proven to be fully capable virtual mentors and pair programming partners. Even without prior React development experience, they helped me quickly grasp React concepts, implement complex logic, create appealing UIs, and understand underlying principles. They are excellent programming assistants, rapidly introducing best practices, design patterns, and optimization techniques. They help solve various challenging problems, truly earning the title of best mentors.

Limitations of AI

AI still has some hallucinations and limitations in reasoning ability. Sometimes AI-generated code contains bugs or doesn't fully meet project requirements, and sometimes the explanations provided aren't clear enough. In these situations, you need to debug and solve problems on your own.

AI-Human Collaboration

The most effective approach is to use AI as a collaborative tool, combining its vast knowledge with personal creativity and project-specific understanding to complete interesting work faster and better.

Comparing GPT-4 and Claude 3.5

These are personal opinions and for reference only. Both AI models played important roles in this project, each with its own strengths. I typically use Claude 3.5 for quick prototyping and GPT-4 for solving detailed issues.

  • GPT-4: Excels at providing detailed explanations and handling complex, multi-step tasks. For issues where I have a general understanding of the cause, GPT-4 often provides good code and explanations when given detailed prompts.
  • Claude 3.5: Performs exceptionally well in code generation and refactoring. Given a simple requirement description, it often quickly produces a good prototype. Its responses are usually concise and directly applicable, making it great for rapid implementation and bug fixing.

Current AI Setup

In addition to the earlier models above, I now also use newer models and coding tools in day-to-day work:

  • GPT-5.2 / GPT-5.3: Used for deeper reasoning, architecture discussions, and more complex implementation tasks.
  • Codex CLI: My terminal-first coding workflow for repository edits, refactors, and command-driven development.
  • Claude Code CLI: Used as another CLI coding partner for implementation comparisons and alternative solutions.
  • Cursor: My IDE-based AI workflow for interactive editing, quick iterations, and in-editor code conversations.