
Security News
Ruby's Bundler 4.0.18 Extends Cooldown to bundle lock and bundle cache
The supply chain control that delays freshly published gems now covers lockfile generation and gem vendoring in Ruby projects.
@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
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.

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.

Company News
Socket is now in the AWS Security Hub Extended plan. Adopt it through AWS, apply committed spend, and block malicious open source packages.