A powerful WYSIWYG editor for creating NomadNet-ready .mu pages using the Micron markup language.
Micron Page Composer is a web-based, visual editor that makes it easy to create beautifully formatted pages for NomadNet using the Micron markup language. With an intuitive interface, real-time preview, and comprehensive formatting tools, you can create rich, interactive content without memorizing complex syntax.
- Top Toolbar: Insert Micron code directly at cursor position
- Floating Toolbar: Select text to format it with the context-aware floating toolbar
- Text Styles: Bold, italic, underline with keyboard shortcuts (Ctrl+B, Ctrl+I, Ctrl+U)
- Colors: Full RGB color picker for text and backgrounds (3-digit hex)
- Alignment: Left, center, right alignment with easy open/close tags
- Headers: Three levels of section headers (H1, H2, H3)
- Links: Create hyperlinks with optional bold/underline styling
- Input Fields: Text fields with custom width and password masking
- Checkboxes: Multi-select options with pre-checked states
- Radio Buttons: Mutually exclusive options grouped by name
- Dividers: 20+ decorative divider styles (lines, stars, diamonds, etc.)
- Emojis: Built-in emoji picker with multiple categories
- ASCII Art: Extensive ASCII character library for boxes, lines, arrows, symbols
- Magic Auto-Format: Experimental AI-powered page beautification
- Live Preview: Real-time Micron rendering as you type
- External Preview: Open preview in separate window for dual-monitor workflow
- Auto-Save: Content automatically saved to browser localStorage
- Syntax Help: Comprehensive Micron syntax reference guide
- Three View Modes: Edit, Preview, and Code viewer tabs
- Character Counter: Real-time line/character count
- 130 Character Warning: MeshChat compatibility indicator
- Undo/Redo: Full history with Ctrl+Z / Ctrl+Y
- Strip Codes: Remove all formatting to get plain text
- Export: Download as .mu file ready for NomadNet
Use it online on github at:
https://fr33n0w.github.io/micron-composer/
or you can download and use it locally following the instructions below.
- Clone the repository:
git clone https://github.com/yourusername/micron-composer.git
cd micron-composer- Open in browser:
# Simply open index.html in your web browser
# Or use a local server (recommended):
python -m http.server 8000
# Then navigate to http://localhost:8000/index.html- Start Editing: Type or paste content in the editor
- Format Text:
- Click toolbar buttons to insert formatting codes
- Select text and use floating toolbar for quick formatting
- Preview: Switch to "Page Preview" tab to see rendered output
- Export: Click "Export file" to download your .mu page
`!Bold text`! - Bold
`*Italic text`* - Italic
`_Underlined text`_ - Underline
`` - Reset all formatting
`FxxxText`f - Text color (xxx = 3-digit hex)
`BxxxText`b - Background color
`Ff00Red text`f - Example: Red text
`cCentered text`a - Center align
`lLeft aligned`a - Left align
`rRight aligned`a - Right align
>Header Level 1 - Main header
>>Header Level 2 - Subheader
>>>Header Level 3 - Sub-subheader
`[Link text`/path/to/page.mu] - Basic link
`[`destination.mu] - Link without custom text
`<fieldname`default value> - Text field
`<24|fieldname`value> - Sized field (24 chars)
`<!16|password`Enter password> - Masked password field
`<?|field|value`Label text> - Checkbox
`<?|field|value|*`Pre-checked> - Pre-checked checkbox
`<^|group|value`Option 1> - Radio button
`<^|group|value|*`Selected> - Pre-selected radio
- - Simple horizontal line
-= - Equal signs divider
-β - Heavy line divider
-β
- Star divider
# This is a comment - Not displayed in output
This is a first release beta version, so could have some bugs, in case open a gihtub issue or contact the developer at lxmf address:
0d051f3b6f844380c3e0c5d14e37fac8
- HTML5/CSS3/JavaScript - Core technologies
- Original Micron Parser - Official NomadNet Micron parser (JavaScript port)
- DOMPurify - XSS protection and HTML sanitization
- localStorage API - Auto-save functionality
- β Firefox (Recommended)
- β Chrome/Chromium
- β Edge
- β Safari
β οΈ Best experience with Firefox
micron-composer/
βββ composer.html # Main HTML file
βββ styles.css # All styling
βββ editor.js # Editor logic and functionality
βββ script/
βββ micron-parser_original.js # Official Micron parser
βββ purify.min.js # DOMPurify library
- β Text formatting (bold, italic, underline)
- β Foreground and background colors (3-digit hex)
- β Text alignment (left, center, right)
- β Section headers (3 levels)
- β Horizontal dividers (plain and custom characters)
- β Hyperlinks with form field submission
- β Input fields (text, password, sized)
- β Checkboxes (single and pre-checked)
- β Radio buttons (grouped and pre-selected)
- β Comments (lines starting with #)
- β Literal text mode (escape sequences)
- β Format reset codes
Content is automatically saved to browser localStorage every time you type. Your work persists across browser sessions unless you:
- Click "Clear page"
- Click "Start New Page" and confirm
- Clear browser data
Ctrl+B- BoldCtrl+I- ItalicCtrl+U- UnderlineCtrl+S- Convert to MicronCtrl+Z- UndoCtrl+Y/Ctrl+Shift+Z- RedoEsc- Close modal
- Real-time character counter
- 130 character per line limit indicator
- Optimal formatting for terminal display
Contributions are welcome! Please feel free to submit a Pull Request.
- Additional divider styles
- More emoji categories
- Additional ASCII art characters
- Improved Magic auto-format algorithm
- Additional export formats
- Internationalization
This project is licensed under the MIT License - see the LICENSE file for details.
- NomadNet - For the Micron markup language
- Mark Qvist - Original Micron parser implementation
- Reticulum Network - Mesh networking stack
- DOMPurify - XSS protection library
- π Micron Documentation
- π¬ NomadNet Community
- π Report Issues
- Template library
- Custom color palettes
- Multi-page project support
- Direct NomadNet publishing
- Collaborative editing
- Mobile-optimized interface
- Dark/Light theme toggle
- Import from existing .mu files
---
Made with β€οΈ for the NomadNet community
Keep your lines under 130 characters for MeshChat compatibility!