Spaces:
Running
Running
Slim Space; DB fetched from dataset at build time
Browse filesThis view is limited to 50 files because it contains too many changes. ย See raw diff
Files changed (50)
- .gitattributes+1
- DockerfileAdded+65
- README.md+48-5
- avatars/pic237779.jpgAdded
- avatars/user100006.jpgAdded
- avatars/user100022.jpgAdded
- avatars/user100026.jpgAdded
- avatars/user100089.jpgAdded
- avatars/user100117.jpgAdded
- avatars/user100129.jpgAdded
- avatars/user100193.jpgAdded
- avatars/user100202.jpgAdded
- avatars/user100206.jpgAdded
- avatars/user100213.jpgAdded
- avatars/user100246.jpgAdded
- avatars/user100247.jpgAdded
- avatars/user100363.jpgAdded
- avatars/user100366.jpgAdded
- avatars/user100375.jpgAdded
- avatars/user10049.jpgAdded
- avatars/user100492.jpgAdded
- avatars/user100502.jpgAdded
- avatars/user100505.jpgAdded
- avatars/user100523.jpgAdded
- avatars/user100529.jpgAdded
- avatars/user100543.jpgAdded
- avatars/user100568.jpgAdded
- avatars/user100592.jpgAdded
- avatars/user100665.jpgAdded
- avatars/user100677.jpgAdded
- avatars/user100691.jpgAdded
- avatars/user100706.jpgAdded
- avatars/user100717.jpgAdded
- avatars/user100741.jpgAdded
- avatars/user10077.jpgAdded
- avatars/user100774.jpgAdded
- avatars/user100794.jpgAdded
- avatars/user100799.jpgAdded
- avatars/user100821.jpgAdded
- avatars/user100825.jpgAdded
- avatars/user100870.jpgAdded
- avatars/user100884.jpgAdded
- avatars/user100921.jpgAdded
- avatars/user100923.jpgAdded
- avatars/user100931.jpgAdded
- avatars/user100970.jpgAdded
- avatars/user101055.jpgAdded
- avatars/user101081.jpgAdded
- avatars/user101087.jpgAdded
- avatars/user101115.jpgAdded
32 unmodified lines33343532 unmodified lines*.zip filter=lfs diff=lfs merge=lfs -text*.zst filter=lfs diff=lfs merge=lfs -text*tfevents* filter=lfs diff=lfs merge=lfs -text32 unmodified lines3334353632 unmodified lines*.zip filter=lfs diff=lfs merge=lfs -text*.zst filter=lfs diff=lfs merge=lfs -text*tfevents* filter=lfs diff=lfs merge=lfs -textavatars/user261970.jpg filter=lfs diff=lfs merge=lfs -text
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465# gamer.co.il archive search โ Hugging Face Spaces (Docker SDK)## Layout at runtime:# - server.py + static/ (app, shipped in the Space repo)# - avatars/ (~36 MB, shipped in the Space repo)# - forum_emojis/ (~120 KB, shipped in the Space repo)# - posts.db (~24 GB, fetched from a separate HF Dataset# repo at image-build time โ the Space repo# free-tier cap is 1 GB so the DB cannot live# alongside the app)## Read-only at request time; no writes happen at runtime.
FROM python:3.11-slim
# lxml ships manylinux wheels so no build deps needed in slim image.# zstd is a tiny addition (<1 MB) used to decompress posts.db.zst.RUN apt-get update && apt-get install -y --no-install-recommends zstd \ && rm -rf /var/lib/apt/lists/*
ENV PYTHONDONTWRITEBYTECODE=1 \ PYTHONUNBUFFERED=1 \ PIP_DISABLE_PIP_VERSION_CHECK=1 \ PIP_NO_CACHE_DIR=1
WORKDIR /app
COPY requirements.txt .RUN pip install -r requirements.txt
# App code first โ small layer, changes oftenCOPY server.py .COPY static/ ./static/
# Static assets (small)COPY avatars/ ./avatars/COPY forum_emojis/ ./forum_emojis/
# Pull the baked SQLite DB from the dataset repo. The DB is split into# 500 MB zstd-compressed chunks (posts.db.zst.aa..ak) โ single-PUT LFS# uploads of large files were timing out at the S3 layer over a residential# upstream, so we sliced it. Reassemble + decompress here.# Public dataset โ no token needed.ARG DB_REPO=tuka1/gamer-archive-dbARG DB_REVISION=mainRUN python -c "from huggingface_hub import snapshot_download; \snapshot_download(repo_id='${DB_REPO}', repo_type='dataset', revision='${DB_REVISION}', \ local_dir='/tmp/db-chunks', allow_patterns=['posts.db.zst.*'])" \ && cat /tmp/db-chunks/posts.db.zst.* | zstd -d -o /app/posts.db \ && rm -rf /tmp/db-chunks \ && ls -lh /app/posts.db
# Point the server at the in-image data locationsENV GAMER_DB=/app/posts.db \ GAMER_AVATARS=/app/avatars \ GAMER_EMOJIS=/app/forum_emojis
# HF Spaces default portEXPOSE 7860
# Run as a non-root user (HF Spaces sets UID 1000 by convention)RUN useradd -m -u 1000 user && chown -R user:user /appUSER user
CMD ["uvicorn", "server:app", "--host", "0.0.0.0", "--port", "7860", "--workers", "1"]12345678910---title: Gamer Archiveemoji: ๐ปcolorFrom: redcolorTo: bluesdk: dockerpinned: false---Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253---title: gamer.co.il archiveemoji: ๐colorFrom: purplecolorTo: indigosdk: dockerapp_port: 7860pinned: falselicense: mitshort_description: Searchable archive of forums.gamer.co.il (2004-2014)---# gamer.co.il forum archiveFull-text search over **10 million posts** from the[forums.gamer.co.il](https://archive.org/details/forums.gamer.co.il) gamingforums (2004 โ 2014), pulled from the[archive.org dump](https://archive.org/details/forums.gamer.co.il) and re-indexedinto a single self-contained SQLite FTS5 database.## What's in here- **546K threads** across **173 forums**- **49K distinct users** with avatars, locations, post counts, and per-post ranks- Original rich-HTML rendering: quotes, formatting, smileys, spoilers- Click-to-jump-to-quoted-message, click-to-filter-by-author, etc.## Special search syntaxCombine free-text search with structured filters:| Token | Meaning || --- | --- || `ืืืจืื>80` / `ืืืจืื<10` / `ืืืจืื=100` | Filter by post star rating % || `ืืื:ืืืืืื` / `ืืื:ืฉื ืืืื` | Sort by best- / worst-rated || `ืฉื ื:2014` | Posts from one year || `ืคืืจืื:13` | Posts in one forum || `ืืืืขื:1` | First post in each thread only |Examples:- `ืืื:ืืืืืื ืฉื ื:2010` โ best-rated posts of 2010- `ืืืจืื=100 ืืืืขื:1` โ opening posts that got a perfect rating- `ืืืฉื ืคืืจืื:11` โ anything about computers in the hardware forum## Tech- FastAPI + SQLite FTS5 + a Tailwind single-page UI (no build step)- Indexer + bake scripts in `BUILD.md` for re-building from raw HTML## CreditsArchive content ยฉ original posters, scraped + preserved by the Internet Archive.This project is non-commercial and offered as a community resource.
.gitattributes+1
DockerfileAdded+65
README.md+48-5
avatars/pic237779.jpgAdded
avatars/user100006.jpgAdded
avatars/user100022.jpgAdded
avatars/user100026.jpgAdded
avatars/user100089.jpgAdded
avatars/user100117.jpgAdded
avatars/user100129.jpgAdded
avatars/user100193.jpgAdded
avatars/user100202.jpgAdded
avatars/user100206.jpgAdded
avatars/user100213.jpgAdded
avatars/user100246.jpgAdded
avatars/user100247.jpgAdded
avatars/user100363.jpgAdded
avatars/user100366.jpgAdded
avatars/user100375.jpgAdded
avatars/user10049.jpgAdded
avatars/user100492.jpgAdded
avatars/user100502.jpgAdded
avatars/user100505.jpgAdded
avatars/user100523.jpgAdded
avatars/user100529.jpgAdded
avatars/user100543.jpgAdded
avatars/user100568.jpgAdded
avatars/user100592.jpgAdded
avatars/user100665.jpgAdded
avatars/user100677.jpgAdded
avatars/user100691.jpgAdded
avatars/user100706.jpgAdded
avatars/user100717.jpgAdded
avatars/user100741.jpgAdded
avatars/user10077.jpgAdded
avatars/user100774.jpgAdded
avatars/user100794.jpgAdded
avatars/user100799.jpgAdded
avatars/user100821.jpgAdded
avatars/user100825.jpgAdded
avatars/user100870.jpgAdded
avatars/user100884.jpgAdded
avatars/user100921.jpgAdded
avatars/user100923.jpgAdded
avatars/user100931.jpgAdded
avatars/user100970.jpgAdded
avatars/user101055.jpgAdded
avatars/user101081.jpgAdded
avatars/user101087.jpgAdded
avatars/user101115.jpgAdded