{"id":13769322,"url":"https://github.com/cdrubin/rig","last_synced_at":"2025-04-15T23:38:59.735Z","repository":{"id":68785209,"uuid":"370124992","full_name":"cdrubin/rig","owner":"cdrubin","description":"αcτµαlly pδrταblε εxεcµταblε redbean-based local web application","archived":false,"fork":false,"pushed_at":"2021-05-27T13:55:26.000Z","size":9578,"stargazers_count":17,"open_issues_count":2,"forks_count":2,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-29T02:42:02.056Z","etag":null,"topics":["chartjs","cosmopolitan-libc","lua","prismjs","redbean","sqlite","yace"],"latest_commit_sha":null,"homepage":"https://cdrubin.github.io/rig","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cdrubin.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2021-05-23T18:13:03.000Z","updated_at":"2025-01-07T15:30:35.000Z","dependencies_parsed_at":null,"dependency_job_id":"e73129cd-71cb-4d35-816d-2c0c14967997","html_url":"https://github.com/cdrubin/rig","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cdrubin%2Frig","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cdrubin%2Frig/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cdrubin%2Frig/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cdrubin%2Frig/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cdrubin","download_url":"https://codeload.github.com/cdrubin/rig/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249173059,"owners_count":21224481,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["chartjs","cosmopolitan-libc","lua","prismjs","redbean","sqlite","yace"],"created_at":"2024-08-03T17:00:21.890Z","updated_at":"2025-04-15T23:38:59.718Z","avatar_url":"https://github.com/cdrubin.png","language":"JavaScript","readme":"\n# 📈 _rig_    \u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;   ([redbean](https://justine.lol/redbean/)-interactive-[grapher](https://www.chartjs.org/))   \u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;     [\u0026RightTriangleBar;](https://cdrubin.github.io/rig)\n---\n\n(This proof-of-concept was intended for single-use but it is made public here in case others might be interested!)\n\n|     |     |     |\n| --- | --- | --- |\n| _made with_ [__readbean 1.0__](https://justine.lol/redbean/) | [redbean-1.0.com](https://justine.lol/redbean/redbean-1.0.com) | [redbean-1.0.com.dbg](https://justine.lol/redbean/redbean-1.0.com.dbg) |\n\nThe code here is ___NOT___ intended to be an example of best-practice in Javascript, Lua or the use of [αcτµαlly pδrταblε εxεcµταblεs and redbean](https://justine.lol/ape.html). It uses garish colours specifically because the intent is for others to make modifications! All of the source code is to be found within [index.html](https://github.com/cdrubin/rig/blob/main/index.html) - no external CSS or Javascript, no Javascript framework even though I itched to find an excuse to use [Hyperapp](https://github.com/jorgebucaran/hyperapp). This was really an opportunity to play with what an ape webapp means! \n\n[SQLite](SQLite) in the browser comes thanks to [SQL.js](https://github.com/sql-js/sql.js). Code highlighting thanks to [Prism](https://prismjs.com/) and [Yace](https://github.com/petersolopov/yace). \n\n![user interface](https://user-images.githubusercontent.com/232306/119274102-47fe9d00-bbdc-11eb-929a-a846bd5e3ac7.png)\n\n\u003e This is a poorly accessible web application, if anyone is interested in better access please reach out - I'm super happy to help.\n\n---\n### Install\n\n1. Download the latest [rig.com](https://github.com/cdrubin/rig/releases/download/0.1/rig.com) ape \n2. Make ```rig.com``` executable according to your platform\n3. Run it (a new browser window should open to http://localhost:8080)\n\n\u003e To be sure the story involves trusting that this executable will do nothing untoward. If you on are a Mac you will need to explicitly verify that you are okay with execution by visiting ```System Preferences```|```General``` and pressing the ```Allow Anyway``` button next to the message about rig.com coming from the untamed wilds. \n\n---\n### Usage \n\n🟠 The ```SQL``` (in orange!) pane accepts queries against the in-memory DB. ```CTRL-Enter``` executes these. \n\n🟢 Up to 10 rows of results represented in JSON appear in the ```Data``` pane (in green!) including a tiny actual row count. \n\n🟣 The ```Javascript``` pane (in purple!) accepts JS and again executes when ```CTRL-Enter``` is pressed. To automate code execution whenever a SQL query is executed, check the checkbox!\n\nLoading files is available using the ⇱ button in the top left-hand corner, and saving is available with the ⇲ button in the top right-hand corner of the screen. Remote files can be loaded by pasting a URL.\n\n---\n### Notes\n\n - In queries we avoid joining to the location table for improved speed since this table is really just a static lookup table for location names and information. Using it in a legend for the graph may be sensible. \n","funding_links":[],"categories":["Redbean"],"sub_categories":["Projects"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcdrubin%2Frig","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcdrubin%2Frig","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcdrubin%2Frig/lists"}