# Open Source

URL: https://sindresorhus.com/open-source

Open-source projects by Sindre Sorhus that many people use, from Node.js libraries and command-line tools to code quality tools and Swift packages.

## HTTP

Requests and connections, in Node.js and the browser.

- [Got](https://github.com/sindresorhus/got): Human-friendly and powerful HTTP requests for Node.js. (TypeScript)
- [Ky](https://github.com/sindresorhus/ky): A tiny and elegant HTTP client based on the Fetch API. (TypeScript)
- [normalize-url](https://github.com/sindresorhus/normalize-url): Normalize a URL. (JavaScript)
- [fetch-extras](https://github.com/sindresorhus/fetch-extras): Useful utilities for working with Fetch. (JavaScript)

## Promises and Async

Small packages for async code in JavaScript.

- [p-limit](https://github.com/sindresorhus/p-limit): Run promise-returning and async functions with limited concurrency. (JavaScript)
- [p-queue](https://github.com/sindresorhus/p-queue): Promise queue with concurrency control. (TypeScript)
- [p-map](https://github.com/sindresorhus/p-map): Map over promises concurrently. (JavaScript)
- [p-retry](https://github.com/sindresorhus/p-retry): Retry a promise-returning or async function. (JavaScript)
- [p-throttle](https://github.com/sindresorhus/p-throttle): Throttle promise-returning and async functions. (JavaScript)
- [p-progress](https://github.com/sindresorhus/p-progress): Create a promise that reports progress. (TypeScript)
- [p-memoize](https://github.com/sindresorhus/p-memoize): Memoize promise-returning and async functions. (TypeScript)
- [p-event](https://github.com/sindresorhus/p-event): Promisify an event by waiting for it to be emitted. (JavaScript)

## Command-Line Tools

Tools to use in the terminal.

- [np](https://github.com/sindresorhus/np): A better “npm publish”. (JavaScript)
- [Pure](https://github.com/sindresorhus/pure): Pretty, minimal, and fast Zsh prompt. (Shell)
- [fkill](https://github.com/sindresorhus/fkill-cli): Fabulously kill processes. Cross-platform. (JavaScript)
- [emoj](https://github.com/sindresorhus/emoj): Find relevant emoji from text on the command-line. (TypeScript)

## Making Command-Line Apps

Colors, spinners, boxes, and text for your own command-line apps.

- [Chalk](https://github.com/chalk/chalk): Terminal string styling done right. (JavaScript)
- [Ora](https://github.com/sindresorhus/ora): Elegant terminal spinner. (JavaScript)
- [meow](https://github.com/sindresorhus/meow): A helper for command-line apps, like for their arguments and help text. (JavaScript)
- [boxen](https://github.com/sindresorhus/boxen): Create boxes in the terminal. (JavaScript)
- [log-update](https://github.com/sindresorhus/log-update): Log by overwriting the previous output in the terminal, like for progress bars. (JavaScript)
- [string-width](https://github.com/sindresorhus/string-width): Get the visual width of a string. (JavaScript)
- [figures](https://github.com/sindresorhus/figures): Unicode symbols with fallbacks for older terminals. (JavaScript)
- [cli-truncate](https://github.com/sindresorhus/cli-truncate): Truncate a string to fit a specific number of columns. (JavaScript)

## Files

Find, copy, move, and delete files from Node.js.

- [globby](https://github.com/sindresorhus/globby): User-friendly glob matching. (JavaScript)
- [file-type](https://github.com/sindresorhus/file-type): Detect the file type of a file, stream, or data. (JavaScript)
- [find-up](https://github.com/sindresorhus/find-up): Find a file or directory by walking up parent directories. (JavaScript)
- [trash](https://github.com/sindresorhus/trash): Move files and directories to the trash. (JavaScript)
- [del](https://github.com/sindresorhus/del): Delete files and directories. (JavaScript)
- [cpy](https://github.com/sindresorhus/cpy): Copy files. (JavaScript)
- [move-file](https://github.com/sindresorhus/move-file): Move a file, directory, or symlink, also to another device. (JavaScript)
- [tempy](https://github.com/sindresorhus/tempy): Get a random temporary file or directory path. (JavaScript)

## Processes and the System

Run processes, open things, and use the clipboard from Node.js.

- [Execa](https://github.com/sindresorhus/execa): Process execution for humans. (JavaScript)
- [open](https://github.com/sindresorhus/open): Open URLs, files, and executables. Cross-platform. (JavaScript)
- [clipboardy](https://github.com/sindresorhus/clipboardy): Access the system clipboard (copy and paste). (JavaScript)
- [get-port](https://github.com/sindresorhus/get-port): Get an available TCP port. (JavaScript)

## Strings and Formatting

Change strings and show numbers in a format that people can read.

- [slugify](https://github.com/sindresorhus/slugify): Slugify a string. (JavaScript)
- [camelcase](https://github.com/sindresorhus/camelcase): Convert a dash, dot, underscore, or space separated string to camelCase. (JavaScript)
- [pretty-bytes](https://github.com/sindresorhus/pretty-bytes): Convert bytes to a human-readable string: 1337 → 1.34 kB. (JavaScript)
- [pretty-ms](https://github.com/sindresorhus/pretty-ms): Convert milliseconds to a human-readable string: 1337000000 → 15d 11h 23m 20s. (JavaScript)

## Objects and Caches

Work with nested objects, cache results, and delay function calls.

- [dot-prop](https://github.com/sindresorhus/dot-prop): Get, set, or delete a property of a nested object with a dot path. (JavaScript)
- [debounce](https://github.com/sindresorhus/debounce): Delay function calls until a set time elapses after the last invocation. (JavaScript)
- [quick-lru](https://github.com/sindresorhus/quick-lru): Simple “Least Recently Used” (LRU) cache. (JavaScript)
- [memoize](https://github.com/sindresorhus/memoize): Memoize functions, so calls with the same input are faster. (TypeScript)

## The Web

For web pages: URLs, the clipboard, the DOM, and CSS.

- [query-string](https://github.com/sindresorhus/query-string): Parse and stringify URL query strings. (JavaScript)
- [copy-text-to-clipboard](https://github.com/sindresorhus/copy-text-to-clipboard): Copy text to the clipboard in modern browsers. (JavaScript)
- [element-ready](https://github.com/sindresorhus/element-ready): Detect when an element is ready in the DOM. (JavaScript)
- [github-markdown-css](https://github.com/sindresorhus/github-markdown-css): The minimal amount of CSS to replicate the GitHub Markdown style. (CSS)

## Images and Screenshots

Screenshots of websites, and images in code and in the terminal.

- [capture-website](https://github.com/sindresorhus/capture-website): Capture screenshots of websites. (JavaScript)
- [image-dimensions](https://github.com/sindresorhus/image-dimensions): Get the dimensions of an image. (JavaScript)
- [terminal-image](https://github.com/sindresorhus/terminal-image): Display images in the terminal. (JavaScript)

## Linting

Linters and ESLint rules for JavaScript, TypeScript, CSS, and Markdown.

- [XO](https://github.com/xojs/xo): JavaScript and TypeScript linter with great defaults. (TypeScript)
- [eslint-plugin-unicorn](https://github.com/sindresorhus/eslint-plugin-unicorn): More than 300 powerful ESLint rules. (JavaScript)
- [eslint-config-xo](https://github.com/xojs/eslint-config-xo): The ESLint config of XO. (JavaScript)
- [eslint-package-json](https://github.com/sindresorhus/eslint-package-json): Powerful ESLint rules for package.json. (JavaScript)
- [eslint-cssicorn](https://github.com/sindresorhus/eslint-cssicorn): Powerful ESLint rules for CSS. (JavaScript)
- [eslint-node-test](https://github.com/sindresorhus/eslint-node-test): ESLint rules for the Node.js built-in test runner (node:test). (JavaScript)
- [awesome-lint](https://github.com/sindresorhus/awesome-lint): Linter for Awesome lists. (JavaScript)
- [eslint-formatter-pretty](https://github.com/sindresorhus/eslint-formatter-pretty): Pretty ESLint formatter. (JavaScript)

## Testing and Types

A test runner, and types and checks for JavaScript and TypeScript.

- [AVA](https://github.com/avajs/ava): Node.js test runner that lets you develop with confidence. (JavaScript)
- [type-fest](https://github.com/sindresorhus/type-fest): A collection of essential TypeScript types. (TypeScript)
- [ts-extras](https://github.com/sindresorhus/ts-extras): Essential utilities for TypeScript projects. (TypeScript)
- [test-extras](https://github.com/sindresorhus/test-extras): Assertions and utilities that make node:test better. (JavaScript)

## File Formats

Two file formats that I made, with their specs. Both are drafts. The Swift implementation of SOML is also listed.

- [SOML](https://github.com/soml-lang/soml): A config format for humans. The spec is a draft.
- [Simple Color Palette](https://github.com/simple-color-palette/spec): A minimal JSON-based file format for color palettes. The spec is a work in progress.
- [SOML Swift](https://github.com/soml-lang/SOMLSwift): A Swift implementation of the SOML format. (Swift)

## Swift Packages

Packages for Swift and Mac apps.

- [Defaults](https://github.com/sindresorhus/Defaults): Swifty and modern UserDefaults. (Swift)
- [KeyboardShortcuts](https://github.com/sindresorhus/KeyboardShortcuts): Add user-customizable global keyboard shortcuts to your macOS app. (Swift)
- [LaunchAtLogin](https://github.com/sindresorhus/LaunchAtLogin-Modern): Add “Launch at Login” to your macOS app in seconds. (Swift)
- [DockProgress](https://github.com/sindresorhus/DockProgress): Show progress in the Dock icon of your app. (Swift)
- [Regex](https://github.com/sindresorhus/Regex): Swifty regular expressions. (Swift)
- [Percentage](https://github.com/sindresorhus/Percentage): A percentage type for Swift. (Swift)
- [DSStore](https://github.com/sindresorhus/DSStore): Read and write macOS .DS_Store files in Swift. (Swift)
- [ExtendedAttributes](https://github.com/sindresorhus/ExtendedAttributes): Manage extended attributes in Swift. (Swift)

## Mac Tools

Command-line tools and packages for macOS.

- [create-dmg](https://github.com/sindresorhus/create-dmg): Create a good-looking DMG for your macOS app in seconds. (JavaScript)
- [macos-trash](https://github.com/sindresorhus/macos-trash): Move files and folders to the trash from the command line. (Swift)
- [macos-wallpaper](https://github.com/sindresorhus/macos-wallpaper): Manage the desktop wallpaper on macOS. (Swift)

## Apps

My apps on GitHub.

- [Gifski](https://github.com/sindresorhus/Gifski): Convert videos to high-quality GIFs on your Mac. (Swift)
- [Pasteboard Viewer](https://github.com/sindresorhus/Pasteboard-Viewer): Inspect the system pasteboards. (Swift)

## Awesome Lists

Lists of good things about a topic, like Node.js packages and sci-fi.

- [Awesome](https://github.com/sindresorhus/awesome): Awesome lists about all kinds of interesting topics.
- [Awesome Node.js](https://github.com/sindresorhus/awesome-nodejs): Delightful Node.js packages and resources.
- [Awesome npm](https://github.com/sindresorhus/awesome-npm): Awesome npm resources and tips.
- [Awesome Sci-Fi](https://github.com/sindresorhus/awesome-scifi): Sci-fi worth consuming.

## Just for Fun

Small packages that make code more fun.

- [cat-names](https://github.com/sindresorhus/cat-names): Get popular cat names. (JavaScript)
- [dog-names](https://github.com/sindresorhus/dog-names): Get popular dog names. (JavaScript)
- [cows](https://github.com/sindresorhus/cows): ASCII cows. (JavaScript)
- [superb](https://github.com/sindresorhus/superb): Get superb-like words. (JavaScript)