Skip to content

Install

A. Arda UZAN edited this page Nov 24, 2026 · 2 revisions

As of v1.0.0

Typify ships as one archive per supported platform on the 1.0.0 release (for the source-only prerelease v1.0.0-rc.1, see Build from source). Each archive unpacks to a directory typify/ whose program is typify/bin/typify (typify/bin/typify.exe on Windows). Beside typify/bin/ it holds typify/share/typify.typify, the meta language's own declaration, which typify check typify/share/typify.typify --json checks (typify emit Typify prints that language's grammar as JSON; see Emission), typify/LICENSE.md, which carries Typify's license and the notices for Unicode 17.0 data, the Racket CS 9.3 runtime and any embedded native library inside the archive, and typify/MANIFEST.txt. On Linux it also holds typify/lib/plt/racketcs-9.3, the runtime file the program starts from (typify/lib/, where an archive has one, belongs to the program and stays beside typify/bin/). There is no Racket to install: the program runs from the files under typify/, on the platforms below.

Platforms

Platform Oldest system supported Archive
Linux x86_64 Ubuntu 22.04 and its glibc typify-linux-x86_64.tar.gz
Linux aarch64 Ubuntu 22.04 and its glibc typify-linux-aarch64.tar.gz
macOS aarch64 (Apple silicon) macOS 15 typify-macos-aarch64.tar.gz
Windows x86_64 Windows Server 2022 typify-windows-x86_64.zip

