MCPcopy Index your code
hub / github.com/PrivateBin/Directory

github.com/PrivateBin/Directory @0.19.0

Chat with this repo
repository ↗ · DeepWiki ↗ · release 0.19.0 ↗ · + Follow
471 symbols 1,090 edges 9 files 14 documented · 3%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

Directory

Rust based directory application to collect lists of federated instances of a software.

The application is built primarily using the following libraries:

  • https://rocket.rs - web framework, including a web server and multi-threaded request handler
  • https://hyper.rs - http client and server
  • https://tera.netlify.com - template engine
  • https://diesel.rs - database ORM and query builder

Configuration

The image supports the use of the following environment variables:

  • CRON: (Optional) If set when running the app a cron cycle is performed. Set it to CRON=FULL to run a full cron (once a day).
  • GEOIP_MMDB: path to the GeoIP database, in MaxMind format
  • ROCKET_DATABASES: database dict for Diesel SQLite library integration into Rocket
  • ROCKET_SECRET_KEY: Needed in production environments, used to protect private cookies, generate this using openssl rand -base64 32

Volumes

  • /var/directory.sqlite: Database file, needs to be writeable
  • /var/geoip-country.mmdb: GeoIP database, country level is sufficient

Network ports

  • 8000/tcp: HTTP of web service

Usage

make help

Core symbols most depended-on inside this repo

getOrCreateInstance
called by 29
css/bootstrap-5.3.8.js
_queueCallback
called by 16
css/bootstrap-5.3.8.js
rocket
called by 14
src/functions.rs
_
called by 14
css/bootstrap-5.3.8.js
m
called by 13
css/bootstrap-5.3.8.js
ge
called by 13
css/bootstrap-5.3.8.js
g
called by 12
css/bootstrap-5.3.8.js
be
called by 12
css/bootstrap-5.3.8.js

Shape

Method 275
Function 139
Class 56
Enum 1

Languages

TypeScript84%
Rust16%

Modules by API surface

css/bootstrap-5.3.8.js392 symbols
src/models.rs34 symbols
src/main.rs10 symbols
src/functions.rs10 symbols
src/tests.rs9 symbols
src/tasks.rs6 symbols
src/connections.rs5 symbols
css/dark-mode-switch.js5 symbols

For agents

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

⬇ download graph artifact