{"id":22918233,"url":"https://github.com/stlbucket/postgraphile-de-extension","last_synced_at":"2026-02-28T10:32:07.186Z","repository":{"id":57328720,"uuid":"154391748","full_name":"stlbucket/postgraphile-de-extension","owner":"stlbucket","description":"an IDE for postgraphile","archived":false,"fork":false,"pushed_at":"2018-11-25T21:25:53.000Z","size":8392,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-01T00:31:38.398Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PLpgSQL","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/stlbucket.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}},"created_at":"2018-10-23T20:22:05.000Z","updated_at":"2019-02-21T02:08:36.000Z","dependencies_parsed_at":"2022-09-12T09:50:36.630Z","dependency_job_id":null,"html_url":"https://github.com/stlbucket/postgraphile-de-extension","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/stlbucket%2Fpostgraphile-de-extension","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stlbucket%2Fpostgraphile-de-extension/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stlbucket%2Fpostgraphile-de-extension/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stlbucket%2Fpostgraphile-de-extension/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/stlbucket","download_url":"https://codeload.github.com/stlbucket/postgraphile-de-extension/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246644099,"owners_count":20810687,"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-12-14T06:29:28.470Z","updated_at":"2026-02-28T10:32:02.133Z","avatar_url":"https://github.com/stlbucket.png","language":"PLpgSQL","funding_links":[],"categories":[],"sub_categories":[],"readme":"# postgraphile-de\n\nAn IDE for Postgraphile\n\nthis tool is still under construction, but you can try it out today!\n\ndev repo is here:  https://github.com/stlbucket/philede\n\n## install\n```\nyarn add postgraphile-de-extension\n```\n\n## add to your extensions\n```\nconst plugins = [\n  require('postgraphile-plugin-connection-filter'),\n  require('../src/postgraphile-de')\n]\n```\n\n## pass the app in your graphile build options\n```\napp.use(postgraphile(\n  connection\n  ,schemas\n  ,{\n    dynamicJson: dynamicJson\n    // ,pgDefaultRole: pgDefaultRole\n    // ,jwtSecret: jwtSecret\n    // ,jwtPgTypeIdentifier: jwtPgTypeIdentifier\n    ,showErrorStack: true\n    ,extendedErrors: ['severity', 'code', 'detail', 'hint', 'positon', 'internalPosition', 'internalQuery', 'where', 'schema', 'table', 'column', 'dataType', 'constraint', 'file', 'line', 'routine']\n    ,disableDefaultMutations: disableDefaultMutations\n    ,appendPlugins: plugins\n    ,watchPg: watchPg\n    ,graphileBuildOptions: {\n      app: app                \u003c\u003c\u003c--------- like this\n    }\n  }\n));\n```\n\n## what this does\nsimilar to postgraphile_watch, a schema will be installed to your database called 'pde'.\n\na second postgraphile server is then spun up using pm2.  this process statically serves the postgraphile-de UI.\n\nthe ui accesses your main server /graphql endpoint, and a proxy thru the main server on the endpoint /dev-graphql supports the pde app itself.  this is why the app argument is passed via graphileBuildOptions\n\nto use the tool go to http://localhost:5000/dev  - you will need to adjust the url accordingly.  the UI is at the /dev location\n\n\n## how this is accomplished\nby severely abusing the plugin system to hi-jack the client and allow direct sql execution on the db\n\nthere is no doubt that much of this code must be refactored into a better state\n\nalso, a mechanism to make sure this doesn't run in any other environment than dev will be needed\n\nyou may need pm2 installed globally. then again you may not.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstlbucket%2Fpostgraphile-de-extension","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstlbucket%2Fpostgraphile-de-extension","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstlbucket%2Fpostgraphile-de-extension/lists"}