···1011```bash
12# Install from JSR
13-deno install -g jsr:@slices/cli --name slices
0000000014```
0001516### Create Your Project
17···364365### Deno Deploy
366367-Create a free account at [deno.com/deploy](https://deno.com/deploy). Push your code to GitHub, then connect your repository through the Deno Deploy dashboard to deploy your app.
00368369-For production use with Deno Deploy, switch from SQLite to Deno KV for OAuth and session storage:
0370371```typescript
372import { DenoKVOAuthStorage } from "@slices/oauth";
···391});
392```
393394-Deno KV provides serverless-compatible storage that scales automatically with your deployment.
0395396## Manual Setup (Advanced)
397
···1011```bash
12# Install from JSR
13+deno install -g -A jsr:@slices/cli --name slices
14+```
15+16+### Login to Slices
17+18+Before creating a project, authenticate with your AT Protocol account:
19+20+```bash
21+slices login
22```
23+24+This will open a browser window where you can authorize the CLI with your AT
25+Protocol handle.
2627### Create Your Project
28···375376### Deno Deploy
377378+Create a free account at [deno.com/deploy](https://deno.com/deploy). Push your
379+code to GitHub, then connect your repository through the Deno Deploy dashboard
380+to deploy your app.
381382+For production use with Deno Deploy, switch from SQLite to Deno KV for OAuth and
383+session storage:
384385```typescript
386import { DenoKVOAuthStorage } from "@slices/oauth";
···405});
406```
407408+Deno KV provides serverless-compatible storage that scales automatically with
409+your deployment.
410411## Manual Setup (Advanced)
412
+12-6
docs/intro.md
···3738```bash
39# Install the CLI globally
40-deno install -g jsr:@slices/cli --name slices
4142# Initialize a new slice project
43slices init my-app
···47deno task dev
48```
4950-The `slices init` command creates a full-stack Deno app with OAuth authentication, automatically creates your slice on the network, and generates a type-safe TypeScript SDK.
005152## Simple Example
53···105106## Key Features
107108-- **Schema Validation**: Define lexicons that enforce data structure and constraints
109-- **Auto-generated APIs**: REST endpoints created automatically from your schemas
00110- **TypeScript SDKs**: Type-safe clients generated from your lexicons
111- **Real-time Sync**: Automatic synchronization across the AT Protocol network
112-- **Advanced Querying**: Filter, sort, and paginate records with a powerful query API
0113- **OAuth Built-in**: Authentication with any AT Protocol account
114115## When to Use Slices
116117Slices is ideal for:
118119-- **Social Applications**: Build specialized communities, forums, or social features
0120- **Content Platforms**: Create blogs, documentation sites, or media libraries
121- **SaaS Products**: Develop collaborative tools with structured data needs
122- **Web APIs**: Design REST APIs with automatic validation and documentation
···3738```bash
39# Install the CLI globally
40+deno install -g -A jsr:@slices/cli --name slices
4142# Initialize a new slice project
43slices init my-app
···47deno task dev
48```
4950+The `slices init` command creates a full-stack Deno app with OAuth
51+authentication, automatically creates your slice on the network, and generates a
52+type-safe TypeScript SDK.
5354## Simple Example
55···107108## Key Features
109110+- **Schema Validation**: Define lexicons that enforce data structure and
111+ constraints
112+- **Auto-generated APIs**: REST endpoints created automatically from your
113+ schemas
114- **TypeScript SDKs**: Type-safe clients generated from your lexicons
115- **Real-time Sync**: Automatic synchronization across the AT Protocol network
116+- **Advanced Querying**: Filter, sort, and paginate records with a powerful
117+ query API
118- **OAuth Built-in**: Authentication with any AT Protocol account
119120## When to Use Slices
121122Slices is ideal for:
123124+- **Social Applications**: Build specialized communities, forums, or social
125+ features
126- **Content Platforms**: Create blogs, documentation sites, or media libraries
127- **SaaS Products**: Develop collaborative tools with structured data needs
128- **Web APIs**: Design REST APIs with automatic validation and documentation