AbxrLib Testers

Send Logs & Events

Send a debug logs & Events to test the library (check console for results):

Abxr.LogDebug('User performed an action'); Abxr.Event('user_action', { action: 'button_click', source: 'demo' });

Assessment & Objective Events

Test assessment start and complete events (check console for results):

Abxr.EventAssessmentStart('Math Quiz 101', { difficulty: 'intermediate' }); Abxr.EventObjectiveStart('Learn Fractions', { module: 'basic_math' }); Abxr.EventObjectiveComplete('Learn Fractions', '92', Abxr.EventStatus.Pass, { attempts: 2 }); Abxr.EventAssessmentComplete('Math Quiz 101', 85, Abxr.EventStatus.Pass, { questions_answered: 10 });

💡 Code Example

This is how simple it is to use the library:

Step 1: Include the Library

<script src="node_modules/abxrlib-for-webxr/Abxr.js"></script>

Step 2: Initialize (Choose One Option)

Option A: Direct initialization with credentials <script>
Abxr_init('your-app-id', 'your-org-id', 'your-auth-secret');
</script>
Option B: Use URL parameters (more secure)
URL: yourpage.html?abxr_orgid=your-org-id&abxr_auth_secret=your-secret
<script>
Abxr_init('your-app-id');
</script>

Step 3: Start Using (Check Console for Results)

Abxr.Event('user_action', { action: 'button_click' });
Abxr.LogDebug('User clicked button');
Abxr.EventAssessmentStart('Math Quiz 101', { difficulty: 'intermediate' });
Abxr.EventAssessmentComplete('Math Quiz 101', 85, Abxr.EventStatus.Pass, { questions_answered: 10 });
Abxr.EventObjectiveStart('Learn Fractions', { module: 'basic_math' });
Abxr.EventObjectiveComplete('Learn Fractions', '92', Abxr.EventStatus.Pass, { attempts: 2 });

Step 4: Optional Debug Mode

Abxr.SetDebugMode(true);
Enables detailed logging for troubleshooting