ReferenceStack SDK
Overview
The core @cipherstash/stack package for client-side encryption, searchable schemas, identity controls, and encrypted query operands.
@cipherstash/stack is the core TypeScript SDK for CipherStash. It encrypts and decrypts values in your application, defines the searchable capabilities of encrypted columns, and creates encrypted operands for queries against EQL.
Database and framework wrappers are separate packages. Use the Supabase, Prisma ORM 8, or Drizzle integration when you want encryption built into that library's query flow.
What the package provides
| Area | Purpose |
|---|---|
| Encryption client | Encrypt and decrypt individual values, batches, and models. |
| Schema builders | Describe tables, columns, value types, and searchable capabilities. |
| Query encryption | Produce typed encrypted operands for equality, range, and search queries. |
| Identity controls | Bind encryption and decryption to federated identity claims. |
| DynamoDB helpers | Encrypt and decrypt DynamoDB attributes and expressions. |
| Error types | Inspect operation failures without parsing error messages. |