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 77

  2. try-malloy try-malloy Public

    Quick start for trying Malloy in VS Code in the browser

    5 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 16 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 14

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

Repositories

Showing 10 of 29 repositories
  • malloy Public

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

    malloydata/malloy’s past year of commit activity
    TypeScript 2,020 MIT 77 310 25 Updated Dec 22, 2024
  • malloy-samples Public

    Malloy model examples and associated datasets

    malloydata/malloy-samples’s past year of commit activity
    TypeScript 15 MIT 14 1 5 Updated Dec 21, 2024
  • malloydata/malloydata.github.io’s past year of commit activity
    TypeScript 1 MIT 8 11 12 Updated Dec 21, 2024
  • 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 16 MIT 12 20 2 Updated Dec 20, 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 58 MIT 9 27 0 Updated Dec 20, 2024
  • publisher Public
    malloydata/publisher’s past year of commit activity
    TypeScript 3 MIT 0 0 0 Updated Dec 10, 2024
  • malloy-cli Public

    A command-line interface for executing Malloy and SQL

    malloydata/malloy-cli’s past year of commit activity
    TypeScript 6 MIT 3 1 1 Updated Nov 25, 2024
  • malloy-py Public

    Python package for executing Malloy

    malloydata/malloy-py’s past year of commit activity
    JavaScript 26 MIT 8 3 1 Updated Nov 23, 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
  • whatsnext Public
    malloydata/whatsnext’s past year of commit activity
    1 MIT 0 0 1 Updated Oct 9, 2024

People

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