MCPcopy Index your code
hub / github.com/decred/politeia

github.com/decred/politeia @v1.5.0

Chat with this repo
repository ↗ · DeepWiki ↗ · release v1.5.0 ↗ · + Follow
4,034 symbols 12,923 edges 465 files 3,153 documented · 78% updated 7mo agov1.4.0 · 2022-08-22★ 11022 open issues
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

politeia

Build Status ISC License Go Report Card

Politeia is a system for storing off-chain data that is both versioned and timestamped, essentially “git, a popular revision control system, plus timestamping”. Instead of attempting to store all the data related to Decred’s governance on-chain, we have opted to create an off-chain store of data that is anchored into Decred’s blockchain, minimizing its on-chain footprint.

The politeia stack is as follows:

~~~~~~~~ Internet ~~~~~~~~~
            |
+-------------------------+
|      politeiawww        |
+-------------------------+
            |
+-------------------------+
|        politeiad        |
+-------------------------+
            |
~~~~~~~~ Internet ~~~~~~~~~
            |
+-------------------------+
|        dcrtimed         |
+-------------------------+

Core software:

  • politeiad - Reference server daemon. Data layer.
  • politeiawww - Web backend server; depends on politeiad. User layer.

The politeiawww APIs and politeiawww client can be treated as stable. All other APIs and libraries should be treated as unstable and subject to breaking changes.

See the politeiad README for instructions on building and running politeiad.

See the politeiawww README for instructions on building and running politeiawww.

Extension points exported contracts — how you extend this code

Core symbols most depended-on inside this repo

Shape

Method 1,689
Function 1,284
Struct 971
TypeAlias 68
Interface 18
FuncType 4

Languages

Go100%

Modules by API surface

politeiawww/api/www/v1/v1.go125 symbols
politeiawww/api/cms/v1/v1.go96 symbols
politeiawww/cmd/shared/client.go77 symbols
politeiad/backend/gitbe/gitbe.go76 symbols
politeiad/backendv2/tstorebe/plugins/ticketvote/cmds.go67 symbols
politeiawww/legacy/user/cms.go66 symbols
politeiawww/legacy/invoices.go51 symbols
politeiad/backend/gitbe/cmsplugin/cmsplugin.go51 symbols
politeiawww/legacy/user/user.go45 symbols
politeiawww/api/ticketvote/v1/v1.go44 symbols
politeiawww/cmd/politeiavoter/politeiavoter.go42 symbols
politeiad/api/v2/v2.go42 symbols

Datastores touched

(mysql)Database · 1 repos

For agents

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

⬇ download graph artifact

Ask about this repo answers extend the page