-
-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy path.env.example
More file actions
73 lines (64 loc) · 2.95 KB
/
Copy path.env.example
File metadata and controls
73 lines (64 loc) · 2.95 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
# Napkin AI API Configuration (.env example)
# Copy this file to ".env" and fill in your values.
# Note: ".env" is gitignored and must not be committed.
# =============================================================================
# Optional Authentication - GitHub Actions
# =============================================================================
GITHUB_TOKEN=ghp_your_token_here
# =============================================================================
# Required Authentication
# =============================================================================
# Obtain your token from: https://napkin.ai
NAPKIN_API_TOKEN=your_token_here
# =============================================================================
# API Configuration
# =============================================================================
# Must include scheme (https:// or http://). Trailing slashes are normalized.
NAPKIN_API_BASE_URL=https://api.napkin.ai
NAPKIN_API_VERSION=v1
# =============================================================================
# Default Generation Settings
# =============================================================================
# See src/utils/constants.py for available styles (e.g., vibrant-strokes)
NAPKIN_DEFAULT_STYLE=vibrant-strokes
# Supported formats: svg, png
NAPKIN_DEFAULT_FORMAT=svg
# BCP 47 language tag
NAPKIN_DEFAULT_LANGUAGE=en-US
# Range: 1-4
NAPKIN_DEFAULT_VARIATIONS=1
# =============================================================================
# Storage Configuration
# =============================================================================
NAPKIN_STORAGE_PATH=./data/visuals
NAPKIN_DATABASE_PATH=./data/database/napkin.db
# =============================================================================
# API Client Settings
# =============================================================================
NAPKIN_MAX_RETRIES=3
NAPKIN_TIMEOUT_SECONDS=30
NAPKIN_RATE_LIMIT_REQUESTS=60
NAPKIN_POLL_INTERVAL_SECONDS=2.0
NAPKIN_MAX_POLL_ATTEMPTS=30
# =============================================================================
# Application Settings
# =============================================================================
# Options: DEBUG, INFO, WARNING, ERROR, CRITICAL
NAPKIN_LOG_LEVEL=INFO
# true/false
NAPKIN_DEBUG_MODE=false
# 1-10
NAPKIN_BATCH_CONCURRENT_LIMIT=5
# =============================================================================
# Display Settings
# =============================================================================
# true/false
NAPKIN_USE_COLORS=true
# true/false
NAPKIN_SHOW_PROGRESS=true
# =============================================================================
# Streamlit Web Interface Settings (Optional)
# =============================================================================
# The web interface will use the same NAPKIN_API_TOKEN from above
# You can also configure these in .streamlit/secrets.toml for deployment
# These are optional - the app will work with just NAPKIN_API_TOKEN