The IDE for crafting Miru extensions!
MiruCraft is a development environment designed to streamline the creation and testing of extensions for the Miru application.
- 🚀 Live Extension Testing: Load and run your Miru extensions directly within MiruCraft, simulating how they would behave in the Miru app.
- 📝 Code Editor with Miru Flavor:
- Syntax highlighting for JavaScript.
- Autocompletion for Miru extension metadata (
@name,@version, etc.). - Snippets for common Miru extension structures and methods.
- 🔍 Real-time Linting: Integrated JSHint to catch common JavaScript errors as you type.
- 🌐 Built-in HTTP Client: Test network requests your extension makes, with the ability to inspect request/response headers and bodies.
- 📜 Console Output: View
console.logmessages from your extension directly within the IDE for easier debugging. - 💾 Local & Session Storage Management: Inspect and manage data your extension might be storing.
- 📦 Extension Management:
- Import existing
.jsextension files. - Export your creations as
.jsfiles ready for Miru.
- Import existing
- 🛠️ Powered by Modern Tech: Built with Svelte, Go, and Wails for a responsive and efficient experience.
- 📄 Miru Compatibility: Aims for high compatibility with the official Miru extension engine, allowing you to run and develop existing Miru extensions.
The Miru application thrives on its versatile extension system. MiruCraft aims to:
- Lower the Barrier to Entry: Make it easier for new developers to start creating Miru extensions.
- Boost Productivity: Provide a dedicated environment that speeds up the development and debugging cycle.
- Promote Best Practices: Encourage well-structured and error-free extension code through integrated tooling.
- Foster Community: By simplifying extension development, we hope to see even more amazing content sources become available for Miru users.
Prerequisites:
- go
- wails setup
Installation / Running:
- Desktop Version:
- Clone the repository:
git clone https://github.com/bethropolis/MiruCraft cd mirucraft - Build the application:
wails build
- Run the executable found in the
build/bindirectory.
- Clone the repository:
Quick Start:
- Launch MiruCraft.
- (Optional: Load an existing
.jsMiru extension file via the "Import" or "Open" feature). - Start coding in the editor! Use the provided templates and autocompletion.
- Use the "Run" or "Test" feature to see your extension in action within the simulated environment.
- Check the Console and Network tabs for debugging information.
- Once satisfied, "Export" your extension.
Interested in contributing to MiruCraft itself? Here's how to get started:
- Prerequisites:
- Go (version X.Y.Z)
- Node.js (version X.Y.Z)
- Wails CLI (version X.Y.Z)
- Clone the repository:
git clone https://github.com/your-username/mirucraft.git cd mirucraft - Install frontend dependencies:
npm install # or yarn install or pnpm install - Run in development mode:
This will open the application in a development server with hot reloading.
wails dev
Welcoming contributions! Whether it's bug fixes, feature enhancements, or documentation improvements.
- Enhanced debugging tools (breakpoints, step-through).
- Visual HTML/CSS selector helper.
- Support for more linting/formatting tools.
- migrating engine to golang backend
This project is licensed under the [MIT License].
- The Miru Team for creating an excellent application and extension system.
- The Wails, Svelte, and Go communities.