For full documentation, visit docs.postguard.eu.
Important
Development moved to encryption4all/postguard-js, under examples/.
This repository is kept for history and is about to be archived.
Example applications demonstrating PostGuard integration. Contains reference implementations for developers building on PostGuard. Code snippets in docs.postguard.eu come from this repo.
There are four sub-projects:
pg-sveltekit/: SvelteKit web app using the@e4a/pg-jsSDK.pg-node/: Node.js CLI using the@e4a/pg-jsSDK from a server runtime.pg-dotnet/: .NET console app using thepostguard-dotnetSDK.pg-manual/: manual encryption/decryption using the@e4a/pg-wasmlibrary directly.
Each sub-project has its own README with full setup instructions.
cd pg-sveltekit
npm install
npm run devSee pg-sveltekit/README.md for environment variables and build instructions.
Requires Node.js 22+ and a PostGuard API key.
cd pg-node
npm install
cp .env.example .env # set at minimum PG_API_KEY
npm run send # encrypt + upload + notify recipientsSee pg-node/README.md for the full configuration and modes.
Requires the .NET 10.0+ SDK and a PostGuard API key. The example uses the E4A.PostGuard NuGet package, so no Rust toolchain or local build of the native library is needed.
cd pg-dotnet
export PG_API_KEY="PG-your-key-here"
dotnet runSee pg-dotnet/README.md for full setup instructions.
cd pg-manual
npm install
npm run devSee pg-manual/README.md for details.
No releases. This is example code.
MIT