---
title: "WIT Cheat Sheet: Wasm Interface Types | Cosmonic"
description: "Quick-reference cheat sheet for WebAssembly Interface Types (WIT)."
canonical: "https://cosmonic.com/blog/wit-cheat-sheet/"
---

[Bailey Hayes](https://cosmonic.com/blog/team/bailey-hayes/)

| Oct 10, 2023| 2 min read

# WIT Cheat Sheet: Wasm Interface Types

![WIT Cheat Sheet: Wasm Interface Types](https://cosmonic.com/blog/assets/images/witcheatsheet-da734a78acead4a89b2e9d897e56cf0c.webp)

[WIT](https://github.com/WebAssembly/component-model/blob/main/design/mvp/WIT.md), or Wasm Interface Types, allows WebAssembly modules to communicate with each other using complex data types. WIT is a language agnostic interface definition language (IDL) that enables composing WebAssembly components, regardless of source language, using language-specific bindings. If you're using a WIT-generated set of language bindings it will feel just like using a regular language SDK. If you're writing your own WIT, then this guide is for you!

Working with WIT allows us to connect multi-language components and dynamically swap out those components, according to the needs of our microservice or application. The importance of WIT can’t be understated so we put together this handy cheatsheet which guides you through the WIT syntax, available types and most commonly used interfaces when it comes to Wasm application development.

If the document does not load, try refreshing. You can also download it [here](https://learn.cosmonic.com/hubfs/WIT-Cheatsheet-v1.2.pdf).

If you’re interested in learning more, visit Alex Crichton’s [excellent documentation](https://github.com/WebAssembly/component-model/blob/main/design/mvp/WIT.md) which explains the ways in which the WIT IDL supports the WebAssembly Component Model:

- WIT is a developer-friendly format to describe the imports and exports to a component. It is easy to read and write and provides the foundational basis for producing components from guest languages as well as consuming components in host languages.
- WIT packages are the basis of sharing types and definitions in an ecosystem of components. Authors can import types from other WIT packages when generating a component, publish a WIT package representing a host embedding, or collaborate on a WIT definition of a shared set of APIs between platforms.

Got questions? There are lots of ways to get in touch, contribute and join the discussion.

- As maintainers of CNCF wasmCloud, we hold weekly Community Meetings which are live-streamed on YouTube, LinkedIn and Twitter. You can find out what’s coming up on [the agenda](https://wasmcloud.com/community).
- We’ll be at [KubeCon Chicago](https://events.linuxfoundation.org/kubecon-cloudnativecon-north-america/) — come visit us at the Cosmonic booth `M21` and wasmCloud booth in the open source pavilion.
- Join the discussion on [Discord](https://discord.com/invite/VcvdfAdE6R/)

#### Ready to deploy WebAssembly on Kubernetes?

Get started with Cosmonic Control

[Get Started](https://cosmonic.com/docs/install-cosmonic-control/?utm_source=blog&utm_medium=blog_cta)

> About the author
>
> ### [Bailey Hayes](https://cosmonic.com/blog/team/bailey-hayes/)
>
> Chief Technology Officer, Co-Founder
>
> Bailey Hayes is the CTO at Cosmonic. She believes the future is in distributed systems and WebAssembly (Wasm). She wears many hats in the open source ecosystem, from standards to implementations as the W3C WebAssembly WASI Subgroup co-chair, Bytecode Alliance TSC Director, and maintainer of CNCF wasmCloud.
>
> [More from Bailey](https://cosmonic.com/blog/team/bailey-hayes/)

**Tags:**

- [Cosmonic](https://cosmonic.com/blog/tags/cosmonic/)
- [WIT](https://cosmonic.com/blog/tags/wit/)
- [WebAssembly](https://cosmonic.com/blog/tags/web-assembly/)
- [component model](https://cosmonic.com/blog/tags/component-model/)
- [components](https://cosmonic.com/blog/tags/components/)
