multiAI Summary Pending
tauri-app-barcode-scanner
Integrate the Tauri v2 barcode scanner plugin for QR code and barcode scanning with camera permissions. Use when adding barcode/QR scanning features, handling camera permissions, or processing scan results on mobile platforms.
223 stars
Installation
Claude Code / Cursor / Codex
$curl -o ~/.claude/skills/tauri-app-barcode-scanner/SKILL.md --create-dirs "https://raw.githubusercontent.com/partme-ai/full-stack-skills/main/skills/tauri-skills/tauri-app-barcode-scanner/SKILL.md"
Manual Installation
- Download SKILL.md from GitHub
- Place it in
.claude/skills/tauri-app-barcode-scanner/SKILL.mdinside your project - Restart your AI agent — it will auto-discover the skill
How tauri-app-barcode-scanner Compares
| Feature / Agent | tauri-app-barcode-scanner | Standard Approach |
|---|---|---|
| Platform Support | multi | Limited / Varies |
| Context Awareness | High | Baseline |
| Installation Complexity | Unknown | N/A |
Frequently Asked Questions
What does this skill do?
Integrate the Tauri v2 barcode scanner plugin for QR code and barcode scanning with camera permissions. Use when adding barcode/QR scanning features, handling camera permissions, or processing scan results on mobile platforms.
Which AI agents support this skill?
This skill is compatible with multi.
Where can I find the source code?
You can find the source code on GitHub using the link provided at the top of the page.
SKILL.md Source
## When to use this skill
**ALWAYS use this skill when the user mentions:**
- Barcode or QR code scanning in a Tauri app
- Camera permissions for scanning features
- Processing scan results or handling scan errors on mobile
**Trigger phrases include:**
- "barcode", "QR code", "scanner", "camera permissions", "scan"
## How to use this skill
1. **Install the barcode scanner plugin**:
```bash
cargo add tauri-plugin-barcode-scanner
```
2. **Register the plugin** in your Tauri builder:
```rust
tauri::Builder::default()
.plugin(tauri_plugin_barcode_scanner::init())
```
3. **Configure capabilities** in `src-tauri/capabilities/default.json`:
```json
{ "permissions": ["barcode-scanner:allow-scan", "barcode-scanner:allow-cancel"] }
```
4. **Trigger a scan from the frontend**:
```typescript
import { scan, Format } from '@tauri-apps/plugin-barcode-scanner';
const result = await scan({ formats: [Format.QRCode, Format.EAN13] });
console.log('Scanned:', result.content);
```
5. **Handle permission denial** gracefully and prompt the user to enable camera access
6. **Provide fallback** when camera is unavailable (e.g., manual code entry)
## Outputs
- Barcode scanner plugin setup with format-specific scanning
- Permission flow with denial handling
- Fallback strategy for unsupported devices
## References
- https://v2.tauri.app/plugin/barcode-scanner/
## Keywords
tauri barcode scanner, qr code, camera, scan, permissions