{"id":20460958,"url":"https://github.com/ericgj/beautiful-workbench","last_synced_at":"2025-07-30T11:03:31.936Z","repository":{"id":138269938,"uuid":"4616346","full_name":"ericgj/beautiful-workbench","owner":"ericgj","description":null,"archived":false,"fork":false,"pushed_at":"2012-06-14T03:20:19.000Z","size":199,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-05T11:34:02.886Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/ericgj.png","metadata":{"files":{"readme":"README.markdown","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}},"created_at":"2012-06-10T16:09:16.000Z","updated_at":"2015-07-08T16:05:35.000Z","dependencies_parsed_at":"2023-03-13T10:54:33.214Z","dependency_job_id":null,"html_url":"https://github.com/ericgj/beautiful-workbench","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ericgj/beautiful-workbench","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ericgj%2Fbeautiful-workbench","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ericgj%2Fbeautiful-workbench/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ericgj%2Fbeautiful-workbench/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ericgj%2Fbeautiful-workbench/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ericgj","download_url":"https://codeload.github.com/ericgj/beautiful-workbench/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ericgj%2Fbeautiful-workbench/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267857432,"owners_count":24155912,"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","status":"online","status_checked_at":"2025-07-30T02:00:09.044Z","response_time":70,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":[],"created_at":"2024-11-15T12:22:38.190Z","updated_at":"2025-07-30T11:03:31.843Z","avatar_url":"https://github.com/ericgj.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Beautiful Workbench\n\nA simple workbench for trying out different visualization techniques in a\ncollaborative way. Based on the book _Beautiful Visualization_.\n\n### How to install sample data\n\nDrop the file in `data`, and it will add a route for the file under `/api`.\nSo the file `data/foo.json`  =\u003e  the url `/api/foo.json`.\n\n### How to set up a route\n\n1. Add a ruby file named so you can identify it as yours (e.g. use your github \nname), to `routes`.\n\n2. This file should be written as if it were a classic Sinatra app --i.e. top-\nlevel routes and settings.\n\n3. In general the routes should be in the form \u003cbr\u003e\n`/#{your-name}/#{chapter-or-visualization-name}` \u003cbr\u003e\nFor instance, `get '/eric/3'`\n\n4. Also in the routes file, specify the routes that should be publicly viewable like this:\n\n```ruby\nroutes_index['eric'] = [\n  [ '3', 'word cloud visualizations'],\n  [ '4', 'color experiments' ]      \n]\n```\n\n### How to set up your views\n\nViews should be saved to the `views` subdirectory, or done as named templates\n within your routes file. They can use any templating engine you want. \n\nThere is a bare-bones default layout which loads a reset and application css and \nyields your content as the body. It's written in [slim](http://slim-lang.com).\nIf you want to use this layout but not slim in your views, do\n\n    haml :my_view, :layout_engine =\u003e :slim\n\nOr if you want to provide your own layout, \n\n    erb :my_view, :layout =\u003e :'my_name/my_layout'\n\nJavascript, CSS, and images are in directories under `public` -- feel free to \ndrop whatever you need in, using subdirectories to namespace.\n\n\n### How to run locally\n\n1. `bundle install`\n2. `bundle exec rackup` from the root directory\n3. Browse [http://localhost:9292/contrib](http://localhost:9292/contrib).\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fericgj%2Fbeautiful-workbench","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fericgj%2Fbeautiful-workbench","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fericgj%2Fbeautiful-workbench/lists"}