Skip to content

Userscript framework

The modern userscript framework

Build it in Vue or React. Makoo mounts it, keeps it there, cleans up.

pnpm dlx @makoojs/create-makoo

Build with components
Manage with structure

Component injection and lifecycle management for complex userscripts

Component-based UI

Build interactive interfaces for web pages with Vue or React

Declarative injection

Declare where a component mounts, its attached listeners, and its recovery strategy

Page change handling

Wait for async nodes and reinject components after the host replaces them

Unified event management

Start, stop, and clean up host event listeners in one place

TypeScript support

Types for declarations, commands, and in-component status

Full toolchain

Project creation, development debugging, and build preview

Inject components
into dynamic pages

Injection management

Wait for targets Mount and remount

Manage component and listener executions and recover after the host replaces nodes

Async DOM waitingComponent mount and reinjectionComplete stop and cleanup
Learn about the lifecycle

Framework support

Build UI with Vue or React

Mount components through adapters and read commands and status inside them

Learn about framework support

Makoo CLI

Terminal shortcuts

Install the development script, view logs, and restart the server with shortcuts

View the development terminal

Injection status

Inspect running injections

View component and listener status and errors in the terminal, and switch between connected Core instances

Learn about injection inspection

Component injection example

Declare what mounts where

Declare a component with inject and hand it to a Core instance to run

Start building
src/main.ts
import { createMakoo, inject } from '@makoojs/core';
import { createVueAdapter } from '@makoojs/vue';
import Panel from './Panel.vue';

const core = createMakoo();
core.useAdapter(createVueAdapter());
core.apply([
  inject({ name: 'panel', injectAt: 'body', adapter: 'vue', component: Panel })
]);

Open source MIT License

Start building userscripts

Build component-driven page features with Makoo