
Company News
Socket Named Top Sales Organization by RepVue
Socket won two 2026 Reppy Awards from RepVue, ranking in the top 5% of all sales orgs. AE Alexandra Lister shares what it's like to grow a sales career here.
@omodaka/pinatinodb-adapter-prisma
Advanced tools
Prisma adapter for PinatinoDB - automatic IPFS sync for Prisma
Prisma adapter for PinatinoDB - automatically sync your Prisma data to IPFS!
pnpm add @pinatinodb/prisma-adapter @pinatinodb/core
import { PrismaClient } from '@prisma/client';
import { withPinatino } from '@pinatinodb/prisma-adapter';
import { PinatinoDB } from '@pinatinodb/core';
// Create PinatinoDB instance
const pinatino = new PinatinoDB({
pinata: {
apiKey: process.env.PINATA_JWT!
}
});
await pinatino.initialize();
// Wrap Prisma client
const prisma = withPinatino(new PrismaClient(), {
pinatino,
strategy: 'write-through', // or 'write-behind', 'read-through', 'none'
logging: true
});
// Use Prisma normally - data automatically syncs to IPFS!
const user = await prisma.user.create({
data: {
name: 'Alice',
email: 'alice@example.com'
}
});
// ✅ Data is now in both Prisma DB and IPFS!
write-through (default)write-behindread-throughnone// Only sync specific models
const prisma = withPinatino(new PrismaClient(), {
pinatino,
models: ['User', 'Post'], // Only sync these models
logging: true
});
// Or exclude models
const prisma = withPinatino(new PrismaClient(), {
pinatino,
excludeModels: ['Log', 'Session'], // Don't sync these
logging: true
});
const prisma = withPinatino(new PrismaClient(), {
pinatino,
onError: (error, operation, model) => {
console.error(`Failed to sync ${model}.${operation}:`, error);
// Send to error tracking service, etc.
}
});
The adapter uses Prisma middleware to intercept database operations:
All Prisma operations work normally - the IPFS sync is transparent!
create - Synced to IPFScreateMany - Batch synced to IPFSupdate - Updates in IPFSupdateMany - Batch updatesdelete - Removes from IPFSdeleteMany - Batch deletesMIT
FAQs
Prisma adapter for PinatinoDB - automatic IPFS sync for Prisma
We found that @omodaka/pinatinodb-adapter-prisma 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
Socket won two 2026 Reppy Awards from RepVue, ranking in the top 5% of all sales orgs. AE Alexandra Lister shares what it's like to grow a sales career here.

Security News
NIST will stop enriching most CVEs under a new risk-based model, narrowing the NVD's scope as vulnerability submissions continue to surge.

Company News
/Security News
Socket is an initial recipient of OpenAI's Cybersecurity Grant Program, which commits $10M in API credits to defenders securing open source software.