Skip to content

lloydtabb/malloy_fiddle_dist

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

39 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

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

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

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

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

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.

About

The javascript bundle for Malloy Fiddle.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages