plugin

package module
v0.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 22, 2026 License: MIT Imports: 2 Imported by: 0

README

plugin-template

A starter togo plugin. A togo plugin can serve backend (routes, GraphQL types, migrations) and frontend (Next.js pages/assets), and can add CLI commands.

Use it

# Generate from this template inside a project:
togo make:plugin cms

# Or install someone else's published plugin:
togo install fadymondy/cms

Anatomy

togo.plugin.yaml   manifest: name, priority, backend pkg, migrations, frontend, commands
plugin.go          implements the togo.Plugin lifecycle (Register/Boot)
db/atlas/schema/   migrations the plugin contributes
web/               frontend pages/assets the plugin serves

Plugins boot in ascending priority (0–100), mirroring togo's kernel lifecycle.

License

MIT

Documentation

Overview

Package plugin is a starter togo plugin shaped like a mini app: a self-registering backend provider, an injectable frontend (web/), its own internal packages, and a .claude/ agent kit. Copy this repo or run `togo make:plugin <name>` to scaffold a new one in the same shape.

On `togo install <owner>/<repo>` the package is blank-imported into the app, so init() registers it with the kernel — no manual wiring.

Index

Constants

View Source
const Name = "example"

Name is the plugin's stable identifier.

Variables

This section is empty.

Functions

This section is empty.

Types

This section is empty.

Directories

Path Synopsis
internal
example
Package example holds the plugin's backend logic.
Package example holds the plugin's backend logic.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL