# Starlette

## Overview
Starlette is a lightweight ASGI framework/toolkit, which is ideal for building high performance async services.

## Recipes
### REST API
1. [Host rest api with Starlette: Postgres-backed state](/recipes/rest-api/starlette/persistent-state)
2. [Host rest api with Starlette: stored input and output artifacts](/recipes/rest-api/starlette/artifact-storage)
3. [Host rest api with Starlette: streamed responses](/recipes/rest-api/starlette/response-streaming)
4. [Host rest api with Starlette: worker execution and job state](/recipes/rest-api/starlette/worker-state)

### GraphQL API
1. [Host graphql api with Starlette: Postgres-backed state](/recipes/graphql-api/starlette/persistent-state)
2. [Host graphql api with Starlette: stored input and output artifacts](/recipes/graphql-api/starlette/artifact-storage)
3. [Host graphql api with Starlette: streamed responses](/recipes/graphql-api/starlette/response-streaming)
4. [Host graphql api with Starlette: worker execution and job state](/recipes/graphql-api/starlette/worker-state)

### Mobile Backend
1. [Host mobile backend with Starlette: Postgres-backed state](/recipes/mobile-backend/starlette/persistent-state)
2. [Host mobile backend with Starlette: stored input and output artifacts](/recipes/mobile-backend/starlette/artifact-storage)
3. [Host mobile backend with Starlette: streamed responses](/recipes/mobile-backend/starlette/response-streaming)
4. [Host mobile backend with Starlette: worker execution and job state](/recipes/mobile-backend/starlette/worker-state)

### MCP Server
1. [Host mcp server with Starlette: Postgres-backed state](/recipes/mcp-server/starlette/persistent-state)
2. [Host mcp server with Starlette: stored input and output artifacts](/recipes/mcp-server/starlette/artifact-storage)
3. [Host mcp server with Starlette: streamed responses](/recipes/mcp-server/starlette/response-streaming)
4. [Host mcp server with Starlette: worker execution and job state](/recipes/mcp-server/starlette/worker-state)

### AI Applications
1. [Host ai chat application with Starlette: Postgres-backed state](/recipes/ai-chat-application/starlette/persistent-state)
2. [Host ai chat application with Starlette: stored input and output artifacts](/recipes/ai-chat-application/starlette/artifact-storage)
3. [Host ai chat application with Starlette: streamed responses](/recipes/ai-chat-application/starlette/response-streaming)
4. [Host ai chat application with Starlette: worker execution and job state](/recipes/ai-chat-application/starlette/worker-state)
5. [Host ai workflow runner with Starlette: Postgres-backed state](/recipes/ai-workflow-runner/starlette/persistent-state)
6. [Host ai workflow runner with Starlette: stored input and output artifacts](/recipes/ai-workflow-runner/starlette/artifact-storage)
7. [Host ai workflow runner with Starlette: streamed responses](/recipes/ai-workflow-runner/starlette/response-streaming)
8. [Host ai workflow runner with Starlette: worker execution and job state](/recipes/ai-workflow-runner/starlette/worker-state)

## Guides
1. [Configure build and start for Starlette](/guides/starlette/build-and-start)
2. [Connect Postgres for Starlette](/guides/starlette/database-connection)
3. [Apply database schema changes for Starlette](/guides/starlette/schema-changes)
4. [Configure S3-compatible access for Starlette](/guides/starlette/object-client)
5. [Deliver public assets through CDN for Starlette](/guides/starlette/cdn-assets)
6. [Configure environment and secrets for Starlette](/guides/starlette/configuration-secrets)
7. [Enforce private-file authorization for Starlette](/guides/starlette/private-file-access)
8. [Diagnose deployment failures for Starlette](/guides/starlette/deployment-diagnostics)
