
Security News
/Research
Fake Corepack Site Distributes Infostealer and Proxyware to Developers
A fake corepack.org site is impersonating the Node.js tool and delivers an infostealer and proxyware to developers who download it.
@prisma-next/ids
Advanced tools
ID generator helpers for Prisma Next contracts. This package provides ergonomic helpers that produce contract-safe, JSON-serializable execution defaults for client-generated IDs, plus runtime generation utilities that Prisma Next uses before sending data to adapters.
Each helper owns the column descriptor metadata associated with that generator, so callers only
pass options supported by the underlying uniku generator.
ulid, nanoid, uuidv7, uuidv4, cuid2, ksuid) for contract authoring.uniku when mutation defaults require them.@prisma-next/contract for shared contract types (ExecutionMutationDefaultValue).uniku for ID generator implementations.flowchart LR
Authoring[ContractAuthoring] --> IdsHelpers[ids_helpers]
IdsHelpers --> ContractJson[contract_json]
Runtime[orm_lane] --> IdsRuntime[ids_runtime]
IdsRuntime --> Uniku[uniku_generators]
import { textColumn } from '@prisma-next/adapter-postgres/column-types';
import sqlFamily from '@prisma-next/family-sql/pack';
import { uuidv4 } from '@prisma-next/ids';
import { defineContract, field, model } from '@prisma-next/sql-contract-ts/contract-builder';
import postgresPack from '@prisma-next/target-postgres/pack';
export const contract = defineContract({
family: sqlFamily,
target: postgresPack,
models: {
User: model('User', {
fields: {
id: field.generated(uuidv4()).id(),
email: field.column(textColumn),
},
}).sql({ table: 'user' }),
},
});
Pass generator options directly (for helpers whose uniku implementation supports them):
import { nanoid } from '@prisma-next/ids';
const idSpec = nanoid({ size: 12 });
ulid binary and nanoid char/varchar).nanoid({ size }) also sets descriptor metadata to character(size) so contract shape matches generator output length.Runtime usage:
import { generateId } from '@prisma-next/ids/runtime';
const value = generateId({ id: 'uuidv4' });
FAQs
ID generator helpers for Prisma Next contracts
The npm package @prisma-next/ids receives a total of 11,654 weekly downloads. As such, @prisma-next/ids popularity was classified as popular.
We found that @prisma-next/ids demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 4 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.

Security News
/Research
A fake corepack.org site is impersonating the Node.js tool and delivers an infostealer and proxyware to developers who download it.

Research
/Security News
A large-scale campaign abused GitHub Actions in compromised repositories to exploit CVE-2026-41940 in cPanel and WHM and steal server credentials.

Security News
Five frontier LLMs generated the same nonexistent package names, leaving 53 available for potential slopsquatting across PyPI and npm.