app
Resend Studio
Public Made by Adomby adom
A local editor for Resend email templates: paste your API key, then edit, preview, lint, test-send, and publish templates without Resend's dashboard. Also imports SendGrid dynamic templates and converts their Handlebars to Resend's variable syntax.
main
#!/bin/sh
set -e
BIN_DIR="$HOME/.local/bin"
SKILL_DIR="$HOME/.claude/skills/adom-resend-studio"
VERSION=$(sed -n 's/^ *"version": *"\([^"]*\)".*/\1/p' "$PWD/package.json" | head -n 1)
ASSET_URL="https://wiki.adom.inc/download/adom/adom-resend-studio/$VERSION/adom-resend-studio-linux-x64"
BIN=""
# On x86_64 Linux, use the prebuilt static binary for this exact version, if it
# downloads and runs. Anything else builds from source.
if [ "$(uname -s)" = "Linux" ] && [ "$(uname -m)" = "x86_64" ] && command -v curl >/dev/null 2>&1; then
mkdir -p "$PWD/bin"
if curl -fsSL -o "$PWD/bin/adom-resend-studio" "$ASSET_URL" 2>/dev/null; then
chmod +x "$PWD/bin/adom-resend-studio"
if "$PWD/bin/adom-resend-studio" --version >/dev/null 2>&1; then
BIN="$PWD/bin/adom-resend-studio"
echo "Using the prebuilt binary for v$VERSION."
fi
fi
fi
if [ -z "$BIN" ]; then
command -v cargo >/dev/null 2>&1 || { echo "ERROR: no prebuilt binary for this machine, and cargo is required to build adom-resend-studio from source." >&2; exit 1; }
echo "Building adom-resend-studio (release)..."
cargo build --release --manifest-path "$PWD/Cargo.toml"
BIN="$PWD/target/release/adom-resend-studio"
fi
mkdir -p "$BIN_DIR"
ln -sfn "$BIN" "$BIN_DIR/adom-resend-studio"
mkdir -p "$SKILL_DIR"
cp "$PWD/SKILL.md" "$SKILL_DIR/SKILL.md"
echo "Run: adom-resend-studio serve (then add your Resend API key in Settings)"
echo "installed"