Skip to content

Commit 8759144

Browse files
authored
docs(installation): clean up installation steps and improve documentation copy + examples (#6)
* docs: improve installation steps and examples * docs(changelog): update component * docs(introduction): update copy * ci(labeler): update labeler
1 parent 3a82191 commit 8759144

File tree

6 files changed

+280
-51
lines changed

6 files changed

+280
-51
lines changed

.github/labeler.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,12 @@
2626
- any-glob-to-any-file:
2727
- '.vscode/*'
2828

29-
'ext: style':
29+
'ext: scripts':
30+
- changed-files:
31+
- any-glob-to-any-file:
32+
- 'scripts/*'
33+
34+
'topic: style':
3035
- changed-files:
3136
- any-glob-to-any-file:
3237
- '**/.pre-commit-config.yaml'
@@ -40,6 +45,7 @@
4045
- '**/Makefile'
4146
- '**/.env.example'
4247
- '**/*.mdx'
48+
- 'docs/*'
4349

4450
# Orchestration
4551
'func: build':

README.md

Lines changed: 73 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -48,12 +48,81 @@ Relay helps builds create apps on email workflows. See it as a crossover between
4848

4949
## Quick Tour
5050

51-
### Fetching your emails
51+
### Fetching your unread emails
5252

5353
```shell
54-
relay messages ls
54+
relay messages ls --limit 10 --unread
55+
```
56+
```
57+
Using account: piedpiper
58+
Messages from [email protected]
59+
┏━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━┳━━━━━━━━━━━━┓
60+
┃ UID ┃ Timestamp ┃ From ┃ Subject ┃ Snippet ┃
61+
┡━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━╇━━━━━━━━━━━━┩
62+
│ 15443 │ 2025-06-23 12:35:44 UTC │ [email protected] │ Server │ The │
63+
│ │ │ │ migration │ migration │
64+
│ │ │ │ complete │ is done... │
65+
│ 15467 │ 2025-06-26 12:46:09 UTC │ [email protected] │ RE: My │ Actually │
66+
│ │ │ │ code is │ Gilfoyle, │
67+
│ │ │ │ perfect │ your cod...│
68+
│ 15555 │ 2025-07-08 15:46:27 UTC │ [email protected] │ Team │ Hi guys! │
69+
│ │ │ │ building │ I've │
70+
│ │ │ │ retreat │ organized..│
71+
│ 15587 │ 2025-07-10 13:34:48 UTC │ [email protected] │ Q3 │ Richard, │
72+
│ │ │ │ metrics │ we need to │
73+
│ │ │ │ review │ discuss... │
74+
│ 15588 │ 2025-07-10 14:22:49 UTC │ [email protected] │ Acquisition│ Pied Piper │
75+
│ │ │ │ offer │ team, I'm │
76+
│ │ │ │ │ prepared...│
77+
└───────┴──────────────────────────┴───────────────────────────────┴────────────┴────────────┘
78+
Showing 5 of 5 unread messages
79+
```
80+
81+
### Reading email details
82+
83+
```shell
84+
relay messages cat 15443
85+
```
86+
```
87+
Using account: piedpiper
88+
89+
Message Details
90+
UID: 15443
91+
Timestamp: 2025-06-23 12:35:44 UTC
92+
Subject: Server migration complete
93+
From: "Bertram Gilfoyle" <[email protected]>
94+
95+
96+
BCC: N/A
97+
98+
Message Body:
99+
The migration is done. Obviously.
100+
101+
While you were all probably panicking about downtime (which never happened),
102+
I successfully migrated our entire server infrastructure to the new data center.
103+
104+
Key accomplishments:
105+
- Migrated 47 servers in 3.2 hours
106+
- Implemented redundant failsafes
107+
- Optimized database queries by 340%
108+
- Fixed 23 security vulnerabilities
109+
110+
Richard, the system is now running at 99.97% efficiency. The remaining 0.03%
111+
is due to the laws of physics, which even I cannot override.
112+
113+
Dinesh, I've documented everything in a way that even you might comprehend,
114+
though I make no guarantees.
115+
116+
The servers are purring like a well-fed cat. You may now return to your
117+
regularly scheduled mediocrity.
118+
119+
--
120+
Bertram Gilfoyle
121+
Senior Systems Architect
122+
Pied Piper Inc.
123+
124+
No attachments
55125
```
56-
That's it!
57126

58127

59128
## Get started 🚀
@@ -66,7 +135,7 @@ That's it!
66135

67136
#### 1 - Install the CLI
68137
```shell
69-
uv pip install --system relaycli
138+
pip install relaycli
70139
```
71140
#### 2 - Connect your email account
72141
```shell

docs/changelog/overview.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ rss: true
66

77
The changelog below reflects new product developments and updates on a monthly basis.
88

9-
<Update label="July 2025" description="v0.1.0" tags={["Relay"]}>
9+
<Update label="v0.0.1" description="2025-07-10" tags={["Relay", "CLI"]}>
1010
### 🎉 Initial Release
1111

1212
Welcome to Relay! Our first beta release brings you the core CLI and Python library for email management.

docs/documentation/getting-started/introduction.mdx

Lines changed: 14 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,27 +5,33 @@ description: "Make e-mail programmable again"
55
mode: "wide"
66
---
77

8-
Relay is an **open-source CLI and Python library** that turns any **IMAP-compatible** inbox into a clean, developer-friendly interface in under five minutes.
9-
Build voice agents, auto-responders, support bots, or full-blown e-mail clients—without touching MIME, OAuth hoops, or UID gymnastics.
8+
Relay is an **open-source CLI and Python library** that makes email programmable again. Connect any **IMAP-compatible** inbox and build email-powered applications in minutes—without wrestling with MIME parsers, OAuth flows, or IMAP quirks.
9+
10+
Your credentials stay local. Your data stays yours. No gatekeepers, no vendor lock-in.
1011

1112
<CardGroup cols={2}>
1213
<Card title="Relay CLI" icon="terminal" href="/documentation/getting-started/quickstart">
13-
Your emails, your CLI. Get started now.
14+
Your emails, your terminal. Get started in 5 minutes.
1415
</Card>
1516
<Card
1617
title="Relay Cloud"
1718
icon="cloud"
18-
href="/documentation/community/roadmap"
19+
href="/documentation/community/roadmap#coming-soon"
1920
>
2021
Coming soon: hosted API and web interface.
2122
</Card>
2223
</CardGroup>
2324

2425
## Why we built it
2526

26-
We started Relay to power a voice-first executive assistant for founders.
27-
Google's "CASA" quotas throttled our Gmail integration. IMAP was universal—but clunky.
28-
So we built a clean CLI and Python library that wraps IMAP/SMTP complexity, made it open-source, and designed it for developers who want to build on email without the headaches.
27+
Email is a billion-person communication protocol, but building on it sucks.
28+
We hit this wall building a voice assistant for founders when we received the bill for the security audit to validate Gmail permissions. You can read the full story [here](https://relaycli.com/manifesto).
29+
So we built Relay: a clean, local-first CLI and Python library that handles the complexity while keeping you in control. No middlemen, no data harvesting, no artificial limits.
30+
31+
## What you can build
32+
33+
Parse receipts into spreadsheets. Build auto-responders that actually understand context. Create support bots that route emails intelligently. Extract attachments in bulk. Build full email clients.
34+
The infrastructure is here. The data is yours. The possibilities are endless.
2935

3036
## Where to go next
3137

@@ -52,7 +58,6 @@ So we built a clean CLI and Python library that wraps IMAP/SMTP complexity, made
5258
icon="discord"
5359
href="https://discord.gg/T4zbT7RcVy"
5460
>
55-
The **#general** Channel in our Discord server is a great place to get help
56-
with all things from the team.
61+
Get help and share what you're building with the community.
5762
</Card>
5863
</CardGroup>

docs/documentation/getting-started/quickstart.mdx

Lines changed: 70 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -26,58 +26,92 @@ description: 'From zero to "Hello inbox" in under 5 minutes'
2626
</Tab>
2727
</Tabs>
2828
</Step>
29-
<Step title="Install a Python package manager">
29+
<Step title="Install the CLI">
3030
<Tabs>
31-
<Tab title="uv">
32-
#### Using the standalone installer
31+
<Tab title="macOS & Linux">
3332
<CodeGroup>
34-
```shell title="macOS & Linux"
35-
curl -LsSf https://astral.sh/uv/install.sh | sh
33+
```shell title="curl" icon="code"
34+
curl -sSL https://github.com/relaycli/relay/releases/download/v0.0.1-alpha.2/install.sh | bash
3635
```
37-
```shell title="Windows"
38-
powershell -ExecutionPolicy ByPass -c "irm https://astral.sh/uv/install.ps1 | iex"
36+
```shell title="wget" icon="code"
37+
wget -qO- https://github.com/relaycli/relay/releases/download/v0.0.1-alpha.2/install.sh | bash
3938
```
40-
</CodeGroup>
41-
#### Using Pypi
42-
```shell
43-
pip install uv
39+
```shell title="pip" icon="python"
40+
pip install relaycli
4441
```
45-
46-
If you encounter issues, refer to the [official documentation](https://docs.astral.sh/uv/getting-started/installation).
42+
```shell title="uv" icon="python"
43+
uv pip install --system relaycli
44+
```
45+
</CodeGroup>
46+
If you encounter issues, please follow the installation steps for either [pip](https://pip.pypa.io/en/stable/installation/) or [uv](https://docs.astral.sh/uv/getting-started/installation) and then run the corresponding installation command.
4747
</Tab>
48-
<Tab title="pip">
49-
Follow the [official documentation](https://pip.pypa.io/en/stable/installation/).
48+
<Tab title="Windows">
49+
<CodeGroup>
50+
```shell title="pip" icon="python"
51+
pip install relaycli
52+
```
53+
```shell title="uv" icon="python"
54+
uv pip install --system relaycli
55+
```
56+
</CodeGroup>
57+
If you encounter issues, please follow the installation steps for either [pip](https://pip.pypa.io/en/stable/installation/) or [uv](https://docs.astral.sh/uv/getting-started/installation) and then run the corresponding installation command.
5058
</Tab>
5159
</Tabs>
5260
</Step>
53-
<Step title="Install the CLI">
54-
<CodeGroup>
55-
```shell title="uv"
56-
uv pip install --system relaycli
57-
```
58-
```shell title="pip" icon="python"
59-
pip install relaycli
60-
```
61-
</CodeGroup>
62-
</Step>
6361
<Step title="Connect the inbox">
6462
```shell
6563
relay account add
6664
```
6765
</Step>
6866
<Step title="Try out CLI commands">
69-
<CodeGroup>
70-
```shell title="fetch recent emails"
71-
relay messages ls
72-
```
73-
```shell title="search your inbox"
74-
relay messages grep "Pied piper"
75-
```
76-
```shell title="read a specific message"
77-
relay messages cat <message_uid>
78-
```
79-
</CodeGroup>
67+
<Tabs>
68+
<Tab title="Fetch recent emails">
69+
```shell
70+
relay messages ls
71+
```
72+
```
73+
Using account: piedpiper
74+
Messages from [email protected]
75+
┏━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━┳━━━━━━━━━━━━┓
76+
┃ UID ┃ Timestamp ┃ From ┃ Subject ┃ Snippet ┃
77+
┡━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━╇━━━━━━━━━━━━┩
78+
│ 15443 │ 2025-06-23 12:35:44 UTC │ [email protected] │ Server │ The │
79+
│ │ │ │ migration │ migration │
80+
│ │ │ │ complete │ is done... │
81+
│ 15467 │ 2025-06-26 12:46:09 UTC │ [email protected] │ RE: My │ Actually │
82+
│ │ │ │ code is │ Gilfoyle, │
83+
│ │ │ │ perfect │ your cod...│
84+
└───────┴──────────────────────────┴───────────────────────────────┴────────────┴────────────┘
85+
Showing 2 of 2 unread messages
86+
```
87+
</Tab>
88+
<Tab title="Search your inbox">
89+
```shell
90+
relay messages grep "Gavin Belson"
91+
```
92+
</Tab>
93+
<Tab title="Read a specific message">
94+
```shell
95+
relay messages cat 15467
96+
```
97+
```
98+
Using account: piedpiper
99+
100+
Message Details
101+
UID: 15467
102+
Timestamp: 2025-06-26 12:46:09 UTC
103+
Subject: RE: My code is perfect
104+
From: "Dinesh Chugtai" <[email protected]>
105+
80106
107+
Message Body:
108+
Actually Gilfoyle, your code has a memory leak in the compression algorithm.
109+
I've already fixed it. You're welcome.
110+
111+
No attachments
112+
```
113+
</Tab>
114+
</Tabs>
81115
</Step>
82116
<Step title="Make something cool">
83117
Now it's your turn!

0 commit comments

Comments
 (0)