/malloy_fiddle_dist

The javascript bundle for Malloy Fiddle.

Primary LanguageHTMLGNU General Public License v3.0GPL-3.0

Malloy Fiddle

Malloy is an experimental language for data (learn more about Malloy.

Malloy Fiddle allows you to build a web page to examine with a small static data set. By simply copying a couple of files (index.html and samples.json) into a directory on a web server along with some data and some Malloy semantic models, you can run queries using your web browser as an analytic tool.

Malloy Fiddle is implemented in Malloy, DuckDB+WASM. The javascript program is loaded from this repository the data is served from your webserver.

Github allows you to host web pages so it is perfect for this. You can create a repository, with a aformentioned files and be able to play with data.

Example Fiddles

Here are some examples running on Github

NTSB Example Fiddle

Extract of NTSB flight data from 2000-2005. Shows how to join data and biild dashboards

IMDB Fiddle

Educational example of an extract of the most popular movies in the IMDB dataset. Source Code in Github Repository

Baby Names Fiddle

The Social Security Administration collects baby first names and genders by state and year. Explore this dataset. Source Code in Github Repository

File System Fiddle

Shows how to model hierarchical data. Creates a reasonable interface to the ways you might want to query it.

Auto Recall Fiddle

Uses just a CSV with a list of all the recalls since the 1970's

Making a Fiddle using Github Pages

  • Load VScode and Intall the extension - Instructions
  • Find some parquet or csv data and make a new Malloy Model
  • Create a separate Malloy file for queries using an import
  • download samples.json and edit it.
  • download index.html into the same directory
  • take all the files an add them to a github repo
  • in Github, open Settings / Pages
    • Set Branch to Main
    • directory to Root
  • Click the Visit Site link.

If you have a interesting public Fiddle, please let us know, we'd love to add it to this list.