FieldCraft Storage Adapters Are Now Open Source
We've flipped our Postgres, Supabase, and Webhook adapters from proprietary to MIT. Here's why — and what it means for your projects.
The Short Version
All three adapters are now MIT — shipped in a single package:
npm install @squaredr/fieldcraft-adaptersWhy We Made Them Free
FieldCraft's whole point is own your data. Keeping the storage layer proprietary while preaching data ownership felt contradictory.
The core engine and React renderer have been MIT from day one. The adapters should be too.
What Each Adapter Does
Postgres Adapter
Built on Drizzle ORM. Handles form response storage with optional field-level AES-256-GCM encryption. You choose which fields get encrypted — a name field can be encrypted while a "how did you hear about us" field stays queryable in plain text.
import { createPostgresAdapter } from '@squaredr/fieldcraft-adapters/postgres'
const adapter = createPostgresAdapter({
db: drizzleInstance,
encryptionKey: process.env.ENCRYPTION_KEY, // optional
encryptedFields: ['email', 'phone', 'ssn'],
})Supabase Adapter
Works with your existing Supabase project. Same encryption support. If you're already using Supabase, this is the fastest path to storing form responses.
Webhook Adapter
POSTs form data to any endpoint. Payloads are signed with HMAC-SHA256 so you can verify they came from your app. Built-in exponential backoff for failed deliveries.
What's Next
MongoDB and a generic REST adapter are planned. If you have a preference on what we should build next, open an issue.
All FieldCraft packages are on npm:
- @squaredr/fieldcraft-core
- @squaredr/fieldcraft-react
- @squaredr/fieldcraft-adapters — Postgres, Supabase, and Webhook in one package
MIT licensed. Use them however you want.