Watch
1
0
Fork
You've already forked Jamjar
0
mirror of https://github.com/Ategon/Jamjar.git synced 2026-11-01 21:18:32 -05:00
Frontend for the D2Jam game jam site. https://d2jam.com
  • TypeScript 95.6%
  • JavaScript 2.6%
  • CSS 1.5%
  • Shell 0.2%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2026-10-25 14:15:04 -04:00
.devcontainer Remove unused pages and components and update dependencies 2026-06-17 17:03:21 -04:00
.github/workflows Frontend Overhaul 2026-04-29 13:33:04 -04:00
.vscode Remove unused pages and components and update dependencies 2026-06-17 17:03:21 -04:00
packages Clean up miniplayer, improve mobile view, and make more pages use the new background 2026-10-24 17:07:12 -04:00
public Clean up miniplayer, improve mobile view, and make more pages use the new background 2026-10-24 17:07:12 -04:00
scripts Clean up miniplayer, improve mobile view, and make more pages use the new background 2026-10-24 17:07:12 -04:00
src Fix recap and spider graphs for post jam 2026-10-25 14:15:04 -04:00
tests Merge branch 'main' of https://github.com/Down2Jam/Jamjar 2026-09-27 04:42:05 -04:00
tools Fix payloads of post jam saves 2026-10-11 14:37:05 -04:00
.dockerignore Remove unused pages and components and update dependencies 2026-06-17 17:03:21 -04:00
.gitignore Remove unused pages and components and update dependencies 2026-06-17 17:03:21 -04:00
.nvmrc Add emotes, reactions, mention, etc. 2026-03-06 18:32:46 -05:00
docker-compose.yml Add notification types, stickers, and gifs 2026-09-22 03:17:33 -04:00
Dockerfile Add notification types, stickers, and gifs 2026-09-22 03:17:33 -04:00
index.html Frontend Overhaul 2026-04-29 13:33:04 -04:00
LICENSE Add license 2025-01-14 17:22:56 -05:00
package-lock.json Clean up miniplayer, improve mobile view, and make more pages use the new background 2026-10-24 17:07:12 -04:00
package.json Implement better music page and system 2026-10-23 04:21:47 -04:00
postcss.config.mjs Add emotes, reactions, mention, etc. 2026-03-06 18:32:46 -05:00
README.md Add notification types, stickers, and gifs 2026-09-22 03:17:33 -04:00
server.mjs Fix comment counts, audio, some notifications 2026-09-14 17:15:11 -04:00
tailwind.config.ts Implement better music page and system 2026-10-23 04:21:47 -04:00
tsconfig.json Remove unused pages and components and update dependencies 2026-06-17 17:03:21 -04:00
vite.config.ts Clean up miniplayer, improve mobile view, and make more pages use the new background 2026-10-24 17:07:12 -04:00

Jamjar

Frontend for Down2Jam.

Local Development

npm install
npm run dev

The dev server runs on http://localhost:3000.

Create a .env file if you need to choose which API to use:

VITE_PUBLIC_MODE=DEV

DEV uses a local Jamcore API on http://localhost:3005. PROD uses the production API.

Production

npm run build
npm start

The production server serves the Vite build and injects dynamic SEO metadata for public game, music, user, and post pages.

Useful environment variables:

PORT=3000
PUBLIC_ORIGIN=https://d2jam.com
API_BASE_URL=https://d2jam.com/api/v1
VITE_GAME_BUILDS_ORIGIN=https://play.d2jam.com

In production, VITE_GAME_BUILDS_ORIGIN should be a dedicated cookieless origin that proxies /game-builds/* to Jamcore. Keep it unset for local same-origin development.

To enable the GIF picker in markdown editors, add a KLIPY browser API key:

VITE_KLIPY_API_KEY=your_klipy_api_key

Docker

docker compose up --build -d