Skip to content
@malloydata

malloydata

Malloy is an experimental language for describing data relationships and transformations.

Malloy

Malloy is an open source language for describing data relationships and transformations. It is both a semantic modeling language and a querying language that runs queries against a relational database. Malloy currently supports BigQuery, Postgres, and DuckDB.

We've built a Visual Studio Code extension to facilitate building Malloy data models, querying and transforming data, and creating simple visualizations and dashboards.

Click here to try Malloy in your browser!


Install the Visual Studio Code Extension locally

To write your own Malloy models, use the VS Code Extension, currently available for Mac, Linux, and Windows machines.

  1. Download Visual Studio Code: Download Visual Studio Code

  2. Add the Malloy extension from the Visual Studio Code Marketplace: Open VS Code and click the Extensions button on the far left (it looks like 4 blocks with one flying away). This will open the Extension Marketplace. Search for "Malloy" and, once found, click "Install"

  3. Download and unzip the Sample Models (models + data).

  4. Open the samples folder in VS Code. In VS Code, go to File > Open Folder... select samples/duckdb > Open. DuckDB is built into the extension so you're ready to run these.

  5. Start with 1_airports.malloy in the FAA dataset. This is a sub-sample of the NTSB Flights dataset. In the editor pane, above source: airports, click the word "Preview" to run a SELECT *, and click the word "Run" above any query object to run it (see gif below for example).

show_run

To get to know the Malloy language, follow Malloy by Example and/or continue through the numbered models in the FAA directory.

Note: The Malloy VSCode Extension tracks a small amount of anonymous usage data. You can opt out in the extension settings. Learn more.

Join the Community

  • Join our Malloy Slack Community! Use this community to ask questions, meet other Malloy users, and share ideas with one another.
  • Use GitHub issues in this Repo to provide feedback, suggest improvements, report bugs, and start new discussions.

Resources

Documentation:

YouTube - Watch demos / walkthroughs of Malloy

Pinned Loading

  1. malloy malloy Public

    Malloy is an experimental language for describing data relationships and transformations.

    TypeScript 1.9k 75

  2. try-malloy try-malloy Public

    Quick start for trying Malloy in VS Code in the browser

    3 2

  3. malloy-vscode-extension malloy-vscode-extension Public

    The Malloy Visual Studio Code extension facilitates building Malloy data models, querying and transforming data, and creating simple visualizations and dashboards

    TypeScript 11 9

  4. malloy-cli malloy-cli Public

    A command-line interface for executing Malloy and SQL

    TypeScript 4 3

  5. malloy-samples malloy-samples Public

    Malloy model examples and associated datasets

    TypeScript 12 12

  6. malloy-composer malloy-composer Public

    Malloy Composer is a simple application to build dashboards or run ad-hoc queries using an existing Malloy model

    TypeScript 52 8

Repositories

Showing 10 of 28 repositories
  • malloy-vscode-extension Public

    The Malloy Visual Studio Code extension facilitates building Malloy data models, querying and transforming data, and creating simple visualizations and dashboards

    malloydata/malloy-vscode-extension’s past year of commit activity
    TypeScript 11 MIT 9 19 3 Updated Jun 27, 2024
  • malloydata/malloy-service’s past year of commit activity
    TypeScript 1 MIT 1 0 6 Updated Jun 21, 2024
  • malloy-composer Public

    Malloy Composer is a simple application to build dashboards or run ad-hoc queries using an existing Malloy model

    malloydata/malloy-composer’s past year of commit activity
    TypeScript 52 MIT 8 21 9 Updated Jun 21, 2024
  • malloydata/whatsnext’s past year of commit activity
    0 MIT 0 0 1 Updated Jun 20, 2024
  • duckdb-wasm Public Forked from duckdb/duckdb-wasm

    WebAssembly version of DuckDB -- Malloy Fork

    malloydata/duckdb-wasm’s past year of commit activity
    C++ 0 MIT 111 0 14 Updated Jun 19, 2024
  • malloy-mysql-connection Public

    Provides a connector and dialect to be able to execute Malloy models against MySQL databases.

    malloydata/malloy-mysql-connection’s past year of commit activity
    TypeScript 1 0 0 5 Updated Jun 18, 2024
  • malloy-py Public

    Python package for executing Malloy

    malloydata/malloy-py’s past year of commit activity
    JavaScript 23 MIT 7 1 5 Updated Jun 18, 2024
  • malloydata/malloydata.github.io’s past year of commit activity
    TypeScript 1 MIT 7 5 11 Updated Jun 17, 2024
  • malloy Public

    Malloy is an experimental language for describing data relationships and transformations.

    malloydata/malloy’s past year of commit activity
    TypeScript 1,912 MIT 75 281 20 Updated Jun 16, 2024
  • malloy-svelte-example Public

    A demonstration of using Malloy in a Svelte app

    malloydata/malloy-svelte-example’s past year of commit activity
    Svelte 4 0 0 4 Updated May 31, 2024

Top languages

Loading…

Most used topics

Loading…