{"id":15722146,"url":"https://github.com/tabledog/datasette-stripe","last_synced_at":"2026-03-06T15:32:21.812Z","repository":{"id":171130807,"uuid":"463296263","full_name":"tabledog/datasette-stripe","owner":"tabledog","description":"A web SQL interface to your Stripe account using Datasette.","archived":false,"fork":false,"pushed_at":"2022-05-17T19:41:00.000Z","size":41,"stargazers_count":20,"open_issues_count":1,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-10-12T13:03:03.288Z","etag":null,"topics":["datasette","sqlite","stripe"],"latest_commit_sha":null,"homepage":"https://table.dog","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tabledog.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-02-24T20:45:38.000Z","updated_at":"2022-11-27T22:45:47.000Z","dependencies_parsed_at":"2023-07-15T18:15:07.990Z","dependency_job_id":null,"html_url":"https://github.com/tabledog/datasette-stripe","commit_stats":{"total_commits":10,"total_committers":2,"mean_commits":5.0,"dds":0.09999999999999998,"last_synced_commit":"0656c8d809b1a9424d9987ed807fc5e1eac2a48c"},"previous_names":["tabledog/datasette-stripe"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/tabledog/datasette-stripe","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tabledog%2Fdatasette-stripe","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tabledog%2Fdatasette-stripe/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tabledog%2Fdatasette-stripe/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tabledog%2Fdatasette-stripe/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tabledog","download_url":"https://codeload.github.com/tabledog/datasette-stripe/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tabledog%2Fdatasette-stripe/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30183472,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-06T14:42:24.748Z","status":"ssl_error","status_checked_at":"2026-03-06T14:42:14.925Z","response_time":250,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["datasette","sqlite","stripe"],"created_at":"2024-10-03T22:04:24.866Z","updated_at":"2026-03-06T15:32:21.775Z","avatar_url":"https://github.com/tabledog.png","language":"JavaScript","funding_links":["https://github.com/sponsors/emadda"],"categories":[],"sub_categories":[],"readme":"# Datasette, Stripe and `tdog`\n\nOr: Stripe Sigma Alternative\n\n- [Datasette](https://datasette.io/) is a web GUI for exploring SQLite datasets.\n- [Stripe](https://stripe.com/) handles online payments. [Sigma](https://stripe.com/sigma) is their SQL analytics web\n  GUI.\n- [Table Dog](https://github.com/tabledog/tdog-cli) is a CLI that converts your Stripe account to a SQLite database file. [Sponsor development](https://github.com/sponsors/emadda).\n\nThis repo is a web app that runs Datasette and the `tdog` CLI in a single container to give you a fast real-time SQL\ninterface to your Stripe account.\n\nDemo: [https://datasette-stripe.fly.dev/stripe](https://datasette-stripe.fly.dev/stripe).\n\n## Notable features\n\n- Full text search across all of your Stripe data.\n\t- Hold `s` when clicking ID's to open in the Stripe web UI.\n- Real time.\n\t- Polls `/events`, applies changes to your SQLite database.\n- Sharable URL's.\n\t- Share queries as URLs with your team.\n\t- Export tables to Excel.\n- Snapshot your SQLite database.\n\t- Download with `curl` and HTTP basic auth.\n\t- Save to file based storage (Dropbox etc) so that you can reproduce query results.\n\t- Use a local DB GUI.\n\t- Query using Python or another language.\n- Health checks.\n\t- `/tdog/health.json` allows uptime monitoring (attach\n\t  to [Google Cloud Monitoring](https://cloud.google.com/monitoring/alerts)).\n- GraphQL and JSON API's included.\n\t- Datasette allows you to use `curl` to get any SQL or GraphQL result set as JSON.\n\t- This allows you to do [complex joins very efficiently](https://simonwillison.net/2020/Aug/7/datasette-graphql/) as\n\t  they are powered by SQLite underneath.\n\t- These APIs can be used from a backend server to query Stripe state without having to handle webhooks or SQL servers and schemas.\n- Mirrors your Stripe API key.\n\t- Sign in to the Datasette instance with HTTP basic auth username=`{STRIPE_SECRET_KEY}`, password=``.\n\t- Revoke your key to block all HTTP access to the instance.\n- Very responsive.\n\t- The combination of SQLite and a Fly.io instance at the network \"edge\" minimize any network hops.\n- Single Docker container.\n\t- Can be run on your local laptop or other Docker environment.\n\n## Security\n\nHTTPS/TLS and HTTP basic auth protects the Datasette instance (and the Stripe/SQLite data loaded into it). See the\nproxy [readme.md](./app/auth-proxy/readme.md) for more details.\n\n## Docker Run\n\nRun a local copy with these commands:\n- `git clone https://github.com/tabledog/datasette-stripe \u0026\u0026 cd datasette-stripe`\n- `docker build . -t datasette-stripe`\n- `docker run -it -e NODE_ENV='development' -e STRIPE_SECRET_KEY='rk_test...' -v /host/data:/data -p 3000:3000 datasette-stripe`\n- You will now have:\n\t- A Datasette instance running at `http://127.0.0.1:3000` (use HTTPS in production).\n\t- A SQLite database containing your Stripe account located at `/host/data/stripe.sqlite`.\n\n## Run this web app for free with Fly.io\n\nFly.io is like Heroku for Docker containers. They deploy your web app to the closest region to you, manage HTTPS/TLS\ncertificates and OS updates. You give them a single Docker container (this repo), and they handle the rest.\n\n**1. Create a Fly.io account**\n\n- [Install the CLI](https://fly.io/docs/hands-on/installing/).\n- `fly auth signup`\n\n**2. Create Fly app.**\n\n- Your app name will become your URL name: `https://{your_app_name}.fly.dev/`\n- `git clone` this repo, cd to it in your terminal.\n- Change `app` name in fly.toml to `{your_app_name}` (must be globally unique).\n- `fly apps create`\n\t- View current app with `fly status`.\n\t- The current app will be the one named in `fly.toml`. Commands operate on this app.\n\n**3. Create volume.**\n\n- Run `fly volumes create volume_tdog --region lhr --size 1;`\n- This is where the `stripe.sqlite` database and logs are stored. These persist between VM reboots.\n\n**4. Set secrets.**\n\n- Create a new restricted key with **read-only** for\n  everything [https://dashboard.stripe.com/apikeys](https://dashboard.stripe.com/apikeys).\n- `fly secrets set STRIPE_SECRET_KEY=rk_test_...`\n- API keys are never hard coded into Docker images or logs.\n- Remember to clear your shell history after setting this.\n\n**5. Deploy instance.**\n\n- `fly deploy`\n- `fly open`\n\t- Opens URL to app in your browser.\n\t- The HTTP basic auth username is the same as the `STRIPE_SECRET_KEY`, leave the password blank. This is identical\n\t  to Stripes API authentication.\n\t- The `tdog` CLI will do a full download on first boot which could take a while, view the progress via the logs (link in the top right burger menu of Datasette).\n- `fly logs`\n\t- Fly.io VM provisioning logs - any issues will be shown here.\n- `fly ssh console`\n\t- `htop` to see processes.\n\n**Deleting.**\n\n- `fly apps destroy {your_app_name}`\n\t- This will destroy the volume and secrets that belong to this app.\n\n**Related**\n\n- [Fly billing page](https://fly.io/organizations/personal) - Keep an eye on usage here. A single VM can be left on for\n  free under the \"free tier\".\n- If you like the demo but are non-technical, I can set up a Datasette instance for your Stripe account.\n\t- Contact me at [table.dog.hq@gmail.com](mailto:table.dog.hq@gmail.com). Thanks!","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftabledog%2Fdatasette-stripe","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftabledog%2Fdatasette-stripe","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftabledog%2Fdatasette-stripe/lists"}