Skip to content

Makoo Documentation ​

Makoo runs Vue and React components and event-listener tasks inside existing web pages. It waits for target elements, mounts components, and manages task cleanup. Vite and vite-plugin-monkey provide the dev server and userscript builds.

Start here ​

Follow Getting Started to create a project, install its development script, and see a component on a matching page. For an existing Vite project, use Manual Installation.

You should be familiar with JavaScript, CSS selectors, and components in your chosen framework. Prepare a browser script manager such as Tampermonkey or ScriptCat before running the script.

Find your next step ​

GoalRead
Create and run your first scriptGetting Started
Understand Runtime, tasks, and adaptersCore Concepts
Mount a component on a target elementComponent Injection
Listen to page events and control activityEvent Listeners
Handle target replacement, reset, and destructionLifecycle and Cleanup
View tasks, logs, and terminal shortcutsLocal Development
Produce an installable userscriptBuild and Preview
Diagnose a missing script or componentTroubleshooting
Look up options, return values, and typesAPI Reference

When to use Makoo ​

Makoo helps when a userscript has multiple injection points, components, or listeners that need to wait for asynchronous DOM, handle replaced host elements, and release resources. Native DOM APIs are usually enough for a small script that changes an element once on page load.

Packages ​

PackageWhere you use it
@makoojs/coreBrowser entry: create a Runtime and declare and manage tasks
@makoojs/vue / @makoojs/reactBrowser entry: register the adapter for your framework
@makoojs/cliVite configuration and the dev, build, and preview commands
@makoojs/cli/monkeyBrowser code: access the script manager’s GM APIs
@makoojs/create-makooProject creation