CipherStashDocs
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

AreaPurpose
Encryption clientEncrypt and decrypt individual values, batches, and models.
Schema buildersDescribe tables, columns, value types, and searchable capabilities.
Query encryptionProduce typed encrypted operands for equality, range, and search queries.
Identity controlsBind encryption and decryption to federated identity claims.
DynamoDB helpersEncrypt and decrypt DynamoDB attributes and expressions.
Error typesInspect operation failures without parsing error messages.

Start here

On this page