LexiVault is a lightweight, self-hosted vocabulary repository packaged into a single index.php file. Built for language learners, writers, researchers, and students, it gives you full ownership over how you collect, categorize, and review words—without complex build steps or heavy server dependencies.
Despite its single-file footprint, LexiVault includes a glassmorphism-inspired interface, interactive flashcard reviews, automated daily email digests, Free Dictionary API auto-fill, and a public-facing search API.
- Zero-Configuration Deployment: Everything lives inside one
index.phpfile. Upload it to your server and let the built-in Setup Wizard initialize your database and admin account. - Instant Word Lookup: Auto-fetch definitions, parts of speech, and phonetic pronunciations via the Free Dictionary API.
- Interactive Flashcards: Review your vault with flippable study cards, built-in Text-to-Speech (TTS) pronunciation, and mastery tracking.
- Learning Analytics Dashboard: Monitor daily word additions, category distributions, Word of the Day (WOTD), and recently mastered terms.
- Flexible Organization: Group entries into color-coded categories, attach custom tags, assign difficulty levels (Easy, Medium, Hard), and log source references.
- Rich-Text Notes: Format nuanced definitions, usage examples, and personal context with an integrated Quill.js editor.
- Public Dictionary & REST API: Expose a read-only search portal (
?page=public_search) with autocomplete for visitors, alongside a?pbw=endpoint returning JSON or HTML. - Automated Daily Digests: Connect your SMTP server to receive daily email summaries featuring your newest vocabulary additions.
- Multi-Format Backups: Export or restore your entire vocabulary database in JSON, CSV, or raw SQL formats.
- Responsive Interface: Switch between grid and list views, run bulk actions, rely on auto-saved drafts, and get instant toast feedback.
- Backend: PHP 8.0+
- Database: MySQL / MariaDB (PDO)
- Frontend: Vanilla JavaScript, HTML5, CSS3
- Editor: Quill.js (CDN)
- Typography: Google Fonts (Noto Sans)
- Web server (Apache, Nginx, LiteSpeed, etc.)
- PHP 8.0 or higher with the
pdo_mysqlextension enabled - MySQL or MariaDB database server
- Upload the File: Place
index.phpinto your web server's public directory (e.g.,/var/www/html/lexivault/orhtdocs/). - Launch in Browser: Open your deployment URL (e.g.,
[http://yourdomain.com/lexivault/](http://yourdomain.com/lexivault/)). - Complete the Setup Wizard:
- Database Setup: Enter your MySQL host, port, database name, username, and password. LexiVault verifies the connection and creates the database automatically if it does not already exist.
- Admin Account: Set up your administrator name, username, and password.
- Start Building: Sign in with your new credentials and begin adding words.
Note: During setup, LexiVault creates a protected
lexivault_data/directory alongsideindex.phpto store itssystem.jsonconfiguration file.
Get a snapshot of your progress—including total entries, mastered and starred counts, and 7-day activity charts.
Browse and manage your collection in Grid View or Table View:
- Search across terms, definitions, and notes in real time.
- Filter by category, part of speech, tag, date added, difficulty, or mastery status.
- Apply Bulk Actions (categorize, mark mastered, star, or delete) from a floating toolbar.
Organize your lexicon into custom topics (e.g., Science, Literature, Idioms) with distinct color badges used throughout the interface.
Study without distractions. Filter decks by category or mastery status, flip cards to check definitions, and play audio pronunciations via Text-to-Speech.
Configure pagination limits, enforce timezone settings, and add SMTP credentials to schedule automated HTML digest emails.
LexiVault includes an optional public portal so visitors can browse your vocabulary repository without logging in.
- Public Search UI: Visit
?page=public_searchfor a standalone search interface with autocomplete and recent search history. - REST API Endpoint: Query word records programmatically using the
?pbw=parameter suite.
| Parameter | Type | Description |
|---|---|---|
pbw |
string |
Search term (e.g., ?pbw=Ephemeral). Leave empty (?pbw) to list matching entries. |
format |
string |
Response format: html (default) or json. |
category |
`int | string` |
word_type |
string |
Filter by part of speech (e.g., Noun, Adjective). |
- Fetch a word as JSON:
?pbw=Ephemeral&format=json - List all words in a category:
?pbw&category=Biology - List all words by part of speech:
?pbw&word_type=Noun - Search within a category:
?pbw=Hi&category=General - Filter by part of speech (HTML):
?pbw&word_type=Adjective&format=html - Combine search, category, and word type:
?pbw=Hi&category=General&word_type=Noun
Tip: Authenticated administrators clicking a public search link are automatically redirected to the internal editable Word Library.
Manage your data anytime from the Import / Export tab:
- Export: Download your repository as
.json(ideal for migrating between LexiVault instances),.csv(for Excel or Google Sheets), or.sql(full database dump). - Import: Restore entries from a LexiVault
.jsonexport or overwrite the database directly using a.sqlbackup.
Contributions, bug reports, and feature suggestions are welcome.
- Fork the repository.
- Create a feature branch (
git checkout -b feature/AmazingFeature). - Commit your changes (
git commit -m 'Add AmazingFeature'). - Push to your branch (
git push origin feature/AmazingFeature). - Open a Pull Request.
Distributed under the MIT License. See the LICENSE file for full details.
Created by Vineet
- Email: ci.vps@proton.me
- GitHub: @psvim