
Company News
Free Business Plan Upgrades for Open Source Maintainers
Open source maintainers are under more pressure than ever. We're raising our open source program from the Team plan to the Business plan, free.
@velocms/plugin-types
Advanced tools
TypeScript types for VeloCMS plugin development — re-exported from internal Zod schemas
TypeScript types for VeloCMS plugin development, derived from the internal Zod schemas.
Provides: PluginManifest, HookName, HookPayloadMap, PluginCapability, CapabilityDeclaration, PluginContext.
npm install @velocms/plugin-types
import type {
PluginManifest,
HookName,
PostHookPayload,
PluginContext,
} from "@velocms/plugin-types";
export const manifest: PluginManifest = {
id: "com.example.my-plugin",
name: "My Plugin",
version: "1.0.0",
description: "Does something useful",
capabilities: ["content:read"],
hooks: ["afterPostPublish"],
builtin: false,
enabled: true,
};
export async function afterPostPublish(
payload: PostHookPayload,
ctx: PluginContext
): Promise<PostHookPayload> {
ctx.log("Post published", { slug: payload.post.slug });
return payload;
}
| Export | Description |
|---|---|
PluginManifest | The manifest object every plugin must export |
HookName | Union of all hook names ("afterPostCreate" | ...) |
PluginCapability | Union of all capability strings |
HookPayloadMap | Maps each HookName to its payload type |
PostHookPayload | Payload for post lifecycle hooks |
BeforePostPublishPayload | Payload for beforePostPublish (writable) |
MemberHookPayload | Payload for member lifecycle hooks |
PageHookPayload | Payload for page lifecycle hooks |
OrderHookPayload | Payload for commerce order hooks |
PluginContext | Context passed to every handler |
CapabilityDeclaration | Human-readable capability description |
describeCapabilities() | Helper to build consent UIs |
MIT
FAQs
TypeScript types for VeloCMS plugin development — re-exported from internal Zod schemas
The npm package @velocms/plugin-types receives a total of 1 weekly downloads. As such, @velocms/plugin-types popularity was classified as not popular.
We found that @velocms/plugin-types demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Company News
Open source maintainers are under more pressure than ever. We're raising our open source program from the Team plan to the Business plan, free.

Security News
The supply chain control that delays freshly published gems now covers lockfile generation and gem vendoring in Ruby projects.

Security News
During a UK cyber test, a Mythos 5 agent used sockpuppets, social engineering, and prompt injection to try to get a maintainer to merge malware.