
Description
Generate QR codes locally without third-party services or dependencies. Uses a self-contained pure Python script (stdlib only). Data never leaves the machine. Supports PNG file output.
SKILL.md
QR Code Generator
Generate QR codes locally using a pure Python script with zero external dependencies. All data stays on the local machine — nothing is sent to any third-party service.
When This Skill Activates
- User wants to generate a QR code for a URL, text, or any data
- User asks to create a scannable QR code image (PNG)
How to Use
The QR generator script is at:
skills/qr-code/scripts/qr_generator.py
Run it with python3 (macOS/Linux) or python (Windows).
PNG File Output
Save the QR code as a PNG image file:
python3 skills/qr-code/scripts/qr_generator.py --png /tmp/qr_output.png "https://example.com"
Options
| Flag | Description | Default |
|---|---|---|
--png FILE | Save as PNG to FILE | (required) |
--scale N | PNG pixels per QR module | 10 |
--open | Open the PNG in the OS default image viewer after saving | off |
Workflow
- Determine what the user wants to encode (URL, text, etc.)
- Run the script via Bash tool with
--png <path> --opento save as PNG and open it for scanning - Inform the user of the saved file path
Limitations
- Supports QR versions 1-10 (up to ~271 characters)
- Only byte mode encoding (handles all UTF-8 text, URLs, etc.)
Examples
Generate QR for a URL:
python3 skills/qr-code/scripts/qr_generator.py --png /tmp/link_qr.png --open "https://meta.com"
Generate QR for plain text:
python3 skills/qr-code/scripts/qr_generator.py --png /tmp/message_qr.png --open "Thank god it's Friday!"
More skills from the meta-wearables-webapp repository
View all 12 skillsadd-device-sensors
integrate device sensor data
Sep 1FrontendHardwareIoTadd-gestures
handle gesture interactions in webapps
Sep 1DesignFrontendInteractionadd-local-storage
add client-side data persistence
Sep 1FrontendPersistenceStorageadd-offline
enable offline support for webapps
Sep 1FrontendOfflinePerformanceadd-text-input
add text input to webapps
Sep 1FormsFrontendUI Componentsadd-ui
add UI components to webapps
Sep 1FrontendJavaScriptReactUI Components
More from Meta Open Source
View publisherrelay-best-practices
write idiomatic Relay code
relay
Apr 22EngineeringFrontendGraphQLReact +1relay-performance
optimize Relay application performance
relay
Jun 10FrontendGraphQLPerformanceReact +1add-shape-types-to-torch-model
annotate PyTorch models with tensor shapes
pyrefly
Jul 18Data ModelingDeep LearningPythonPyTorchcamera-streaming
configure camera streaming and photo capture
meta-wearables-dat-ios
Aug 6CameraHardwareiOSVideodat-conventions
develop iOS applications with DAT SDK
meta-wearables-dat-ios
Aug 6iOSMobileSDKSwiftdebugging
debug wearable device software
meta-wearables-dat-ios
Aug 6DebuggingEngineeringiOS