Skip to content

chore(create-email): replace ora with picospinner - #3891

Merged
dielduarte merged 2 commits into
resend:canaryfrom
LuggaPugga:chore/remove-ora
Nov 17, 2026
Merged

dielduarte merged 2 commits into
resend:canaryfrom
LuggaPugga:chore/remove-ora

Conversation

@LuggaPugga

@LuggaPugga LuggaPugga commented Nov 12, 2026 •

Copy link
Copy Markdown
Contributor

Replaces ora and log-symbols in create-email with picospinner, which react-email and @react-email/ui already depend on.

For people running npx create-email, the spinner goes from 20 packages (~304 KB) to 1 package (~24 KB)

Behaviour

In an interactive terminal the output looks the same: the same cyan braille spinner, the same green ✔ React Email Starter files ready, and the cursor is hidden while it spins. The spinner redraws a little faster (~50 ms per frame instead of ~80 ms).

picospinner doesn't check for a TTY and would write every frame into CI logs and pipes, so the spinner only starts when process.stdout.isTTY is true. Otherwise only the final line is printed:

Before After
TTY spinner → ✔ React Email Starter files ready same
Piped / CI - Preparing files..., blank line, coloured ✔ … plain ✔ React Email Starter files ready

Summary by cubic

Replaces ora and log-symbols in create-email with picospinner, which react-email and @react-email/ui already depend on. Running npx create-email now pulls in 1 package (~24 KB) instead of 20 (~304 KB).

Interactive output stays the same: the same cyan braille spinner, the same green ✔ React Email Starter files ready, and the cursor hides while spinning, with frames redrawn slightly faster (~50 ms per frame instead of ~80 ms).

Since picospinner writes every frame regardless of TTY, the spinner only starts on an interactive terminal. When process.stdout.isTTY is false, TERM is dumb, or CI is set, output changes from a blank line plus coloured success text to a plain ✔ React Email Starter files ready line.

Written for commit 821b8ef. Summary will update on new commits.

View guided diff

@vercel

vercel Bot commented Nov 12, 2026

Copy link
Copy Markdown
Contributor

@LuggaPugga is attempting to deploy a commit to the resend Team on Vercel.

A member of the Team first needs to authorize it.

@changeset-bot

changeset-bot Bot commented Nov 12, 2026 •

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 821b8ef

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
create-email Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@github-actions github-actions Bot added the linear-synced PR has been synced to Linear label Nov 14, 2026
@vercel

vercel Bot commented Nov 17, 2026 •

Copy link
Copy Markdown
Contributor

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
react-email Ready Ready Preview Nov 17, 2026 2:11pm UTC
react-email-demo Ready Ready Preview Nov 17, 2026 2:11pm UTC

Request Review

LuggaPugga and others added 2 commits November 17, 2026 11:07
Swap ora and log-symbols for picospinner, which react-email and
@react-email/ui already use. The spinner only starts on a TTY because
picospinner would otherwise write every frame to CI logs and pipes;
non-TTY output now prints just the final success line.

@dielduarte dielduarte left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks a lot for this, @LuggaPugga! Going from 20 packages to 1 for everyone running npx create-email is a really nice win 🙏

Before merging, I rebased onto canary and pushed one small change. The spinner now uses the same check as the spinner in react-email: it only runs in a real terminal, and is skipped when CI is set or TERM=dumb. In those cases you just get the final ✔ React Email Starter files ready line, the same as in pipes.

@dielduarte
dielduarte merged commit 63a03dc into resend:canary Nov 17, 2026
13 checks passed
@LuggaPugga
LuggaPugga deleted the chore/remove-ora branch November 17, 2026 17:16
@LuggaPugga

Copy link
Copy Markdown
Contributor Author

Thanks a lot for this, @LuggaPugga! Going from 20 packages to 1 for everyone running npx create-email is a really nice win 🙏

Before merging, I rebased onto canary and pushed one small change. The spinner now uses the same check as the spinner in react-email: it only runs in a real terminal, and is skipped when CI is set or TERM=dumb. In those cases you just get the final ✔ React Email Starter files ready line, the same as in pipes.

Awesome, thanks a lot for merging :)

This branch was successfully deployed

2 active deployments
Preview – react-email-demo — 821b8efa Deployed Nov 17, 2026 by vercel[bot]
Preview – react-email — 821b8efa Deployed Nov 17, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

linear-synced PR has been synced to Linear

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants