Skip to content

brokensmile2103/init-user-engine

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Init User Engine – Gamified, Fast, Frontend-First

Add a modern, gamified user system to WordPress with EXP levels, coin wallet, VIP, referral, and full JS modals – all powered by REST API.

Pure JavaScript. Real-time REST API. Built for frontend-first WordPress.

Version License Made with ❤️ in HCMC

Overview

Init User Engine is a gamified user module built from scratch for frontend-first WordPress sites. Everything runs via REST API and Vanilla JS — no jQuery, no PHP-based forms, no bloat.

You get full control over user interactions: check-in, VIP purchase, coin/EXP rewards, inbox notifications, referral tracking — all in one slick modal dashboard.

Features

  • Shortcode [init_user_engine] to display avatar + modal dashboard
  • EXP & level system with streaks, milestones, and bonuses
  • Coin & cash wallet with transaction history
  • Daily check-in + online time reward
  • VIP membership system with coin-based purchases
  • Referral system with cookie-based tracking
  • Built-in inbox system (custom DB table)
  • Custom avatar upload & preview
  • Admin panel to send targeted notifications
  • REST API for all user actions – no reloads, no delays
  • Fully i18n-ready with JS-based validation & messages
  • Lightweight, modern UI – no jQuery, no dependencies

Shortcode

[init_user_engine]

Outputs the avatar button and attaches the full modal dashboard.

REST API Endpoints

Base: /wp-json/inituser/v1/

  • POST /register – Create new user account
  • POST /checkin – Daily check-in
  • POST /claim-reward – Claim online reward
  • GET /transactions – View wallet logs
  • GET /exp-log – View EXP history
  • GET /inbox – Fetch inbox messages
  • POST /inbox/mark-read – Mark a message as read
  • POST /inbox/delete – Delete a message
  • POST /vip/purchase – Buy VIP membership
  • GET /referral-log – Get referral history
  • POST /avatar – Upload avatar
  • POST /avatar/remove – Revert to default avatar
  • GET /profile/me – Get current user profile
  • POST /profile/update – Update profile information
  • GET /daily-tasks – Get list of completed daily tasks and rewards

Developer Hooks

Filters

  • init_plugin_suite_user_engine_localized_data – Modify frontend JS data
  • init_plugin_suite_user_engine_exp_required – EXP required per level
  • init_plugin_suite_user_engine_vip_prices – Change VIP pricing
  • init_plugin_suite_user_engine_referral_rewards – Customize referral bonuses
  • init_plugin_suite_user_engine_calculated_coin_amount – Tweak coin reward
  • init_plugin_suite_user_engine_format_inbox – Modify inbox output
  • init_plugin_suite_user_engine_render_level_badge – Custom level badge HTML
  • init_plugin_suite_user_engine_validate_register_fields – Extend registration logic
  • init_plugin_suite_user_engine_daily_tasks – Add or modify daily task list and logic
  • init_user_engine_format_log_message – Customize transaction log message display with access to entry data, source, type, and amount

Actions

  • init_plugin_suite_user_engine_level_up – User leveled up
  • init_plugin_suite_user_engine_exp_added – EXP added
  • init_plugin_suite_user_engine_transaction_logged – Coin/cash transaction
  • init_plugin_suite_user_engine_inbox_inserted – New message created
  • init_plugin_suite_user_engine_vip_purchased – VIP purchased
  • init_plugin_suite_user_engine_after_register – New user registered

Installation

  1. Upload to /wp-content/plugins/init-user-engine
  2. Activate via WordPress admin
  3. Add [init_user_engine] anywhere to get started
  4. Done — the dashboard and all modals load automatically

License

GPLv2 or later — open-source, extensible, built for performance.

Part of Init Plugin Suite

Init User Engine is part of the Init Plugin Suite — a collection of fast, no-bloat plugins built for modern WordPress developers.

About

Gamified user engine with EXP levels, coin wallet, check-in, VIP, inbox, and referral – powered by REST API and Vanilla JS.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published