SantiArcade

Private web arcade to publish, play, and share self-contained HTML games created with AI.

Stable Production
SantiArcade

Project Description

SantiArcade is a full-stack web application built with Next.js, React, TypeScript, Tailwind CSS, and shadcn/ui. It operates as a personal arcade where an administrator can upload self-contained HTML games, add descriptions, the original prompt, the AI model used, and thumbnails, automatically publishing them into a navigable public experience.

The architecture utilizes Next.js App Router, Server Components, Server Actions, and API Routes. Data persistence is handled with SQLite and Drizzle ORM, featuring tables for games, upvotes, and administrative sessions. HTML files and thumbnails are not stored in the public directory; instead, they reside in persistent storage under data/ and are served via controlled endpoints.

The project includes an administration panel protected by NextAuth/Auth.js with bcrypt-hashed credentials. From the admin dashboard, games can be uploaded, edited, published/hidden, and deleted. The public-facing app features a homepage with a cyber-neon hero section, a responsive game grid, detail pages, anonymous upvotes with rate limiting based on hashed IP addresses, and a fullscreen game player.

Player security is implemented using an iframe sandbox, strict CSP (Content Security Policy), anti-path-traversal validation, security headers, lightweight sanitization of uploaded HTML files, and file size limits. It also incorporates SEO optimizations with dynamic metadata, Open Graph tags per game, robots.txt, sitemaps, built-in loading/error/404 states, and smoke tests using Playwright.

AI serves two primary roles: first, as the creative engine behind the content hosted on the platform, since each game can track its original prompt and the model used; second, as a development copilot to design, implement, and harden the product's architecture. The application does not rely on any AI API at runtime, reducing operational costs and complexity.

The deployment is production-ready for an Ubuntu VPS utilizing Nginx as a reverse proxy, PM2 as a process manager, Let's Encrypt SSL certificates, and a standalone Next.js build. The deployment script handles dependency installation, executes the production build, synchronizes static assets, reloads PM2, and performs a final health check.

Problem Solved

The project addresses the need to quickly publish and share AI-created games without relying on external platforms, third-party public accounts, or manual hosting processes for each individual game. It centralizes the catalog, uploads, metadata, secure player, upvotes, and SEO within a single application with low operational costs, designed to run efficiently on a small VPS using SQLite and persistent file storage.

Key Features

  • Public homepage featuring a cyber-neon hero section, statistics, and a responsive game grid.
  • Protected administration panel secured with NextAuth/Auth.js.
  • Private login utilizing credentials and passwords hashed with bcrypt.
  • Self-contained HTML game upload complete with metadata and optional thumbnails.
  • Form validation via Zod featuring configurable file size limits.
  • Automated generation of unique slugs.
  • Lightweight sanitization of uploaded HTML to block dangerous patterns.
  • Persistent storage outside the public directory for games and thumbnails.
  • Secure API endpoint to serve HTML games using a strict CSP and an iframe sandbox.
  • Game detail pages displaying description, AI model used, date, upvotes, and the original prompt.
  • Dedicated fullscreen player for distraction-free gaming.
  • Anonymous upvote system featuring IP hashing, rate limiting, and double-vote prevention.
  • Admin dashboard listing games with published/hidden status, upvote counters, and file sizes.
  • Inline editing for titles, descriptions, prompts, AI models, and visibility settings.
  • Game deletion with automatic record cleanup and cascading removal of associated files.
  • SEO optimization using dynamic metadata, Open Graph tags, sitemaps, and robots.txt.
  • Custom loading states, error boundaries, and 404 pages.
  • End-to-end smoke tests built with Playwright.
  • Standalone deployment on a VPS utilizing Nginx, PM2, SSL, and an automated health check.

Technical Details

Category: Aplicación Web
Creation date: June 2026
Technologies Used:
Drizzle ORM NextAuth / Auth.js Zod SQLite Nginx PM2 Let's Encrypt / SSL Next.js React shadcn/ui Tailwind CSS IA Generativa TypeScript Playwright

Are you interested in this solution?

I can design and develop a similar system adapted 100% to your company's operations and size.

Request Pricing
IAinsane Assistant

Hello! 👋 I am the virtual assistant of IAinsane.

How can I help you today? You can ask me about IAinsane's web development services, see project details, or ask for guidance on what kind of system suits your business.