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 2k 76

  2. try-malloy try-malloy Public

    Quick start for trying Malloy in VS Code in the browser

    4 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 14 12

  4. malloy-cli malloy-cli Public

    A command-line interface for executing Malloy and SQL

    TypeScript 6 3

  5. malloy-samples malloy-samples Public

    Malloy model examples and associated datasets

    TypeScript 15 15

  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 54 9

Repositories

Showing 10 of 29 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 14 MIT 12 21 1 Updated Nov 1, 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 54 MIT 9 31 0 Updated Nov 1, 2024
  • malloydata/malloydata.github.io’s past year of commit activity
    TypeScript 1 MIT 8 7 13 Updated Nov 1, 2024
  • malloy Public

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

    malloydata/malloy’s past year of commit activity
    TypeScript 1,991 MIT 76 308 24 Updated Nov 1, 2024
  • malloy-tpcds Public Forked from carlineng/malloy-tpcds

    Translations of the TPC-DS benchmark queries from SQL to Malloy

    malloydata/malloy-tpcds’s past year of commit activity
    1 3 0 3 Updated Oct 28, 2024
  • malloy-samples Public

    Malloy model examples and associated datasets

    malloydata/malloy-samples’s past year of commit activity
    TypeScript 15 MIT 15 1 7 Updated Oct 26, 2024
  • malloydata/whatsnext’s past year of commit activity
    1 MIT 0 0 1 Updated Oct 9, 2024
  • malloy-py Public

    Python package for executing Malloy

    malloydata/malloy-py’s past year of commit activity
    JavaScript 26 MIT 8 2 0 Updated Sep 26, 2024
  • malloydata/publisher’s past year of commit activity
    0 MIT 0 0 0 Updated Sep 16, 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 130 0 18 Updated Sep 16, 2024

People

This organization has no public members. You must be a member to see who’s a part of this organization.