99
1010** Example applications for [ dstack] ( https://github.com/Dstack-TEE/dstack ) - Deploy containerized apps to TEEs with end-to-end security in minutes**
1111
12- [ Getting Started] ( #getting-started ) • [ Use Cases] ( #use-cases ) • [ Core Patterns] ( #core-patterns ) • [ Dev Tools] ( #dev-scaffolding ) • [ Other Use Cases] ( #other-use-cases )
12+ [ Getting Started] ( #getting-started ) • [ Use Cases] ( #use-cases ) • [ Core Patterns] ( #core-patterns ) • [ Dev Tools] ( #dev-scaffolding ) • [ Starter Packs ] ( #starter-packs ) • [ Other Use Cases] ( #other-use-cases )
1313
1414</div >
1515
@@ -44,7 +44,7 @@ phala simulator start
4444### Run an Example Locally
4545
4646``` bash
47- cd attestation-with-sdk
47+ cd tutorial/01- attestation-oracle
4848docker compose run --rm \
4949 -v ~ /.phala-cloud/simulator/0.5.3/dstack.sock:/var/run/dstack.sock \
5050 app
@@ -61,6 +61,19 @@ See [Phala Cloud](https://cloud.phala.network) for production TEE deployment.
6161
6262---
6363
64+ ## Tutorials
65+
66+ Step-by-step guides covering core dstack concepts.
67+
68+ | Tutorial | Description |
69+ | ----------| -------------|
70+ | [ 01-attestation-oracle] ( ./tutorial/01-attestation-oracle ) | Use the guest SDK to work with attestations directly — build an oracle, bind data to TDX quotes via ` report_data ` , verify with local scripts |
71+ | [ 02-persistence-and-kms] ( ./tutorial/02-persistence-and-kms ) | Use ` getKey() ` for deterministic key derivation from a KMS — persistent wallets, same key across restarts |
72+ | [ 03-gateway-and-ingress] ( ./tutorial/03-gateway-and-ingress ) | Custom domains with automatic SSL, certificate evidence chain |
73+ | [ 04-upgrades] ( ./tutorial/04-upgrades ) | Extend ` AppAuth.sol ` with custom authorization logic — NFT-gated clusters, on-chain governance |
74+
75+ ---
76+
6477## Use Cases
6578
6679Real-world applications you can build with dstack.
@@ -97,7 +110,6 @@ volumes:
97110
98111| Example | Description | Status |
99112|---------|-------------|--------|
100- | [attestation-with-sdk](./attestation-with-sdk) | Complete SDK example with HTTP server | Available |
101113| [timelock-nts](./timelock-nts) | Raw socket usage (what the SDK wraps) | Available |
102114| [attestation/configid-based](./attestation/configid-based) | ConfigID-based verification | Available |
103115
@@ -150,6 +162,21 @@ Interesting demonstrations.
150162
151163---
152164
165+ # # Starter Packs
166+
167+ Full-stack templates with SDK integration. These demonstrate attestation, key derivation, and wallet generation.
168+
169+ | Template | Stack | Link |
170+ |----------|-------|------|
171+ | **Next.js Starter** | Next.js + TypeScript | [phala-cloud-nextjs-starter](https://github.com/Phala-Network/phala-cloud-nextjs-starter) |
172+ | **Python Starter** | FastAPI + Python | [phala-cloud-python-starter](https://github.com/Phala-Network/phala-cloud-python-starter) |
173+ | **Bun Starter** | Bun + TypeScript | [phala-cloud-bun-starter](https://github.com/Phala-Network/phala-cloud-bun-starter) |
174+ | **Node.js Starter** | Express + TypeScript | [phala-cloud-node-starter](https://github.com/Gldywn/phala-cloud-node-starter) |
175+
176+ Features : ` /api/tdx_quote` (attestation), `/api/eth_account` (derived wallet), `/api/info` (TCB info)
177+
178+ ---
179+
153180# # Other Use Cases
154181
155182External projects and templates worth exploring. These are maintained elsewhere but demonstrate interesting TEE patterns.
0 commit comments