FieldCraftPayKitDocsServicesBlogWork With Me →
Back to Blog

FieldCraft Storage Adapters Are Now Open Source

The Short Version

Three packages just went MIT:

  • @squaredr/fieldcraft-postgres v1.0.0
  • @squaredr/fieldcraft-supabase v1.0.0
  • @squaredr/fieldcraft-webhook v1.0.0

Install them today:

npm install @squaredr/fieldcraft-postgres

Why 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-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 on the roadmap. If you have a preference on what we should build next, let us know.

All five FieldCraft packages are on npm:

MIT licensed. Use them however you want.