Codarium: The Mac snippet library, with text and code together

Codarium is a native macOS app for collecting, organizing, and reusing code snippets: rich text notes with color blocks in 36 languages, advanced search, shortcuts in any app, iCloud and GitHub Gist sync, and protected snippets. No AI, no accounts.

Those who write code every day accumulate the same things: the Git command they never remember, the SQL query from the monthly report, the nginx configuration for that server, the Swift snippet copied from an old project. They end up scattered among notes, text files, forgotten gists, and terminal history, and when they're needed, they're gone.

Codarium is the one-stop shop for all these snippets: a native Mac app where every snippet is a real note, with formatted text, explanations, and colored code blocks, and where code can be copied, pasted, or run instantly, from any app.

Welcome to Codarium

Codarium with the list of snippets and a code block.

Real notes, not just code

Each snippet is a rich text document: titles, bold text, lists, tables, links, in-text images, and as many code blocks as needed, each with its own language. Highlighting covers 36 languages, from Swift to Python, SQL to YAML, with 13 color themes and the option to create your own. The language is automatically recognized when you paste the code.

A snippet can have multiple tabs , to hold together the client and server of an example or the variants of a configuration, and attachments of any kind. With [[ you link one snippet to another, like in a personal wiki.

Long blocks collapse to the first line with an arrow, and reopen automatically when you move the cursor over them. Clicking Copy always retrieves the entire code.

Screenshot

Organize without effort

Folders and subfolders with colors and icons, colored tags, favorites, pinned snippets, and manual sorting with drag-and-drop. Smart groups populate automatically according to the rules you choose: language, tag, folder, modification date, protected snippets, linked to a gist, or with an abbreviation.

Templates are starting snippets with their placeholders, kept separate from the library.

Codarium smart group and sidebar

Find everything, right away

The search looks at the title, the text of each entry, tags, languages, and attachment names. It can be refined with a simple syntax: #tag , lang:swift , in:cartella , is:preferito , has:allegati , "exact phrases," and -esclusioni . If a word doesn't match, Codarium searches for similar words and forgives typos.

With ⇧⌘K, you can open the command palette : type a few letters and open a snippet with the title or execute any command, without touching the mouse. Snippets also appear in Spotlight and the desktop widget .

Code where you need it, in any app

Codarium does not force you to open its window:

  • from the icon in the menu bar or with a global shortcut (⌃⌥ Space) a quick search panel opens: Enter copies the code, ⌥Enter pastes it directly into the app you were writing in;
  • abbreviations transform a keyword like ;fetch , written in any app, into the snippet code;
  • the Dock menu shows favorites and recently used snippets, just a click away;
  • The Share menu and Services menu create a snippet from text or links in other apps, and Shortcuts actions let you automate everything.

Placeholders make code reusable: {{host}} prompts for a value when copying, {{ambiente:dev|staging|prod}} offers a choice, {{data:dd/MM/yyyy}} compiles itself.

Quick search panel from the menu bar

Code Tools

By right-clicking on a block: format JSON, XML, HTML, and SQL, and control YAML, adjust indents or compact JSON, compare to the clipboard, copy with colors for Keynote or Pages, create code as an image, and open in VS Code, Xcode, Zed, and other editors. Shell scripts can be run in Terminal with one click. And from a code screenshot, Codarium extracts text using macOS recognition, directly on your Mac.

Synchronization and security

  • iCloud keeps your library the same across all your Macs.
  • Each tab has its own version history , so you can go back at any time.
  • Automatic backups can be encrypted with a password , and Quick Look displays their contents from the Finder.
  • Protected snippets are encrypted with a master password and open with Touch ID.
  • The synchronized Markdown folder keeps a copy of the library in .md files, to be put under Git or opened in Obsidian, and reports changes made to the files back to Codarium.
  • Snippets published as GitHub Gists remain linked: changes are pushed to the gist, and changes made on GitHub are returned to Codarium.

Coming from another app

Codarium imports from SnippetsLab, Raycast, massCode, Quiver, Dash, Alfred, TextExpander, Espanso, VS Code, Xcode, JetBrains, Sublime Text, GitHub Gist, Markdown files, RTF, HTML and code files. Export to Markdown, HTML, PDF, code files, and VS Code, Xcode, Raycast, Alfred, and GitHub Gist formats.

import codarium
Screenshot

Made for Mac, and for you

Codarium is a native app, fast even with thousands of snippets, accessible with VoiceOver and translated into Italian, English, Spanish, French, and German. It doesn't use artificial intelligence, doesn't require an account, and doesn't send your snippets to any server: they stay on your Mac, and on iCloud or GitHub only if you choose.

Who is it intended for?

Codarium is designed for developers, DevOps, system administrators, and anyone who works with code and commands every day and wants to have their best snippets always at hand: organized, instantly searchable, and ready to paste wherever you need them.