Skip to content

simonw/datasette-table

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

datasette-table

npm

A (highly experimental) Web Component for embedding a Datasette table on a page.

Demo

Visit https://simonw.github.io/datasette-table/ for a demo of this component.

Usage

<script type="module" src="https://unpkg.com/datasette-table?module"></script>

<datasette-table
    url="https://global-power-plants.datasettes.com/global-power-plants/global-power-plants.json"
></datasette-table>

Development

Check out this repository, then run:

cd datasette-table
npm install

Then to start a local development server (using Vite):

npm run dev

Then visit http://localhost:3000/