Slicelytics monogram

Open in Slicelytics Badge

Add a badge to a README, a website, your docs, or your app that opens a CSV, JSON, JSONL or TSV file in Slicelytics, on a chart you set up or ready to explore and filter. Visitors don't need an account, and the file goes straight from where it is hosted, such as a GitHub repository, a CDN, or your own server, to their browser.

Make Your Badge

Open on
Open in Slicelytics An example, opening a public CSV. Click to try it.
Markdown, for READMEs and other Markdown pages
[![Open in Slicelytics](https://slicelytics.com/badge.svg)](https://slicelytics.com/data/explore#v=1&src=https%3A%2F%2Fraw.githubusercontent.com%2Fdatasets%2Fcovid-19%2Fmain%2Fdata%2Fcountries-aggregated.csv&guest=1)
HTML, for websites and apps
<a href="https://slicelytics.com/data/explore#v=1&amp;src=https%3A%2F%2Fraw.githubusercontent.com%2Fdatasets%2Fcovid-19%2Fmain%2Fdata%2Fcountries-aggregated.csv&amp;guest=1"><img src="https://slicelytics.com/badge.svg" alt="Open in Slicelytics"></a>

To open it filtered, or on certain properties only: set it up in Explore, then click Share and Copy badge.

The Generator's Options

Your file's URL

The address of the file the badge opens: a CSV, TSV, JSON, NDJSON/JSONL, TOON, or FIT file, optionally gzipped. Paste whichever URL you have:

  • The file's direct URL, on any host: the address that downloads the file itself, not a page about it. For example, a file on your website or in a storage bucket, a cdn.jsdelivr.net/… URL, a Gist's Raw link, or raw.githubusercontent.com/…. It is used as it is.
  • A file's page on GitHub or Hugging Face (…/blob/…) is turned into the direct URL for you. For other hosts, copy the file's download or "raw" link.
  • The latest file, or one version: a URL that always serves the latest file, such as one on a git branch like main, keeps the badge current as the file changes. A URL to a fixed version, such as one with a commit hash, a tag, or a version number, always opens that version.

The URL must start with https://. Left empty, the generator shows an example badge for a public COVID-19 dataset, so you can see how one works.

As you type, the generator checks the file the way a visitor's browser will read it, and the line under the field says what it found:

  • ✓ The host lets browsers read this file: the badge will work.
  • ✗ The host couldn't be reached, or doesn't let other sites read its files: the file may exist, but browsers on other sites aren't allowed to read it. A badge would open Slicelytics and ask visitors to download the file and drop it in. Allow it on your host, or host the file somewhere that does; see where your file can be hosted, below.
  • ✗ The host answered 404 or another error: the URL is wrong, or the file is private. Check the URL, and that the file is public: not in a private repository or behind a login.

Compare it with (optional)

A second file's URL. With two files, the badge opens on Compare, which shows them side by side with every changed value highlighted, and a list of only the changes. Good pairs are the same file in two versions or on two branches, this release's results and the last one's, or your API's response before and after a change. Compare matches items by position, so the two files should list their items in the same order.

Open on

  • Explore: the file as a tree of items, ready to search, filter by value, and pick the properties to show. The badge's snippets appear straight away. Visitors can move on to Visualize or Compare from there.
  • A chart in Visualize: the badge opens on a chart you set up. Which properties to chart, the x-axis, and the chart types depend on what is in your file, so you set them up in Slicelytics itself rather than here: click Set up the chart, which opens your file in Visualize in a new tab. Pick the x-axis, the properties, and each one's chart type and metric, add filters if you want to, then click Share and Copy badge. The badge Markdown is on your clipboard, carrying the chart's settings, and the link it opens is ready for HTML, too.
  • Compare: chosen for you when you give two files.

The badge and its snippets

  • Preview: click the badge to open the link in a new tab and see what visitors will see.
  • Markdown: for anything written in Markdown: READMEs, documentation, wikis, dataset cards, notebooks, and blog posts.
  • HTML: for websites, web apps, documentation sites, dashboards, and emails, or a README where you want to place the badge yourself, e.g. centred in a <p align="center">. In an app, you can also put the badge's link on a button or menu item of your own, e.g. "Explore this data" next to a download.
  • A filtered view: to open Explore or Compare on only some items or properties, follow the link under the snippets. It opens your file in Slicelytics; set up the view, then click Share and Copy badge, as for a chart.

How the Badge Works

The badge links to Slicelytics with your file's URL after the #:

https://slicelytics.com/data/explore#v=1&src=<your file's URL>&guest=1

Whoever clicks it lands in Slicelytics, and their browser downloads the file from where it is hosted and opens it, the same as a file dropped onto the page. Browsers never send what comes after # to a server, so Slicelytics doesn't learn which file was opened, and the file never passes through us. guest=1 lets anyone open it without an account.

A badge set up in the app also carries the view, in ?view=: the chart's x-axis, properties, chart types and metrics, and any filters. Only those settings travel in the link; the data is always read from your file, so the chart follows the file as it changes.

Where Your File Can Be Hosted

Any host works, as long as the file is public and the host lets browsers read it from other sites. That permission is called CORS: the host answers with an Access-Control-Allow-Origin header. Many file hosts don't send it, so the generator checks each URL for you. These hosts allow it:

HostURL to use
GitHub repositoryThe file's page, or raw.githubusercontent.com/…
GitHub GistThe file's Raw link, gist.githubusercontent.com/…
jsDelivrcdn.jsdelivr.net/gh/… or cdn.jsdelivr.net/npm/…
Hugging Face datasetsThe file's page, or its /resolve/… URL
ZenodoThe file's download URL
Open-data portals (Socrata)The dataset's JSON or CSV API URL
Your own website or serverThe file's URL, with CORS allowed
Storage bucket (S3, R2, …)The file's public URL, with CORS allowed

Some don't, including GitHub release assets, GitLab, and Codeberg: a badge pointing to a file there asks the visitor to download it and drop it in instead. If you're unsure, paste the URL into the generator and see what the check says.

Badge or Share Link?

Slicelytics has two ways to send someone straight to your data. Both open without an account, on the view you set up.

  • The badge links to a file online. Use it for public files: datasets, benchmark results, or sample responses, wherever they are hosted. The link stays short however large the file is, up to 500 MB, and opens the file as it is when someone clicks the badge.
  • A share link carries the data itself. Use it for private data, a file on your computer, or a snapshot that shouldn't change: open the file in Slicelytics, set up the view, and click Share. Nothing needs to be online, and only what you kept on screen goes in the link, but the data must fit in a link, and the link keeps the data as it was when you shared it.

Ideas for Your Badge

  • Datasets: let readers explore a CSV or JSONL you publish before they download it, on its README, its dataset card, or your website's download page.
  • Benchmark and eval results: link the latest results file, or compare it with the previous release's.
  • Sample API responses: show what your API returns in your API docs, ready to filter and diff.
  • Your website or app: put the badge, or its link, next to any data you publish, such as reports, exports, open data, or research results, so people can look inside before they download.
  • Articles and posts: let readers explore the data behind a chart in a blog post, a newsletter, or a paper's supplementary materials.

Building links from a script instead? See the link format reference.

Common Questions

Does my file pass through Slicelytics?

No. The badge links to the file by its URL, and the browser of whoever clicks it downloads the file straight from where it is hosted, such as a code repository, a CDN or your own server. Slicelytics never receives the file or its URL: both are in the part of the link after #, which browsers never send to a server.

Where can I put the badge?

Anywhere a link can go. Use the Markdown in READMEs, documentation, wikis, dataset cards and anything else written in Markdown, and the HTML on websites, in web apps, dashboards and emails. In your own app, you can also put the badge's link on a button of your own, such as "Explore this data" next to a download.

Does my file have to be on GitHub?

No. GitHub is one host among many: the file can be anywhere that serves it publicly over https and lets browsers read it from other sites (CORS), such as jsDelivr, Hugging Face, Zenodo, a storage bucket or your own website. Paste its URL into the generator to check.

Can the badge open on a chart, or on a filtered view?

Yes. Open your file from the generator, set up the chart in Visualize, or the filters in Explore, as you would for your own data, then click Share and Copy badge. The badge then opens on that view, and the chart is drawn from the file as it is when the badge is clicked.

Do people need an account to open the badge?

No. Anyone can open it and explore, compare and chart your file, without signing in.

Does the badge show the latest version of my file?

It shows whatever the URL serves when someone clicks the badge. A URL that always serves the latest file, such as one on a git branch like main, keeps the badge current as the file changes. A URL to a fixed version, with a commit hash, a tag or a version number, always shows that version.

Can I use it for a private file?

No. The visitor's browser downloads the file without signing in anywhere, so the file must be public: not in a private repository or behind a login. To share private data, use a share link, which carries the data itself.

How large can the file be?

Up to 500 MB. A large CSV, TSV or JSONL file streams in: the first items show while the rest load. Hosts set their own limits: GitHub, for example, keeps files in a repository to 100 MB, while Hugging Face, Zenodo, a storage bucket or your own server can hold larger files.