{"id":18044776,"url":"https://github.com/will/datascope","last_synced_at":"2025-04-05T05:08:09.109Z","repository":{"id":5370120,"uuid":"6557129","full_name":"will/datascope","owner":"will","description":"postgres 9.2 visibility ","archived":false,"fork":false,"pushed_at":"2014-03-12T21:20:23.000Z","size":211,"stargazers_count":257,"open_issues_count":3,"forks_count":27,"subscribers_count":8,"default_branch":"master","last_synced_at":"2025-03-29T04:09:46.308Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"datascope.herokuapp.com","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/will.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}},"created_at":"2012-11-06T05:43:27.000Z","updated_at":"2025-02-08T12:25:34.000Z","dependencies_parsed_at":"2022-07-06T10:59:58.728Z","dependency_job_id":null,"html_url":"https://github.com/will/datascope","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/will%2Fdatascope","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/will%2Fdatascope/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/will%2Fdatascope/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/will%2Fdatascope/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/will","download_url":"https://codeload.github.com/will/datascope/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247289428,"owners_count":20914464,"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":[],"created_at":"2024-10-30T18:10:43.520Z","updated_at":"2025-04-05T05:08:09.083Z","avatar_url":"https://github.com/will.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Datascope\nVisability into your Postgres 9.2 database via [pg_stat_statements](http://www.postgresql.org/docs/9.2/static/pgstatstatements.html) and [cubism](http://square.github.com/cubism/) and using the [json datatype](http://wiki.postgresql.org/wiki/What's_new_in_PostgreSQL_9.2#JSON_datatype).\n\n![http://f.cl.ly/items/440Z1L1n2v3q3c1Q3J0s/datascope.png](http://f.cl.ly/items/440Z1L1n2v3q3c1Q3J0s/datascope.png)\n\nCheck out a [live example](https://datascope.herokuapp.com)\n\n# Heroku Deploy\n\nDatascope needs two Postgres 9.2 databases. The first is a DATABASE_URL with the datascope schema, the second is a TARGET_DB with the pg_stat_statements extension.\n\n```bash\n$ heroku create\n\n$ heroku addons:add heroku-postgresql:dev --version=9.2\nAttached as HEROKU_POSTGRESQL_COPPER_URL\n$ heroku config:add DATABASE_URL=$(heroku config:get HEROKU_POSTGRESQL_COPPER_URL)\n$ heroku pg:psql COPPER\n=\u003e \\i schema.sql\nCREATE TABLE\n\n$ heroku addons:add heroku-postgresql:dev --version=9.2\nAttached as HEROKU_POSTGRESQL_GREEN_URL\n\n$ heroku config:add TARGET_DB=$(heroku config:get HEROKU_POSTGRESQL_GREEN_URL)\n$ heroku pg:psql GREEN\n=\u003e create extension pg_stat_statements;\nCREATE EXTENSION\n\n$ git push heroku master\n$ heroku scale worker=1\n```\n\n# Basic Auth\n\nIf you don't want your deployment of datascope to be publicly visible, simply add environment variables for `BASIC_AUTH_USER` and `BASIC_AUTH_PASSWORD`.\n\n```\nheroku config:add BASIC_AUTH_USER=admin BASIC_AUTH_PASSWORD=password\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwill%2Fdatascope","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwill%2Fdatascope","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwill%2Fdatascope/lists"}