MCPcopy Index your code
hub / github.com/apsavin/pgrights

github.com/apsavin/pgrights @v0.2.0

Chat with this repo
repository ↗ · DeepWiki ↗ · release v0.2.0 ↗ · + Follow
158 symbols 387 edges 56 files 0 documented · 0%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

pgrights

GUI for PostgreSQL roles, privileges and policies

Main view

How to run

Download dmg file from the latest release

or build from source:

yarn && yarn package

RoadMap and changelog

  • [ ] 1.0.0
  • [ ] SQL commands log
  • [ ] Possibility to delete connections
  • [ ] Possibility to delete policies
  • [x] 0.2.0
  • [x] Possibility to edit table and column access
  • [x] View for single policy with SQL syntax highlighting
  • [x] Possibility to edit policies
  • [x] 0.1.0 Readonly version
  • [x] Create and edit database connections
  • [x] Possibility to select a schema
  • [x] Possibility to filter and select a table
  • [x] Possibility to filter and select a role
  • [x] View for table and colunm access
  • [x] View for row-level policies

Core symbols most depended-on inside this repo

fetch
called by 11
src/models/DbSchema.js
getCurrentTable
called by 9
src/models/DbConnectionsManager.js
getCurrentConnection
called by 8
src/models/DbConnectionsManager.js
getCounterText
called by 7
test/e2e/HomePage.e2e.js
get
called by 6
src/models/DbPrivilegesManager.js
withFetch
called by 5
src/hocs/withFetch.js
add
called by 5
src/models/DbPoliciesManager.js
toConnectionChoose
called by 5
src/models/Router.js

Shape

Class 63
Method 56
Function 39

Languages

TypeScript100%

Modules by API surface

src/models/DbConnectionsManager.js11 symbols
src/components/DbTableRlsForm/DbTableRlsForm.js7 symbols
src/models/Router.js6 symbols
src/models/Fetcher.js6 symbols
src/models/DbPrivilegesManager.js6 symbols
src/models/DbPoliciesManager.js6 symbols
src/models/DbConnection.js5 symbols
src/main.dev.js5 symbols
src/hocs/withFetch.js5 symbols
src/components/DbPolicyDialogForm/DbPolicyDialogForm.js5 symbols
src/components/Autocomplete/Autocomplete.js5 symbols
src/pages/ConnectionEditPage/ConnectionEditPage.js4 symbols

For agents

$ claude mcp add pgrights \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page