D-SERV Digital Marketplace is now open. Download free and paid products for your game server or community.
← All products
Web Projects / Version 1.1.1 / NEW

NexusCS - Counter-Strike 2 Website

By SOVEREIGN

Bulgarian-language CS2 community website with a Node.js backend: accounts, Steam login, live server status, leaderboard, news, bans and an admin panel.

Product Video

Product Information

Overview+

Live Demo: https://demo-nexuscs.netlify.app

NexusCS is a ready-to-launch website and backend for a Counter-Strike 2 community server. Visitors see live server status, a top-players leaderboard and news. They can register, sign in, link their accounts and manage a profile. Admins run everything from a built-in admin panel, with no code changes.

The backend is a single Node.js application with one dependency (mysql2). It stores data in MySQL/MariaDB and exposes a REST API. All 9 pages are single HTML files with embedded styles, scripts and images, so they are easy to edit and host. The interface is in Bulgarian and can be translated or rebranded by search and replace; the README has a Customization section (name, logo, colors, texts, Discord link).

A small integration API (X-Api-Key) lets your own game server push kills, deaths and headshots to the leaderboard and pull active bans and roles. No game-server plugin is included.

Please note: this package is not affiliated with Valve. Counter-Strike is mentioned only to describe the supported game.

Features+
  • Accounts: registration, login, sessions, profile, password change, password reset by email
  • Login with Steam; optional Discord and Google login and account linking
  • Live server status (map, players, ping) from the game server via Source Query (A2S)
  • Leaderboard with kills, deaths, headshots and K/D
  • News: list, single article, image upload, managed from the admin panel
  • Bans and roles managed in the admin panel
  • Admin panel: servers, users, bans, news
  • Integration API for your own game server (bans/roles sync and player stats)
  • Security: scrypt password hashing, rate limits on login/registration/password reset, TRUST_PROXY support behind nginx or Caddy
  • Single-file HTML pages, easy to rebrand
  • Automatic tests included (node test.js)
Requirements & Dependencies+
  • Node.js 18 or newer
  • MySQL 5.7+ or MariaDB 10.3+ (utf8mb4)
  • npm package mysql2 (MIT licence), installed with "npm install" (not included in the ZIP)
  • A domain with HTTPS (reverse proxy such as nginx or Caddy), required for Steam login
  • Optional: Discord OAuth2 application, Google OAuth client, SMTP account (for password-reset emails)
What Files Do I Get?+

LICENSE.txt, README.md, package.json
server.js (HTTP server and REST API), db.js (database layer), query.js (Source Query client), mail.js (SMTP client), test.js (automatic tests)
site/cs2-site.html (home), news.html, article.html, login.html, register.html, forgot.html, reset.html, profile.html, admin.html

How To Install?+

1. Unzip the package on your server and open a terminal in the folder.
2. Create a MySQL/MariaDB database (utf8mb4) and a user for it.
3. Run: npm install
4. Set the environment variables (BASE_URL, SESSION_SECRET, PLUGIN_API_KEY, DB_HOST, DB_USER, DB_PASS, DB_NAME; optional Discord, Google, SMTP) and start: node server.js. Tables are created automatically.
5. Put nginx or Caddy with HTTPS in front of the port and set TRUST_PROXY=true. BASE_URL must be exactly your public address.
6. Register on the site, then run: node server.js make-admin <your-username>
7. Open /admin.html and add your game servers, news, bans and roles.

Documentation+

Full documentation is in README.md inside the package: file list, requirements, installation, all environment variables, integration API, reverse-proxy example (nginx), customization guide (name, logo, texts, colors, Discord link) and testing notes.

License Information+

Single Site

Important Details

  • Not affiliated with Valve. Counter-Strike is mentioned only to describe the supported game.
  • Automatic tests (node test.js) use SQLite and fake services. A real MySQL/MariaDB server, the real Steam login, real Discord/Google applications and a real SMTP account are not covered by the tests, so test them on a staging setup before going live.
  • No secrets are included. Use your own long random values for SESSION_SECRET and PLUGIN_API_KEY.
  • No game-server plugin is included. The integration API is for your own plugin or script.
  • The interface text is in Bulgarian.
  • AI disclosure: code and texts were written with the help of Claude (Anthropic) and reviewed by the author. The original logo image was generated with ChatGPT (OpenAI).
  • License: Single Site (see LICENSE.txt).