{"id":28794130,"url":"https://github.com/lcandy2/container-ui","last_synced_at":"2026-01-21T13:25:18.726Z","repository":{"id":299535078,"uuid":"1002846298","full_name":"lcandy2/container-ui","owner":"lcandy2","description":"Crane: Native macOS Desktop App for managing Apple's Containers (apple/container) CLI.","archived":false,"fork":false,"pushed_at":"2025-06-19T06:24:26.000Z","size":3403,"stargazers_count":170,"open_issues_count":0,"forks_count":4,"subscribers_count":4,"default_branch":"main","last_synced_at":"2026-01-19T22:54:14.281Z","etag":null,"topics":["apple","apple-container","container","containerization","docker","kubernetes","linux","mac","macos","macos-26","macos-tahoe","orbstack","swift","swiftui"],"latest_commit_sha":null,"homepage":"","language":"Swift","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/lcandy2.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-06-16T08:30:00.000Z","updated_at":"2026-01-03T21:53:59.000Z","dependencies_parsed_at":"2025-06-17T03:39:21.141Z","dependency_job_id":null,"html_url":"https://github.com/lcandy2/container-ui","commit_stats":null,"previous_names":["lcandy2/container-ui"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/lcandy2/container-ui","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lcandy2%2Fcontainer-ui","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lcandy2%2Fcontainer-ui/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lcandy2%2Fcontainer-ui/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lcandy2%2Fcontainer-ui/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lcandy2","download_url":"https://codeload.github.com/lcandy2/container-ui/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lcandy2%2Fcontainer-ui/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28633757,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-21T04:47:28.174Z","status":"ssl_error","status_checked_at":"2026-01-21T04:47:22.943Z","response_time":86,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["apple","apple-container","container","containerization","docker","kubernetes","linux","mac","macos","macos-26","macos-tahoe","orbstack","swift","swiftui"],"created_at":"2025-06-18T02:04:46.670Z","updated_at":"2026-01-21T13:25:18.692Z","avatar_url":"https://github.com/lcandy2.png","language":"Swift","readme":"# ContainerUI\n\n\u003e ⚠️ **Under Rapid Development** - This project is actively being developed with frequent updates and new features.\n\nA native macOS SwiftUI application for managing containers using Apple's built-in `container` CLI tool. ContainerUI provides an intuitive, three-column interface following Apple's Human Interface Guidelines for seamless container management on macOS.\n\n![macOS](https://img.shields.io/badge/macOS-15.0+-blue.svg)\n![Swift](https://img.shields.io/badge/Swift-5.0+-orange.svg)\n![SwiftUI](https://img.shields.io/badge/SwiftUI-Native-green.svg)\n![Development](https://img.shields.io/badge/Status-Active%20Development-yellow.svg)\n\n| ![ContainerUI 2025-06-17 13 28 41](https://github.com/user-attachments/assets/6d34d55e-7c37-48a4-9b14-c19548f4484e) | ![ContainerUI 2025-06-17 13 28 48](https://github.com/user-attachments/assets/9b14bc7f-e469-4410-ac7b-2c70e38520b6) |\n| ------------------------------------------------------------ | ------------------------------------------------------------ |\n| ![ContainerUI 2025-06-17 13 28 50](https://github.com/user-attachments/assets/6bea1a12-63f0-4884-9f04-d14817609f9e) | ![CleanShot 2025-06-17 at 13 31 17@2x](https://github.com/user-attachments/assets/3789118d-be96-41d2-82d3-4f247a361ba9) |\n\n## Features\n\n### 🚢 Container Management\n- **List all containers** with rich information including resource allocation and network details\n- **Start, stop, and restart** containers with one-click actions\n- **Create new containers** from images with customizable settings\n- **Delete containers** with confirmation\n- **Real-time status updates** showing running/stopped states\n- **Integrated inspector** with detailed container information and actions\n- **Context menu support** for quick operations\n\n### 🖼️ Image Management\n- **Browse container images** with size and architecture information\n- **Multi-architecture detection** for Apple Silicon compatibility\n- **Registry information** showing source repositories\n- **Create containers** directly from images\n- **Delete unused images** to free up space\n- **Dedicated inspector** for image details and operations\n\n### ⚙️ System Management\n- **Container system status** monitoring\n- **DNS domain management** for container networking\n- **System logs** with filtering and search capabilities\n- **Start/stop container runtime** as needed\n- **System-specific inspector** for advanced configuration\n\n### 📊 Advanced Logging\n- **Universal logs viewer** supporting multiple log types:\n  - Container runtime logs\n  - Container boot logs\n  - System logs\n- **Multi-window support** for viewing multiple log streams simultaneously\n- **Search and filtering** with real-time text search\n- **Export capabilities** for log analysis\n- **Native macOS UI** with line numbers and word wrap options\n\n### 🏗️ Modern Architecture\n- **Self-contained views** with independent state management\n- **Clean separation of concerns** following SwiftUI best practices\n- **Responsive inspector panels** for each feature area\n- **Environment-based service injection** for loose coupling\n- **Error handling** at the view level for better user experience\n\n## Requirements\n\n- **macOS 15.0** or later\n- **Apple's container CLI tool** installed and accessible\n- **Xcode 15.0** or later (for building from source)\n\n## Installation\n\n### Prerequisites\n\nThe app requires Apple's `container` CLI tool to be installed. This is typically available through:\n\n```bash\n# Check if container tool is available\nwhich container\n\n# The app will look for the tool in these locations:\n# /usr/local/bin/container\n# /opt/homebrew/bin/container\n# /usr/bin/container\n# Or via PATH lookup\n```\n\n### Building from Source\n\n1. **Clone the repository:**\n   ```bash\n   git clone https://github.com/lcandy2/container-ui.git\n   cd container-ui\n   ```\n\n2. **Open in Xcode:**\n   ```bash\n   open ContainerUI/ContainerUI.xcodeproj\n   ```\n\n3. **Build and run:**\n   - Select the ContainerUI scheme\n   - Press `Cmd+R` to build and run\n   - Or use command line: `xcodebuild -scheme ContainerUI -configuration Debug`\n\n## Architecture\n\nContainerUI follows a modern SwiftUI architecture with clean separation of concerns and view-specific state management:\n\n### Project Structure\n```\nContainerUI/\n├── Application/          # App entry point and configuration\n├── Services/            # Business logic and CLI integration\n├── Screens/             # Feature-based UI organization\n│   ├── Containers/      # Container management views with own inspector\n│   │   ├── Views/       # ContainerListView, ContainerInspectorView\n│   │   └── NewContainer/ # Container creation flow\n│   ├── Images/         # Image management views with own inspector\n│   │   └── Views/       # ImageListView, ImageInspectorView\n│   ├── Logs/           # Universal logs system\n│   │   ├── Models/      # Log filtering and sources\n│   │   └── Views/       # Multi-window log viewers\n│   └── System/         # System management views with own inspector\n│       └── Views/       # SystemListView, SystemInspectorView\n└── Shared/             # Reusable components and utilities\n    ├── Models/         # Core data models (AppTab)\n    └── Views/          # Main ContentView (navigation only)\n```\n\n### Key Architecture Principles\n- **Single Responsibility**: Each view manages its own state and actions\n- **Loose Coupling**: Views use `@Environment` for service access\n- **Encapsulation**: Inspector state managed per feature area\n- **Scalability**: Easy to add new features without affecting existing code\n- **Maintainability**: Clear boundaries between different functional areas\n\n### Key Technologies\n- **SwiftUI** with NavigationSplitView for native three-column layout\n- **@Observable** macro for modern state management\n- **Environment-based dependency injection** for clean architecture\n- **JSON parsing** for rich CLI data extraction\n- **Async/await** for modern concurrency\n- **Multi-window support** for enhanced productivity\n- **Sandbox-compatible** process execution\n\n## Usage\n\n### Getting Started\n\n1. **Launch ContainerUI** from Applications folder or Xcode\n2. **Container system** will automatically start if needed\n3. **Browse containers** in the left sidebar under \"Containers\"\n4. **Select a container** to view details in the right inspector\n5. **Manage containers** using context menus or inspector actions\n\n### Container Operations\n\n- **Right-click containers** for quick actions (start, stop, delete, logs)\n- **Use the inspector** for detailed information and advanced operations\n- **Toggle inspector** using the toolbar button for more space\n- **Create new containers** using the \"New Container\" button\n- **View logs** by clicking \"View Logs\" - opens in a dedicated window\n\n### Image Management\n\n- **Switch to \"Images\" tab** to browse available container images\n- **View image details** in the dedicated inspector panel\n- **Create containers** directly from images using inspector actions\n- **Delete unused images** to free up disk space\n- **Toggle inspector** for focused browsing experience\n\n### System Management\n\n- **Access \"System\" tab** for container runtime management\n- **Monitor system status** in the main area and inspector\n- **Manage DNS domains** for container networking\n- **View system logs** for troubleshooting\n- **Control container runtime** start/stop operations\n\n### Inspector Features\n\nEach feature area has its own inspector with relevant actions:\n- **Containers**: Start, stop, restart, logs, terminal access, deletion\n- **Images**: Container creation, image details, deletion\n- **System**: DNS management, system logs, runtime control\n\n## Development\n\n### Architecture Guidelines\n\nWhen adding new features:\n\n1. **Follow the established pattern**: Each feature area manages its own state\n2. **Use `@Environment`**: Access services without prop drilling\n3. **Self-contained views**: Include inspector, actions, and error handling\n4. **Consistent UI patterns**: Follow the established inspector/list pattern\n5. **Clean separation**: Keep navigation logic separate from feature logic\n\n### Build Commands\n\n```bash\n# Build project\nxcodebuild -scheme ContainerUI -configuration Debug build\n\n# Run application\nxcodebuild -scheme ContainerUI -configuration Debug\n\n# Clean build\nxcodebuild clean\n```\n\n### Sandboxing\n\nFor development, you may need to temporarily disable App Sandbox:\n- Set `ENABLE_APP_SANDBOX = NO` in build settings\n- This allows access to external CLI tools\n- **Not suitable for App Store distribution**\n\nFor production deployment, consider:\n- **XPC Service** for secure CLI execution (already implemented)\n- **Embedded helper tool** bundled with the app\n- See `XPC_IMPLEMENTATION_COMPLETE.md` for detailed architecture guidance\n\n## CLI Integration\n\nContainerUI integrates with Apple's `container` CLI using JSON output for reliable parsing:\n\n- **Containers:** `container ls -a --format json`\n- **Images:** `container image ls --format json`\n- **System:** `container system *` commands\n- **Logs:** `container logs` with various filters\n\nAll CLI interactions are handled through the XPC service for security and reliability.\n\n## Contributing\n\n\u003e 🚧 **Active Development Notice** - Due to rapid development, please check existing issues and PRs before starting work to avoid conflicts.\n\n1. Fork the repository at [https://github.com/lcandy2/container-ui](https://github.com/lcandy2/container-ui)\n2. Create a feature branch (`git checkout -b feature/amazing-feature`)\n3. Follow the established architecture patterns:\n   - Each feature area manages its own state\n   - Use `@Environment` for service access\n   - Include inspector views for detailed operations\n   - Handle errors at the view level\n4. Ensure all features work with the JSON CLI format\n5. Test thoroughly on macOS 15.0+\n6. Commit your changes (`git commit -m 'Add amazing feature'`)\n7. Push to the branch (`git push origin feature/amazing-feature`)\n8. Open a Pull Request\n\n## License\n\nCopyright © 2025 https://github.com/lcandy2. All Rights Reserved.\n\n## Support\n\nFor issues and feature requests:\n- **GitHub Issues**: [https://github.com/lcandy2/container-ui/issues](https://github.com/lcandy2/container-ui/issues)\n- **Troubleshooting**: Check the built-in error messages and alerts in each view\n- **CLI Integration**: Review system logs for container tool issues\n- **System Status**: Use the System tab for runtime diagnostics\n\n\u003e 💡 **Development Updates** - Check the repository frequently for new features and improvements as this project is under active development.\n\n---\n\n**ContainerUI** - Native container management for macOS developers with modern SwiftUI architecture.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flcandy2%2Fcontainer-ui","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flcandy2%2Fcontainer-ui","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flcandy2%2Fcontainer-ui/lists"}