No other platform has a release archive. The oldest systems listed above are the runner images on which the releases are built and checked; older systems (including a Linux system whose glibc is older than Ubuntu 22.04's) are untested and unsupported.

Beyond the Racket CS 9.3 runtime, the native libraries shipped or loaded per platform match typify/LICENSE.md:

  • Linux x86_64 and Linux aarch64: no extra native library file is shipped or embedded. At run time the program loads the system's libc, libm, libdl, librt, libpthread and libz (libz.so.1).
  • macOS aarch64: no extra native library file is shipped or embedded. At run time the program loads macOS system libraries (libSystem, CoreFoundation, libiconv and libncurses).
  • Windows x86_64: typify.exe embeds three DLL images whole: libracketcs_exmf9c.dll (the Racket CS 9.3 runtime), longdouble.dll (compiled from the Racket 9.3 source, under Racket's MIT or Apache-2.0 license), and libiconv-2.dll (GNU libiconv 1.15, under the GNU Library General Public License, version 2 or later, reproduced in typify/LICENSE.md).

Download

The archive names carry no version. The archive of the latest release (GitHub's most recent release that is neither a prerelease nor a draft) is at https://github.com/CMZN-Consulting/typify/releases/latest/download/ASSET, where ASSET is one of the names above:

curl -fLO https://github.com/CMZN-Consulting/typify/releases/latest/download/typify-linux-x86_64.tar.gz

To pin a version, use its versioned URL, https://github.com/CMZN-Consulting/typify/releases/download/vX.Y.Z/ASSET (for example v1.0.0):

curl -fLO https://github.com/CMZN-Consulting/typify/releases/download/v1.0.0/typify-linux-x86_64.tar.gz

The first URL moves to each new latest release; the second always gives the same archive. A script or a project that must run the same program every time uses the versioned URL and checks the hashes (see Pin Typify in a project).

On Windows, PowerShell has curl.exe:

curl.exe -fLO https://github.com/CMZN-Consulting/typify/releases/download/v1.0.0/typify-windows-x86_64.zip

A browser download works too. On macOS and Windows it may make the system stop or warn before the first run; see What macOS and Windows may show.

Each release also publishes the same four verified archives and their <platform>.MANIFEST.txt files as OCI artifacts on GitHub Packages (ghcr.io/cmzn-consulting/typify-linux-x86_64:v1.0.0, typify-linux-aarch64:v1.0.0, typify-macos-aarch64:v1.0.0, typify-windows-x86_64:v1.0.0, and the multi-platform index ghcr.io/cmzn-consulting/typify:v1.0.0), pullable via oras pull ghcr.io/cmzn-consulting/typify-linux-x86_64:v1.0.0 and verified by the exact same attestation and manifest checks below.

Unpack and run

Verify the archive before you rely on it (Verify a download). Unpack into a new, empty directory that does not hold the archive: the check on the unpacked tree counts anything beside typify/ as an extra entry. On Linux and macOS (use your platform's archive name):

mkdir typify-install
tar -xpzf typify-linux-x86_64.tar.gz -C typify-install
cd typify-install
typify/bin/typify --version

On Windows, in PowerShell:

New-Item -ItemType Directory typify-install | Out-Null
Expand-Archive typify-windows-x86_64.zip -DestinationPath typify-install
Set-Location typify-install
.\typify\bin\typify.exe --version

If tar or Expand-Archive reports an error, the archive is damaged: stop and download it again.

Keep the typify/ directory whole and do not move the program out of it: it runs from the files under typify/, not from bin/typify alone. A copy of bin/typify on its own stops with failed to start and the path of a runtime file that is missing (seen on Linux); the whole directory can be moved or copied. The program prints the version and the reader-source digest on one line, for example 1.0.0 sha256: followed by 64 lowercase hexadecimal digits (the source prerelease v1.0.0-rc.1 printed 1.0 alone); --version --json gives the version and build fields. A checkout of the same commit prints the same digest. The guide in the repository, docs/install.md, repeats these steps. To run typify by name, put typify/bin on your PATH. The commands are described on Command line, and a first language to check is on Examples.

Verify a download

What each release publishes

Each archive carries a manifest, typify/MANIFEST.txt, that lists every other file in the archive. For every platform archive, a release publishes two hashes:

  • the archive hash, the sha256 of the archive;
  • the manifest hash, the sha256 of the archive's typify/MANIFEST.txt.

Both hashes are subjects of the release's build-provenance attestation, and both are listed in its release notes. That attestation is a GitHub artifact attestation: a statement signed through Sigstore under the release workflow's identity and recorded in a public transparency log, recording that the files with those sha256 values (each archive and each ASSET/typify/MANIFEST.txt) were built from a given commit by a run of this repository's release workflow. It is the provenance of the build, not a signature by the maintainer, and it does not say that anyone reviewed the commit. (An immutable GitHub release also carries GitHub's own release attestation over the release's assets; that attestation does not list MANIFEST.txt, and the commands below do not use it.)

Check the attestation

With the GitHub CLI (gh), check the archive, requiring this repository's release workflow and the release tag:

gh attestation verify typify-linux-x86_64.tar.gz --repo CMZN-Consulting/typify \
  --signer-workflow CMZN-Consulting/typify/.github/workflows/release.yml --source-ref refs/tags/v1.0.0

The manifest is also a subject of the build-provenance attestation (gh attestation verify matches by sha256), so once the archive is unpacked into its new directory, the same command checks it from the directory that holds typify/:

gh attestation verify typify/MANIFEST.txt --repo CMZN-Consulting/typify \
  --signer-workflow CMZN-Consulting/typify/.github/workflows/release.yml --source-ref refs/tags/v1.0.0

For another version, change refs/tags/v1.0.0 to that version's tag. If you have independently pinned the release commit, add --source-digest COMMIT. The command computes the file's sha256, finds the build-provenance attestations for that digest, checks their signatures, and checks that their certificate names CMZN-Consulting/typify, .github/workflows/release.yml and the tag (--repo alone would accept an attestation from any workflow of the repository). It exits with status 0 when that holds and fails on an altered file, another repository, another workflow or another ref. Add --format json to print the verified statement and certificate fields, including sourceRepositoryDigest and buildSignerURI.

gh has to be signed in to GitHub (gh auth login, or a token in GH_TOKEN). Without a sign-in and without --bundle, the command stops before it checks anything, with exit status 4. A bundle saved earlier by gh attestation download (which itself needs a sign-in), given with --bundle FILE, is checked without a sign-in, with --repo compared only to the repository names recorded in the attestation's certificate at signing.

Check a signed tag (unsigned in 1.0.x)

Release tags are to be signed with a maintainer's key, which will be published on this page under Maintainer key once it exists. No such key exists yet, so the tags of 1.0.x are unsigned, and the release workflow does not check a tag's signature; for a 1.0.x archive, the build-provenance attestation is the check. The tag v1.0.0-rc.1 (along with the earlier tags in the repository's history) is unsigned: git verify-tag v1.0.0-rc.1 stops with error: no signature found.

Once a tag is signed, make the maintainer's public key known to git (a GPG key in your keyring, or an SSH key listed in the file named by git config gpg.ssh.allowedSignersFile) and check the tag in a clone of the repository:

git clone https://github.com/CMZN-Consulting/typify.git
cd typify
git verify-tag vX.Y.Z
git rev-list -n 1 vX.Y.Z

git verify-tag succeeds only when the tag's signature is good and git trusts the public key that made it. A Good ... signature line alone is not a pass: for an SSH signature, git verify-tag prints No principal matched. and exits with status 1 unless the file named by gpg.ssh.allowedSignersFile lists the maintainer's key, and it stops with an error when that setting is missing. git rev-list -n 1 prints the commit the tag names; it must be the commit the attestation says the archive was built from.

Check a sha256 by hand

When you already hold the expected archive hash, from the attestation or from a pin you committed earlier, compute the archive's own and compare. On Linux:

sha256sum typify-linux-x86_64.tar.gz

On macOS:

shasum -a 256 typify-macos-aarch64.tar.gz

On Windows, in PowerShell:

Get-FileHash -Algorithm SHA256 typify-windows-x86_64.zip

Get-FileHash prints the hash in upper case; compare the two without regard to case.

Check the unpacked tree

The archive hash checks the archive. Once it is unpacked, the program runs from the files under typify/, and a change to one of them leaves the archive hash untouched. The manifest checks the unpacked tree, so it is what a project checks before each use of a cached copy (Pin Typify in a project). The tree check alone cannot tell a rewritten manifest from a genuine one: always check MANIFEST.txt's attestation or sha256 first.

MANIFEST.txt holds one line per file in the archive except itself, sorted by path in UTF-8 byte order (directories are not listed). Each line is sha256 mode path, separated by two spaces: the file's sha256; its mode, four octal digits, 0755 or 0644; and its path from the archive root, such as typify/bin/typify or typify/share/typify.typify. On Windows the unpacked files carry no Unix modes and every file in the zip is written with 0644, so every line of its manifest reads 0644 (only the archive hash covers the zip's entry attributes). The manifest hash is the sha256 of MANIFEST.txt itself.

Every step below runs from the new, empty directory that now holds typify/ and nothing else. First, check the manifest: verify its attestation (Check the attestation), or compute its sha256 and compare it with the manifest hash from the attestation or from your pin. On Linux:

sha256sum typify/MANIFEST.txt

On macOS, run shasum -a 256 typify/MANIFEST.txt instead.

Then check every file against its line. On Linux and macOS, the check uses sha256sum when the system has it and shasum -a 256 otherwise, and find -perm to compare a mode. It reads each path as the manifest gives it, from the archive root, and fails when the current directory holds no typify/MANIFEST.txt or the manifest lists no file. It prints mismatch: for each listed file whose sha256 differs (including a missing listed file, after a file-not-found message) and mode: for each whose mode differs, counts every entry under typify/ that is not a directory, typify/MANIFEST.txt excepted, and compares that count with the number of lines; it refuses entries beside typify/, links and special files, hard links, a directory whose mode is not 0755, an empty directory, and a MANIFEST.txt whose mode is not 0644; and it ends with ok or FAILED. An extra file inside typify/ is reported by the two counts, not by name:

if command -v sha256sum >/dev/null; then
  sha256_of() { sha256sum "$1"; }
else
  sha256_of() { shasum -a 256 "$1"; }
fi
BAD=0
LISTED=0
[ -f typify/MANIFEST.txt ] || { echo "no typify/MANIFEST.txt here"; BAD=1; }
while read -r WANT MODE FILE; do
  LISTED=$((LISTED + 1))
  HAVE=$(sha256_of "$FILE" | cut -d ' ' -f 1)
  if [ "$HAVE" != "$WANT" ]; then
    echo "mismatch: $FILE"
    BAD=1
  elif [ -z "$(find "$FILE" -perm "$MODE")" ]; then
    echo "mode: $FILE"
    BAD=1
  fi
done < typify/MANIFEST.txt
[ "$LISTED" -gt 0 ] || BAD=1
FOUND=$(( $(find typify ! -type d ! -path typify/MANIFEST.txt | wc -l) ))
if [ "$FOUND" -ne "$LISTED" ]; then
  echo "files: $FOUND, listed: $LISTED"
  BAD=1
fi
[ "$(ls -A)" = typify ] || { echo "entries beside typify/"; BAD=1; }
[ -z "$(find typify ! -type f ! -type d)" ] || { echo "links or special files"; BAD=1; }
[ -z "$(find typify -type f -links +1)" ] || { echo "hard links"; BAD=1; }
[ -z "$(find typify -type d ! -perm 0755)" ] || { echo "directory modes"; BAD=1; }
[ -z "$(find typify -type d -empty)" ] || { echo "empty directories"; BAD=1; }
[ -n "$(find typify/MANIFEST.txt -perm 0644)" ] || { echo "mode: typify/MANIFEST.txt"; BAD=1; }
if [ "$BAD" -eq 0 ]; then echo ok; else echo FAILED; fi
[ "$BAD" -eq 0 ]

The loop's exit status is 0 only when it prints ok. It does not follow a link to see where it points: a link, a hard link or a special file anywhere under typify/ fails it. Unless it runs as root or is given -p, tar clears from the modes it unpacks the bits your umask clears; under a umask such as 027 or 077, unpack with tar -xpzf ARCHIVE, as above, before you run the loop.

On Windows, in PowerShell, run the same two steps from the same new directory. The unpacked files carry no Unix modes, so this check compares the sha256 column and the number of entries, and it also refuses entries beside typify/, links, and empty directories. Like the shell check, it prints FAILED when there is no typify/MANIFEST.txt in the current directory or the manifest lists no file; unlike the shell check, it sets no exit status, so a script checks that its last output line is ok:

(Get-FileHash -Algorithm SHA256 typify/MANIFEST.txt).Hash.ToLower()
$bad = 0
if (-not (Test-Path -LiteralPath typify/MANIFEST.txt -PathType Leaf)) { 'no typify/MANIFEST.txt here'; $bad = 1 }
$lines = @(Get-Content typify/MANIFEST.txt)
if ($lines.Count -eq 0) { $bad = 1 }
foreach ($line in $lines) {
  $want, $mode, $file = $line -split '  ', 3
  $have = (Get-FileHash -Algorithm SHA256 -LiteralPath $file -ErrorAction SilentlyContinue).Hash
  if ($have -ne $want) { "mismatch: $file"; $bad = 1 }
}
$manifest = (Get-Item -LiteralPath typify/MANIFEST.txt).FullName
$found = @(Get-ChildItem typify -Recurse -Force | Where-Object { (-not $_.PSIsContainer -or $_.LinkType) -and $_.FullName -ne $manifest }).Count
if ($found -ne $lines.Count) { "files: $found, listed: $($lines.Count)"; $bad = 1 }
$beside = @(Get-ChildItem -Force . | Where-Object { $_.Name -ne 'typify' })
if ($beside.Count -gt 0 -or -not (Test-Path -LiteralPath typify -PathType Container)) { 'entries beside typify/'; $bad = 1 }
$links = @(Get-ChildItem typify -Recurse -Force | Where-Object { $_.LinkType })
if ($links.Count -gt 0) { 'links in typify/'; $bad = 1 }
$empty = @(Get-ChildItem typify -Recurse -Force -Directory | Where-Object { @(Get-ChildItem -LiteralPath $_.FullName -Force).Count -eq 0 })
if ($empty.Count -gt 0) { 'empty directories'; $bad = 1 }
if ($bad -eq 0) { 'ok' } else { 'FAILED' }

Both checks were run on a stand-in archive with the release layout, unpacked into a new empty directory each time (the shell check with GNU tools on Linux, the PowerShell check with PowerShell 7.7 on Linux). Each printed ok on the genuine tree and FAILED for an altered file, a removed file, an extra file, an entry beside typify/, the archive left beside typify/, an empty directory and a link; the shell check also refused a changed file mode, a directory mode of 0775, a hard link and a MANIFEST.txt of mode 0666. Neither check has been run by hand on macOS or on Windows; the release workflow's docs job extracts and runs them on the Linux, macOS and Windows runner images.

Why the release notes are not a check on their own

The release notes are published by the same account as the archives, and GitHub allows the title and notes of a published immutable release to be edited. A match with the hashes they list shows that the file you hold is byte-identical to the one the notes list, so the download was not truncated or corrupted; it does not show who built it. Compare against something the release page alone does not supply: the build-provenance attestation, a signed tag (the tags of 1.0.x are not signed), or a hash you recorded and committed before.

How a release is built

  • The release workflow creates a draft release; when published with GitHub's release immutability enabled (as v1.0.0-rc.1 was), GitHub locks its tag and archive assets so they do not change after publication, while its title and notes remain editable.
  • Every archive is built by scripts/release.sh with the CI actions pinned by commit SHA and the Racket 9.3 installer pinned by sha256 (on GitHub-hosted runner images named by label), in build jobs that hold no secrets.
  • Before publication, a second, independent build is made on each platform and compared with the first. Their behaviour on the repository's corpora must be byte-identical, or nothing is published. Whether the archive bytes themselves are identical is reported; it does not block in 1.0.
  • At every tag, four tampered archives per platform (a changed byte, an extra file, a missing file and a rewritten manifest) are run through the archive hash, the manifest hash, the tree check and gh attestation verify, and each must be refused.

Maintainer key

No maintainer key is published yet, and the tags of 1.0.x are unsigned. When the key exists, it will be published here, in this section.

What macOS and Windows may show

The programs in the 1.0 archives carry no publisher's code signature, and the macOS program is not notarized. Both systems may stop or warn before the first run of such a program that came from a browser download. Verify the archive first in every case. When code signing is added, the attestation covers the signed archive.

What the two systems show for the typify program itself has not been observed. The release's automated docs run on macOS 15 and Windows Server 2022 checks that the unpacked program runs; it does not record GUI dialogs or download marks. Until a run records that, the notes below describe what Apple and Microsoft document, not what was seen for typify. Whether a download made with curl or curl.exe, or the unpacking of an archive, leaves a download mark on the files depends on the tool and the system, and this page does not promise either way.

macOS

Apple's Platform Security guide says that, for software from outside the App Store, Gatekeeper "verifies that the software is from an identified developer, is notarized by Apple to be free of known malicious content, and hasn’t been altered", and that it "requests user approval before opening downloaded software for the first time". Apple Support, in "Safely open apps on your Mac", describes opening an app that has not been notarized or is from an unidentified developer: after trying to open it, open System Settings, click Privacy & Security, scroll down, click Open Anyway, and confirm.

To run typify, after verifying the archive:

  1. Follow Apple's steps above. Apple describes them for apps; whether macOS shows them for the typify command-line program has not been observed.

  2. Or remove the quarantine attribute from the unpacked directory (man xattr describes -d and -r; neither Apple page above names com.apple.quarantine, and what removing it does for typify has not been observed):

    xattr -dr com.apple.quarantine typify

Windows

Microsoft documents that Smart App Control, on a Windows 11 machine where it is on, asks a cloud security service about an app first and checks the signature only when the service cannot make a confident prediction: "If the app is unsigned, or the signature is invalid, Smart App Control will consider it untrusted and block it for your protection." Microsoft's Smart App Control page says there is currently no way to bypass it for individual apps, and offers turning Smart App Control off in Windows Security or using a signed app.

Microsoft's Unblock-File page says that the cmdlet "removes the Zone.Identifier alternate data stream, which has a value of 3 to indicate that it was downloaded from the internet", the mark that files downloaded from the internet carry. To remove that mark after verifying the archive, run this in PowerShell before unpacking:

Unblock-File typify-windows-x86_64.zip

or this on an unpacked directory:

Get-ChildItem -Recurse typify | Unblock-File

Microsoft's pages do not say that removing this mark lifts a Smart App Control block or a SmartScreen warning (Unblock-File documents downloaded files with PowerShell scripts as its example, and the Smart App Control page offers only turning it off or a signed app). Microsoft Defender SmartScreen may also warn about a downloaded program that has no established reputation; its wording for typify has not been recorded.

Pin Typify in a project

A project that runs Typify, in its build, its CI or its own install, should not take whatever the latest release is. It commits a pin and installs only what matches it.

The pin, committed in the project's repository:

  • the release's tag, vX.Y.Z, which the versioned URL needs;
  • the Typify commit SHA of the release, the commit the attestation names, and the commit a signed tag names once tags are signed;
  • the archive hash of each platform archive the project supports;
  • the manifest hash of each of those archives.

The project's install:

  1. Takes the archive for the platform it runs on, and stops on a platform the pin does not list.
  2. Downloads the archive by the versioned URL of the pinned tag.
  3. Checks the archive's sha256 against the pin, and stops on a mismatch.
  4. Unpacks it into a new empty directory inside a cache keyed by that hash.
  5. Checks the sha256 of typify/MANIFEST.txt against the pinned manifest hash and every file against its line (Check the unpacked tree), and checks both again on every use, not only at install.
  6. Never builds Typify, and never chooses between downloading and building by what the machine has installed, such as whether Racket is present.

A user of the project then needs no Racket.

To move the pin to a new release, take the new archive and manifest hashes from the release's build-provenance attestation, and, where the project's CI rebuilds Typify, from that rebuild; never from the release notes or a file beside the release. Where the project's CI has Racket, it builds the new commit on the four platforms and refuses the update unless that build behaves identically on Typify's corpora. Make the change show the old and new hashes, the attestation's subjects and, when there is one, the rebuild's result, so that a reviewer sees what moved.

Build from source

Building Typify from source is for contributors (and for trying the source-only v1.0.0-rc.1 prerelease) and needs Racket 9.3 CS. A user of the 1.0.0 archives never needs to build it. See Contributing.

Clone this wiki locally