Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

crimsondhaks/craft

Folders and files

NameName
Last commit message
Last commit date

Latest commit

History

18 Commits

Repository files navigation

Craft

Craft logo

A native macOS toolkit of small, sharp utilities — inspired by Microsoft PowerToys, built with SwiftUI.

platform swift ui


Overview

Craft lives in your menu bar and gives you a set of focused, hotkey-driven utilities for window management and screen work. Each tool is independent — toggle on what you need, ignore the rest.

Preview

Replace these placeholders with real screenshots of the app.

Settings window Menu bar
Settings window Menu bar
FancyZones Color Picker Screen Ruler
FancyZones Color Picker Screen Ruler

Tools

Window Management

  • FancyZones — Define custom layout zones and snap windows into them by dragging. Cycle layouts with ⌥⌘Z.
  • Always On Top — Pin any window above the rest. Mirror mode floats a live copy that survives full-screen apps. Hotkey: ⌥⌘W.
  • Workspaces — Snapshot the current window layout as a named workspace and restore it later. Relaunches missing apps and repositions everything.
  • Crop and Lock — Crop any region of any window into a small live floating thumbnail. Hotkey: ⌘⌃⇧T.

Screen Tools

  • Color Picker — Sample any pixel and copy as HEX, RGB, or HSL. Hotkey: ⌥⌘C.
  • Text Extractor — Drag a rectangle, get the text. Powered by Vision OCR. Hotkey: ⌥⌘T.
  • Screen Ruler — Pixel-perfect on-screen ruler with edge snapping. Hotkey: ⌥⌘R.
  • ZoomIt — Magnify around the cursor and draw annotations live. Zoom in ⌥⌘=, zoom out ⌥⌘-.

Default Hotkeys

Tool Shortcut
Color Picker ⌥⌘C
Text Extractor ⌥⌘T
Screen Ruler ⌥⌘R
ZoomIt In / Out ⌥⌘= / ⌥⌘-
Always On Top ⌥⌘W
FancyZones cycle ⌥⌘Z
Crop and Lock ⌘⌃⇧T
Open Craft ⌘,

Requirements

  • macOS 13 Ventura or later
  • Xcode 15 or later (to build from source)
  • Permissions, granted on first use:
    • Accessibility — required for window movement, FancyZones, Always On Top, Workspaces
    • Screen Recording — required for Crop and Lock and Always On Top mirror mode

Getting Started

git clone https://github.com/dhaksdhakshin/craft.git
cd craft
open Craft.xcodeproj

Then in Xcode: select the Craft scheme and press ⌘R.

Project Structure

Craft/
├── Craft/
│ ├── CraftApp.swift # App entry, menu bar, AppDelegate
│ ├── ContentView.swift # Main split view
│ ├── Models/ # Tool, Workspace, ZoneLayout
│ ├── ViewModels/ # AppViewModel, HotkeyManager
│ ├── Services/ # Global controllers, OCR, capture, permissions
│ ├── Overlays/ # Transparent NSWindow overlays per tool
│ ├── Views/
│ │ ├── Sidebar/ # Tool list
│ │ └── Detail/ # Per-tool settings panels
│ └── Assets.xcassets
└── Craft.xcodeproj

Architecture Notes

  • SwiftUI for the settings window, AppKit for menu bar, hotkeys, and overlay windows.
  • Each tool has a dedicated *Overlay (transparent NSWindow) and a backing service.
  • GlobalToolController is the single entry point invoked from the menu bar, the sidebar toggles, and HotkeyManager global hotkeys.
  • PermissionService handles Accessibility and Screen Recording permission prompts.
  • OCR uses Apple's Vision framework (VNRecognizeTextRequest); screen capture uses ScreenCaptureKit.

Roadmap

  • Custom keyboard shortcuts per tool
  • Multi-display zone support for FancyZones
  • Export/import workspace layouts
  • Localization

License

MIT — see LICENSE if present, otherwise add one.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

Contributors

Languages

AltStyle によって変換されたページ (->オリジナル) /