function global_content_protection() { echo ' ';}add_action("wp_head", "global_content_protection");
πŸ”„
Brick Converter v1.0
PDF Β· DOCX Β· Wikipedia Β· URL β†’ Brick JSON
🎭 Demo Mode⚑ Groq AIβš™ AI Settings
AI Mode
Demo mode generates realistic structured bricks from your content without any API key. Perfect for testing.
Groq API Key (free at console.groq.com)
βœ… Groq key set β€” real AI extraction enabled
βœ“{{ i+1 }}
{{ s }}
πŸ“‚ Select Source Type
Choose the type of document or resource you want to convert into a Brick. All formats export as LMS-compatible JSON.
πŸ“•
PDF File
Research papers, journals, reports
πŸ“˜
Word Document
.docx files, notes, textbooks
🌐
Wikipedia
Enter topic name or full URL
πŸ”—
Web URL
Any article, blog, journal link
{{ sourceType === 'pdf' ? 'πŸ“• Upload PDF' : 'πŸ“˜ Upload Word Document' }}
{{ sourceType === 'pdf' ? 'πŸ“•' : 'πŸ“˜' }}
Drop your {{ sourceType.toUpperCase() }} here
or click to browse Β· Max 20MB
{{ sourceType === 'pdf' ? 'Text-based PDFs work best. Scanned PDFs require OCR.' : 'Standard .docx format recommended' }}
{{ sourceType === 'pdf' ? 'πŸ“•' : 'πŸ“˜' }}
{{ uploadedFile.name }}
{{ (uploadedFile.size / 1024).toFixed(1) }} KB Β· Click to change
🌐 Wikipedia Topic
{{ wikiError }}
βœ… {{ wikiPreview.title }} β€” {{ wikiPreview.excerpt }} ({{ wikiPreview.wordCount }} words fetched)
πŸ”— Web Article URL
β„Ή Some sites block direct access. For journal PDFs, download and upload as PDF instead. Wikipedia URLs are best handled via the Wikipedia tab.
{{ urlError }}
βœ… Content fetched β€” {{ urlContent.wordCount }} words extracted
πŸ“‹ Brick Metadata (all fields required)
These details define your brick's identity in the LMS. They are embedded in the exported JSON and displayed in Brick Learner Hub.
Identity
Topics
{{ t }}
Learning Design
Educational Context
References & Source
Content Ratio
✍ Source: {{ 100-meta.aiRatio }}%πŸ€– AI Enhanced: {{ meta.aiRatio }}%
{{ processingDone ? 'βœ… Conversion Complete!' : 'βš™ Converting Document…' }}
{{ currentProcMsg }}
Using {{ aiMode==='groq' && groqKey ? 'Groq AI (LLaMA 3.3)' : 'Demo Mode' }}
{{ s.done ? 'βœ“' : s.active ? '⟳' : 'β—‹' }}{{ s.label }}
🧱
Brick Created Successfully!
{{ generatedPages.length }} pages generated Β· Ready for LMS import
{{ meta.title }}
πŸ“š {{ meta.course }}
🎯 {{ meta.difficulty }}⏱ {{ meta.estTime }} min🧩 {{ meta.type }}{{ t }}
Brick ID
{{ brickId }}
🎯 Learning Objectives
{{ meta.objectives }}
πŸ“– References
{{ r }}
πŸ“„ Generated Pages ({{ generatedPages.length }})
{{ idx+1 }}{{ page.sectionTitle }}~{{ page.wordCount }} words
πŸ“‹ JSON Schema Preview
{{ jsonPreviewSnippet }}
βœ… This JSON is fully compatible with Brick Learner Hub v2, v3, and v4. Upload it directly using the hub's file import.
πŸŽ‰
Brick Exported!
Your brick JSON file has been downloaded. Import it into Brick Learner Hub using the Upload button β€” it will appear in your library instantly.
Exported Brick
{{ meta.title }}
{{ parsedTopics.join(' Β· ') }}
{{ meta.difficulty }}{{ generatedPages.length }} pages{{ totalWordCount }} words
πŸ“– How to Import into Brick Learner Hub
{{ i+1 }}
{{ step }}
{{ toast.msg }}
{{ toast.detail }}