Skip to content

Add bambu-lab extension - #25051

Merged
raycastbot merged 10 commits into
raycast:mainfrom
cavalluccijohann:ext/bambu-lab
Feb 24, 2026
Merged

raycastbot merged 10 commits into
raycast:mainfrom
cavalluccijohann:ext/bambu-lab

Conversation

@cavalluccijohann

@cavalluccijohann cavalluccijohann commented Feb 1, 2026 •

Copy link
Copy Markdown
Contributor

Description

Bambu Lab Controller brings your 3D printer directly into Raycast. Manage your prints, control temperatures, and handle files instantly without breaking your workflow.

Note to reviewers:
This extension requires physical hardware (Bambu Lab Printer) and connects via local LAN (MQTT/FTP).
I have personally tested it on Bambu Lab A1 and A1 Mini.
Since it relies on local network discovery, it might show "Disconnected" or connection errors if you try to run it without a printer, which is expected behavior.

Screencast

CleanShot 2026-02-01 at 14 01 46@2x CleanShot 2026-02-01 at 14 01 55@2x CleanShot 2026-02-01 at 14 02 18@2x

Checklist

- docs: update contributor link in README
- feat: update changelog and README for Bambu Lab Controller; enhance descriptions and add features
- refactor: improve error handling and type definitions in Bambulab control interface
- refactor: clean up code formatting and improve readability in Bambulab control and print interfaces
- feat: enhance file handling in Bambulab control interface; add utility functions for file type validation
- feat: add AMS print options to Bambulab control interface; implement user preference for AMS usage
- refactor: simplify MQTT handling in Bambulab control interface; enhance translation usage and improve file upload feedback
- refactor: enhance Bambulab control interface with improved translations and streamlined file upload actions
- refactor: streamline Bambulab control interface; implement translations and improve UI text
- feat: impression working
- refactor Bambulab control interface to improve file upload handling; enhance local file selection and streamline SD card file management
- refactor Bambulab control interface to enhance printer status management; implement detailed light control and streamline preheating options
- enhance Bambulab control interface with improved light state management and gcode state tracking; streamline emergency stop functionality and update UI actions
- enhance Bambulab control interface with emergency stop functionality and improve light control; streamline preheating options for material selection
- refactor Bambulab control interface for light control and enhance preheating options with material selection; implement robust FTP connection handling in print functionality
- add preheating functionality and improve MQTT connection handling
- initialize Bambulab Control extension with MQTT support and basic file handling
@raycastbot

Copy link
Copy Markdown
Collaborator

Congratulations on your new Raycast extension! 🚀

We're currently experiencing a high volume of incoming requests. As a result, the initial review may take up to 10-15 business days.

Once the PR is approved and merged, the extension will be available on our Store.

- Fix: small correction before publication
- feat: enhance Bambulab control and print interfaces; improve error handling and introduce constants for configuration
@cavalluccijohann
cavalluccijohann marked this pull request as ready for review February 1, 2026 13:22
@greptile-apps

greptile-apps Bot commented Feb 1, 2026 •

Copy link
Copy Markdown
Contributor

Greptile Summary

This PR adds a new Bambu Lab 3D printer controller extension with two commands: printer management (status monitoring, print controls, temperature management) and file operations (SD card browsing, file upload via FTP, print starting). The extension connects to Bambu Lab printers over the local network using MQTT for control and FTP for file transfers.

Key Changes:

  • Clean extension structure with proper TypeScript types and utility functions
  • MQTT integration for real-time printer status and command publishing
  • FTP client for SD card file browsing and uploading .3mf/.gcode files
  • Automatic Material System (AMS) support with filament tracking
  • Proper Raycast configuration following store guidelines

Issues Already Flagged in Previous Threads:

  • TLS verification disabled for both MQTT (rejectUnauthorized: false in mqtt.ts:38) and FTP (rejectUnauthorized: false in bambulab-print.tsx:64) due to self-signed certificates - security concern for store extension
  • MQTT error handler doesn't properly clean up client (already flagged in previous thread)
  • FTP upload progress calculation issue with bytesOverall (already flagged)
  • Folder path manipulation uses replace(/^\//, "") which correctly removes leading slash (previous comment about replace("/", "") was addressed)
  • Missing trailing newline in CHANGELOG.md (already flagged)

Confidence Score: 3/5

  • Safe for local network use, but TLS verification issues need addressing before store publication
  • The code is well-structured and functional, but disabling TLS verification on both MQTT and FTP connections is a security concern for a public store extension. While this is necessary for self-signed certificates on local printers, the approach needs refinement (proper cert validation or clear documentation of risks). All other issues flagged in previous threads are minor and addressable.
  • Pay close attention to src/utils/mqtt.ts and src/bambulab-print.tsx - both disable TLS certificate verification which creates security vulnerabilities

Important Files Changed

Filename Overview
extensions/bambu-lab/package.json Clean configuration with proper metadata, dependencies, and preferences - all previous issues addressed
extensions/bambu-lab/src/utils/mqtt.ts MQTT hook with TLS verification disabled (security concern) and client cleanup issue in error handler
extensions/bambu-lab/src/bambulab-print.tsx File upload/print command with TLS verification disabled and folder path manipulation issue
extensions/bambu-lab/CHANGELOG.md Proper changelog with PR_MERGE_DATE placeholder - missing trailing newline

Last reviewed commit: b31a6dd

@greptile-apps greptile-apps Bot 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.

5 files reviewed, 5 comments

Edit Code Review Agent Settings | Greptile

Comment thread extensions/bambu-lab/src/utils/types.ts Resolved
Comment thread extensions/bambu-lab/package.json Resolved
Comment thread extensions/bambu-lab/package.json Resolved
- Fix: greptile-apps
- Fix: greptile-apps
- feat: simplify toast messages and improve UI text for clarity; remove unused translation imports
@HugoRCD

HugoRCD commented Feb 8, 2026

Copy link
Copy Markdown
Contributor

@greptileai can you do a fresh review?

@greptile-apps greptile-apps Bot 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.

20 files reviewed, 4 comments

Edit Code Review Agent Settings | Greptile

Comment thread extensions/bambu-lab/src/utils/mqtt.ts Resolved
- Fix: greptile-apps comments
- feat: update preferences type to BambuPreferences and improve folder name handling
@cavalluccijohann

Copy link
Copy Markdown
Contributor Author

@greptileai can you do a fresh review?

@greptile-apps greptile-apps Bot 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.

20 files reviewed, 2 comments

Edit Code Review Agent Settings | Greptile

- Fix: greptileai comments
- fix: improve FTPS connection handling and upload progress reporting
@0xdhrv 0xdhrv self-assigned this Feb 9, 2026
@cavalluccijohann

Copy link
Copy Markdown
Contributor Author

@greptileai can you do a fresh review?

@greptile-apps greptile-apps Bot 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.

10 files reviewed, 2 comments

Edit Code Review Agent Settings | Greptile

Comment thread extensions/bambu-lab/src/utils/mqtt.ts Resolved
Comment thread extensions/bambu-lab/CHANGELOG.md Resolved
@cavalluccijohann

Copy link
Copy Markdown
Contributor Author

@greptileai can you do a fresh review?

@greptile-apps greptile-apps Bot 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.

20 files reviewed, 2 comments

Edit Code Review Agent Settings | Greptile

Comment thread extensions/bambu-lab/CHANGELOG.md Resolved
Comment thread extensions/bambu-lab/src/utils/mqtt.ts Resolved
@cavalluccijohann

Copy link
Copy Markdown
Contributor Author

@greptileai can you do a fresh review?