An interactive word deduction and trivia guessing game inspired by Redactle and Contexto, built around Wikipedia article summaries.
Overview • Live Demo • Screenshots • Key Highlights • Architecture • Install & Configure • How to Use • Create & Customize • API Reference • Verification • License
WikiBulYa challenges players to uncover redacted Wikipedia article summaries by submitting candidate words. Players start with 10,000 points, deduce hidden themes through vocabulary association, and unmask the mystery article title with minimal penalties.
Features built-in Turkish diacritics and Unicode normalization, zero database requirement via an in-memory game engine, and a fully cross-platform React Native Web responsive interface.
Submitting candidate words, instant unmasking of matched tokens, score deductions, and mobile responsive play.
Desktop Word Deduction Interface
|
Mobile Responsive Guessing View
|
- Redacted Article Discovery: Uncovers masked Wikipedia summaries (
█████████) piece by piece as valid vocabulary words are identified. - Turkish Unicode & Accent Normalization: Accurate handling of Turkish diacritics (
ç, ğ, ı, ö, ş, ü, İ, I) and case folding ensures seamless word matching regardless of capitalization. - Score Calculation & Penalty: Players start with 10,000 points. Correct guesses unmask matching tokens across the entire article, while incorrect guesses deduct 100 points. Duplicate guesses are idempotent and do not penalize twice.
- Lightweight Architecture: Zero database requirement for standard single-player gameplay — the backend runs an in-memory game engine with automatic 24-hour session cleanup.
- Cross-Platform Delivery: Runs anywhere via Expo and React Native Web (desktop browsers, iOS, Android, and mobile web).
flowchart TD
subgraph Client_Layer["Frontend Client (React Native Web & Expo SDK 57)"]
UI["App Interface (frontend/src/App.js)"]
Input["Candidate Word Input & Proposer"]
Card["Redacted Text Body (█████████)"]
Score["Live Score & Mistake Counter"]
end
subgraph Server_Layer["Backend API Service (Express.js 4.21 & Node.js 22)"]
Router["Game Route Handler (backend/routes/gameRoutes.js)"]
Engine["In-Memory Game Engine (backend/game.js)"]
Normalizer["Turkish Unicode & Diacritics Normalizer"]
Masker["Regex Token Masker (masquerTexte)"]
SessionStore["In-Memory Session Store - 24h TTL Autocleanup"]
end
subgraph External_API["Wikimedia Foundation"]
Wiki["Wikipedia REST API - api/rest_v1/page/random/summary"]
end
UI --> Input
Input -->|POST /game/guess| Router
UI -->|GET /game/daily-text| Router
Router --> Wiki
Router --> Engine
Engine --> Normalizer
Engine --> Masker
Engine --> SessionStore
Router -->|Masked Text & Score Diff| Card & Score
- Node.js (v20 or higher recommended, Node.js 22+ supported)
- npm (v10+ recommended)
- Optional: Docker and Docker Compose for containerized execution
git clone https://github.com/Emincanozen/wikibulya.git
cd wikibulya-
Backend Environment:
cp backend/.env.example backend/.env
Default parameters in
backend/.env:PORT=5000CORS_ORIGIN=http://localhost:8081
-
Frontend Environment:
cp frontend/.env.example frontend/.env
Default parameters in
frontend/.env:EXPO_PUBLIC_API_URL=http://localhost:5000
# Install backend dependencies
cd backend
npm install
cd ..
# Install frontend dependencies
cd frontend
npm install
cd ..-
Start the Backend API:
cd backend npm startThe backend API will listen on
http://localhost:5000. -
Start the Frontend Web Client: In a separate terminal:
cd frontend npm run webThe interactive interface will launch in your browser at
http://localhost:8081(or your configured Expo port). -
Playing the Game:
- Review the redacted article text.
- Enter candidate words into the input field and press Proposer (Submit).
- Watch discovered words reveal themselves in the text body.
- Enter the full article title to solve the mystery and claim victory!
Run the entire stack in isolated Docker containers:
docker compose -f docker/docker-compose.yml up --build- Frontend Client:
http://localhost:8081 - Backend API:
http://localhost:5000
WikiBulYa is designed for easy modification, whether you want to change the article source language, adjust difficulty heuristics, or style the interface.
The article retriever is injected into the route builder in backend/routes/gameRoutes.js. To switch from Turkish to English, French, or another Wikimedia edition, update the API URL:
// backend/routes/gameRoutes.js
chargerArticle: async () => {
// Example: switch 'tr.wikipedia.org' to 'en.wikipedia.org' or 'fr.wikipedia.org'
const { data } = await axios.get(
'https://en.wikipedia.org/api/rest_v1/page/random/summary',
{ timeout: 10000, maxContentLength: 1024 * 1024 }
);
return { title: data.title, summary: data.extract };
}Scoring and text masking logic reside in backend/game.js:
- Initial Score: Update
score: 10000incommencer(). - Penalty per Miss: Change
-100penalty indeviner(session_token, word). - Masking Character: Replace
█with_,*, or custom redaction tokens.
// backend/game.js
function masquerTexte(texte, motsTrouves) {
return texte.replace(/\p{L}+/gu, (mot) => {
const motNormalise = normaliser(mot);
return motsTrouves.has(motNormalise) ? mot : '█'.repeat(mot.length);
});
}The client interface is defined in frontend/src/App.js:
- Theme & Colors: Customize
styles.containerbackground color, card radii, and fonts. - Redaction Box Styling: Tweak
styles.hiddenText(e.g., monospace typography or letter-spacing). - Localization: Update user-facing prompt labels from Turkish/French to English or your target audience.
Retrieves or initiates a game session with the current masked Wikipedia summary.
{
"session_token": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"text": "█████████, ████████ ███ ██████.",
"score": 10000,
"won": false
}Submits a candidate word or title guess.
Request:
{
"session_token": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"guessed_word": "tarih"
}Response:
{
"session_token": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"text": "█████████, tarihte ███ ██████.",
"score": 10000,
"won": false,
"isCorrect": true
}# Run backend test suite
cd backend
npm test
# Run frontend web export validation
cd ../frontend
npm run build:webThis project is open-source software licensed under the MIT License.


