Skip to content

chore: remove 5 unused npm dependencies#537

Open
devin-ai-integration[bot] wants to merge 1 commit into
masterfrom
devin/1779515027-remove-unused-deps
Open

chore: remove 5 unused npm dependencies#537
devin-ai-integration[bot] wants to merge 1 commit into
masterfrom
devin/1779515027-remove-unused-deps

Conversation

@devin-ai-integration
Copy link
Copy Markdown
Contributor

@devin-ai-integration devin-ai-integration Bot commented May 23, 2026

Summary

Removes 5 npm dependencies with zero imports/usage in the codebase, identified using knip static analysis and manually verified via codebase-wide searches of imports, configs, scripts, Rust code, and Tauri capabilities.

Dependencies removed:

  • gpt-tokenizer — zero imports (token counting feature was removed)
  • @tauri-apps/plugin-dialog — no JS imports, no Rust usage, no capability permissions
  • @radix-ui/react-avatar — only imported in avatar.tsx which itself is never imported

DevDependencies removed:

  • @noble/curves — zero imports; codebase uses @noble/hashes (separate package)
  • @tanstack/router-devtools — zero imports, not auto-loaded by router plugin

Also removes the dead src/components/ui/avatar.tsx file (sole consumer of @radix-ui/react-avatar, never imported anywhere).

Verified safe: just lint, just build (typecheck + vite build) all pass cleanly.

Review & Testing Checklist for Human

  • Verify web dev server starts normally (just dev) and app loads without console errors
  • Confirm desktop build still works (just desktop-build or equivalent)

Notes

  • Knip also flagged @tauri-apps/plugin-deep-link, @tauri-apps/plugin-fs, and @tauri-apps/cli but these are needed — deep-link and fs are used in Rust code + capabilities, and cli is the Tauri build tool
  • e18e flagged uuid as replaceable with native crypto.randomUUID() but that requires code changes (not a free removal)
  • lockfile diff is minimal since bun remove handles the cleanup atomically

Link to Devin session: https://app.devin.ai/sessions/181f5f2b929d495e8aa692fa8ecb0036
Requested by: @AnthonyRonning


Open in Devin Review

Remove dependencies with zero imports/usage in the codebase:

Dependencies:
- gpt-tokenizer (no imports, token counting was removed)
- @tauri-apps/plugin-dialog (no JS or Rust usage, no capabilities)
- @radix-ui/react-avatar (only used in dead avatar.tsx file)

DevDependencies:
- @noble/curves (zero imports, only a devDep of @opensecret/react)
- @tanstack/router-devtools (zero imports, not auto-loaded)

Also removes the dead src/components/ui/avatar.tsx file which was
the sole consumer of @radix-ui/react-avatar and itself never imported.

Co-Authored-By: tony@opensecret.cloud <TonyGiorgio@protonmail.com>
@devin-ai-integration
Copy link
Copy Markdown
Contributor Author

🤖 Devin AI Engineer

I'll be helping with this pull request! Here's what you should know:

✅ I will automatically:

  • Address comments on this PR. Add '(aside)' to your comment to have me ignore it.
  • Look at CI failures and help fix them

Note: I can only respond to comments from users who have write access to this repository.

⚙️ Control Options:

  • Disable automatic comment and CI monitoring

@cloudflare-workers-and-pages
Copy link
Copy Markdown

Deploying maple with  Cloudflare Pages  Cloudflare Pages

Latest commit: 3797ce8
Status: ✅  Deploy successful!
Preview URL: https://c6afb577.maple-ca8.pages.dev
Branch Preview URL: https://devin-1779515027-remove-unus.maple-ca8.pages.dev

View logs

Copy link
Copy Markdown
Contributor Author

@devin-ai-integration devin-ai-integration Bot left a comment

Choose a reason for hiding this comment

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

✅ Devin Review: No Issues Found

Devin Review analyzed this PR and found no bugs or issues to report.

Open in Devin Review

@devin-ai-integration
Copy link
Copy Markdown
Contributor Author

Smoke Test Results

Tested locally via just dev on the branch after removing 5 unused npm dependencies.

Test Results (3/3 passed)
  • App loads without import/module errors — PASSED. Landing page renders correctly, no blank page.
  • Authentication works — PASSED. Email login with @noble/hashes (sibling of removed @noble/curves) succeeds, redirects to chat.
  • Chat sends and receives messages — PASSED. Sent "What is 2+2?" → received "Four". Streaming works normally.

Console shows only normal SSE events and attestation logs. No errors related to removed packages (gpt-tokenizer, @radix-ui/react-avatar, @tauri-apps/plugin-dialog, @noble/curves, @tanstack/router-devtools).

Screenshots
App Landing Chat Response
Landing Chat
Console Check
Console

Devin session

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant