Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Homepage should provide options for files to load #44

Open
simonw opened this issue Sep 1, 2022 · 1 comment
Open

Homepage should provide options for files to load #44

simonw opened this issue Sep 1, 2022 · 1 comment
Labels
enhancement New feature or request

Comments

@simonw
Copy link
Owner

simonw commented Sep 1, 2022

I think https://lite.datasette.io/ should be an initial page that lets users select data - it shouldn't load Pyodide and Datasette directly.

That way I can provide a more user friendly UI than the current thing with the buttons in the footer.

I can also more easily expand it to cover additional options such as this one: https://observablehq.com/@simonw/open-every-csv-file-in-a-github-repository-in-datasette-lite

@simonw simonw added the enhancement New feature or request label Sep 1, 2022
@simonw
Copy link
Owner Author

simonw commented Sep 1, 2022

Loading options so far:

  • URL to a CSV file
  • URL to a SQLite database file
  • URL to a SQL init script

To add:

  • URL to a GitHub repository (can do this)
  • URL to a public Google Sheet (can add /export?format=csv to it)
  • A bunch of "try this example" links
  • The ability to open your own CSV file (which goes to localStorage or maybe even window.showOpenFilePicker() on supporting browsers)
  • URL to a JSON file. Would be neat if this worked directly with arrays and could be told which key to access for objects

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant