
Product
Introducing Repository Access Permissions and Custom Roles
Socket now supports Custom Roles and Repository Access Permissions so organizations can control who can access specific repositories and actions.
@prisma-next/operations
Advanced tools
Target-neutral operation registry and capability helpers for Prisma Next
Target-neutral operation registry for Prisma Next.
This package provides a generic, target-neutral operation registry. It's part of the core ring and has no dependencies on target-specific packages.
OperationRegistry<T>: Generic interface for registering and iterating operations, parameterized by entry typecreateOperationRegistry<T>(): Factory function to create operation registriesOperationEntry: Base entry type with args and returnsOperationDescriptor<T>: Entry plus a method name, used for registrationParamSpec: Describes an operation parameter (codecId, nullable), used for both arguments and return values@prisma-next/sql-operations (extends with SQL-specific lowering specs)@prisma-next/sql-relational-core (imports ParamSpec for AST and type definitions)@prisma-next/runtime-executor (uses for operation registry creation)flowchart TD
subgraph "Core Ring"
OPS[@prisma-next/operations]
end
subgraph "Targets Ring"
SQL_OPS[@prisma-next/sql-operations]
end
subgraph "Lanes Ring"
REL_CORE[@prisma-next/sql-relational-core]
end
subgraph "Runtime Ring"
RT[@prisma-next/runtime]
end
OPS --> SQL_OPS
OPS --> REL_CORE
OPS --> RT
import { createOperationRegistry, type OperationDescriptor } from '@prisma-next/operations';
const registry = createOperationRegistry();
const descriptor: OperationDescriptor = {
method: 'cosineDistance',
args: [{ codecId: 'pg/vector@1', nullable: false }],
returns: { codecId: 'pg/float8@1', nullable: false },
};
registry.register(descriptor);
const entries = registry.entries(); // Record<string, OperationEntry>
import { createOperationRegistry, type OperationEntry, type OperationDescriptor } from '@prisma-next/operations';
interface MyEntry extends OperationEntry {
readonly extra: string;
}
const registry = createOperationRegistry<MyEntry>();
registry.register({
method: 'myMethod',
args: [],
returns: { codecId: 'pg/int4@1', nullable: false },
extra: 'custom data',
});
This package is part of the framework domain, core layer, shared plane:
packages/1-framework/1-core/operationsFAQs
Target-neutral operation registry and capability helpers for Prisma Next
The npm package @prisma-next/operations receives a total of 26,618 weekly downloads. As such, @prisma-next/operations popularity was classified as popular.
We found that @prisma-next/operations demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 3 open source maintainers 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.

Product
Socket now supports Custom Roles and Repository Access Permissions so organizations can control who can access specific repositories and actions.

Product
Socket MCP now lets AI assistants review org alerts, investigate threats using the Socket threat feed, and inspect package files in addition to dependency scoring.

Product
Socket Firewall blocks malicious VS Code and Open VSX extensions before install, protecting developers from compromised editor marketplaces.