scriptable.com

Implementation-focused, hands-on tutorials for software engineers.

To get the source, just point your LLM at an article and ask it to build it.

Call a REST API from Claude Code with UTCP, Without Writing an MCP Server

Giving Claude Code typed tools for a REST API often means writing a small Model Context Protocol (MCP) server for that API: a program, known as a wrapper, that exposes each endpoint (a method on a URL path) as a tool and forwards each call. A tool here is a named action with typed inputs that a model can ask to run. Each API then needs its own wrapper, and each wrapper has to be kept in step with the API. ...

29 min

Clone Your Own Voice Locally with Qwen3-TTS on macOS

This article has you record about seven seconds of your own voice and use it to make your Mac read any text file aloud in that voice. make speak TEXT=text/note.txt writes out/note.wav, generated on the Mac by Alibaba’s Qwen3-TTS, an open-weight model (its weights are free to download and run). There is no hosted API, and once the models are downloaded every make target except download runs with Hugging Face’s offline mode on, so nothing is fetched. A second command, make check, checks the result in numbers you can read instead of judging by ear. Whisper, OpenAI’s open speech-recognition model, transcribes the clip for comparison with your text, and the clip’s voice is scored against your recording and against the same model reading with no reference. ...

45 min

Run Inkling 2 Mini Locally with MLX on macOS

Inkling 2 Mini is the small open-weights model Thinking Machines released on 2026-11-20: 26.4 billion parameters, text and image input, Apache 2.0, and a stated minimum of an Apple Silicon Mac with 32 GB of memory. This article gets it running on your Mac from its original weights, with no conversion step. You will have it answering prompts in the terminal, reading a chart you generated yourself and getting it right, serving an OpenAI-compatible API on localhost that your own Python code calls, and calling a tool you wrote to answer a question it could not answer alone. ...

45 min

Make npm and uv Wait Before Installing New Releases on macOS

When an attacker takes over a maintainer’s account and publishes a poisoned version of a popular package, the poisoned version usually lives for hours, not weeks. Somebody notices, the registry pulls it, and a clean version follows. The projects that get hurt are the ones that happened to install during those hours. A release-age gate closes off those hours: the package manager refuses to pick any version younger than a set number of days, so a release has to survive public scrutiny for a while before it can reach your machine. ...

31 min

Build a 3D Game with RealityKit in a Swift Monorepo

The monorepo from Add Google AdMob Ads to iOS Apps in a Swift Monorepo holds three iOS apps built from shared packages, and the newest one, Catcher, is a 2D game. RealityKit is Apple’s framework for 3D: it draws a scene of 3D objects lit by virtual lights and seen through a virtual camera, moves them with a physics engine, and reports when they collide. It ships with iOS and Xcode, and SwiftUI shows a RealityKit scene through a view called RealityView. Apple now recommends it over SceneKit, its older 3D framework, deprecated in 2025. ...

38 min

Add Google AdMob Ads to iOS Apps in a Swift Monorepo

The monorepo from Build a 2D Game with SpriteKit in a Swift Monorepo holds three iOS apps built from shared packages. None of them earns anything. AdMob is Google’s service for showing ads in mobile apps: an app asks Google’s SDK for an ad, the SDK fetches one and draws it, and the app’s owner is paid for the ads people see and tap. Adding it means a third-party SDK, a consent question that must be settled before the first ad request, Apple’s tracking prompt, Info.plist entries Apple and Google check for, and ad code that is easy to copy into every app slightly differently. ...

44 min

Build a 2D Game with SpriteKit in a Swift Monorepo

The monorepo from Version, Archive and Tag Each App in a Swift Monorepo ships two list apps that share packages, a Makefile, and one release process. A third app shows whether that structure holds up for something quite different. SpriteKit, Apple’s framework for 2D games, draws a scene of shapes and images many times a second, moves them with a physics engine, and reports when two of them touch. It comes with iOS and Xcode; there is nothing to install. ...

28 min

Version, Archive and Tag Each App in a Swift Monorepo

The monorepo from A Swift Monorepo with an Xcode Workspace and Local Packages builds two iOS apps from shared packages, but it cannot release them one at a time. Both apps report version 1.0, build 1. Their version numbers are typed into each project’s target settings, where a release would have to edit them in Xcode. Shopping has no display name of its own, neither app has an icon, and make archive keeps no record of what it shipped or when. ...

29 min

A Swift Monorepo with an Xcode Workspace and Local Packages

The to-do app from the earlier articles in this series lives in one Xcode project with one package beside it. A second app that needs the same code has two poor options: copy the files, or point a second project at a folder inside the first. A monorepo, one repository holding several apps and the code they share, avoids both, and an Xcode workspace ties it together: it lists projects and packages, opens them in one window, and builds them as one. ...

32 min

The Xcode Build Process from the Command Line, with make

Pressing Run in Xcode hides a chain of decisions: which scheme to use, which targets to build and in what order, which build configuration, which device, where the output goes, and which of several hundred build settings apply. When a build behaves differently in Xcode than on the command line, or a setting you changed seems to do nothing, the cause is almost always one of those hidden choices. This article makes each one visible with xcodebuild, the command-line tool behind Xcode’s Run button, using the todo-list folder from Build a Swift Package with Swift Package Manager on macOS. You will read the project’s schemes, targets, configurations and destinations from the terminal; find where each build lands; see which build settings apply and where each value came from; and put your own settings in .xcconfig files, plain-text files of build settings that Xcode layers under the project’s own. Those files give Debug builds the name To-Do Dev on the simulator’s home screen and Release builds the name To-Do, so you can tell at a glance which configuration you are running. The Makefile grows a CONFIG switch, a settings make target that prints the settings that matter, and an archive make target that produces the Release build you would later sign and upload. Every later article in this series uses this Makefile. ...

20 min