MCPcopy Index your code
hub / github.com/BeryJu/gravity

github.com/BeryJu/gravity @v0.33.0

Chat with this repo
repository ↗ · DeepWiki ↗ · release v0.33.0 ↗ · + Follow
4,694 symbols 14,510 edges 511 files 1,544 documented · 33%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README
<a href="https://gravity.beryju.io"><img src="https://github.com/BeryJu/gravity/raw/v0.33.0/web/src/assets/images/logo-color.png" height="100" /></a>

Codecov GitHub Workflow Status Latest version

Fully-replicated DNS, DHCP and TFTP Server backed by etcd.

Screenshots

See gravity.beryju.io for more info.

Extension points exported contracts — how you extend this code

Role (Interface)
(no doc) [12 implementers]
pkg/roles/role.go
MappedNullable (Interface)
(no doc) [95 implementers]
api/utils.go
Role (Interface)
(no doc) [12 implementers]
web/src/pages/cluster/RolesPage.ts
GravityOption (FuncType)
(no doc)
tests/gravity/gravity.go
Handler (Interface)
(no doc) [5 implementers]
pkg/roles/dns/handler.go
KV (Interface)
(no doc)
web/src/utils.ts
DNSImporter (Interface)
(no doc) [5 implementers]
pkg/roles/dns/api_zones.go
HandlerConfig (Interface)
(no doc)
web/src/pages/dns/DNSHandlerConfigEditor.ts

Core symbols most depended-on inside this repo

KV
called by 573
pkg/roles/role.go
IsNil
called by 481
api/utils.go
Key
called by 304
pkg/storage/key.go
Marshal
called by 232
pkg/storage/client.go
Error
called by 221
api/client.go
Unmarshal
called by 193
pkg/storage/client.go
PanicIfError
called by 180
pkg/tests/utils.go
ForRole
called by 165
pkg/instance/role_instance.go

Shape

Method 3,030
Function 812
Struct 502
Class 217
TypeAlias 80
Interface 35
FuncType 14
Enum 4

Languages

Go84%
TypeScript16%

Modules by API surface

api/api_roles_api.go82 symbols
api/utils.go77 symbols
api/model_dns_api_record.go69 symbols
api/model_dns_api_records_put_input.go60 symbols
api/api_roles_dhcp.go57 symbols
api/api_roles_dns.go56 symbols
api/api_roles_discovery.go48 symbols
api/model_dhcp_api_lease.go45 symbols
api/model_api_api_tool_ping_output.go45 symbols
api/model_dhcp_api_scope.go43 symbols
api/model_dhcp_api_scopes_put_input.go38 symbols
api/model_types_oidc_config.go37 symbols

For agents

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

⬇ download graph artifact