Skip to content
psvimPublic

About

A blazing-fast, single-file PHP app for managing and mastering vocabulary with smart learning and API features.

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Latest commit

 

History

2 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 

Repository files navigation

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.

✨ Key Features

  • Zero-Configuration Deployment: Everything lives inside one index.php file. 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.

🛠️ Tech Stack

  • Backend: PHP 8.0+
  • Database: MySQL / MariaDB (PDO)
  • Frontend: Vanilla JavaScript, HTML5, CSS3
  • Editor: Quill.js (CDN)
  • Typography: Google Fonts (Noto Sans)

📸 Preview


🚀 Installation

Requirements

  • Web server (Apache, Nginx, LiteSpeed, etc.)
  • PHP 8.0 or higher with the pdo_mysql extension enabled
  • MySQL or MariaDB database server

Setup Steps

  1. Upload the File: Place index.php into your web server's public directory (e.g., /var/www/html/lexivault/ or htdocs/).
  2. Launch in Browser: Open your deployment URL (e.g., [http://yourdomain.com/lexivault/](http://yourdomain.com/lexivault/)).
  3. 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.
  1. Start Building: Sign in with your new credentials and begin adding words.

Note: During setup, LexiVault creates a protected lexivault_data/ directory alongside index.php to store its system.json configuration file.


📱 Core Modules

Dashboard

Get a snapshot of your progress—including total entries, mastered and starred counts, and 7-day activity charts.

Word Library

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.

Categories

Organize your lexicon into custom topics (e.g., Science, Literature, Idioms) with distinct color badges used throughout the interface.

Review Cards

Study without distractions. Filter decks by category or mastery status, flip cards to check definitions, and play audio pronunciations via Text-to-Speech.

Settings & Daily Digest

Configure pagination limits, enforce timezone settings, and add SMTP credentials to schedule automated HTML digest emails.


🌐 Public Dictionary & API

LexiVault includes an optional public portal so visitors can browse your vocabulary repository without logging in.

  • Public Search UI: Visit ?page=public_search for a standalone search interface with autocomplete and recent search history.
  • REST API Endpoint: Query word records programmatically using the ?pbw= parameter suite.

API Parameters

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).

Example Requests

  • 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.


💾 Backup & Restore

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 .json export or overwrite the database directly using a .sql backup.

🤝 Contributing

Contributions, bug reports, and feature suggestions are welcome.

  1. Fork the repository.
  2. Create a feature branch (git checkout -b feature/AmazingFeature).
  3. Commit your changes (git commit -m 'Add AmazingFeature').
  4. Push to your branch (git push origin feature/AmazingFeature).
  5. Open a Pull Request.

📝 License

Distributed under the MIT License. See the LICENSE file for full details.


📬 Contact

Created by Vineet


About

A blazing-fast, single-file PHP app for managing and mastering vocabulary with smart learning and API features.

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages