MCPcopy Index your code
hub / github.com/OpenTreeHole/treehole_next

github.com/OpenTreeHole/treehole_next @v2.0.9

Chat with this repo
repository ↗ · DeepWiki ↗ · release v2.0.9 ↗ · + Follow
290 symbols 875 edges 70 files 57 documented · 20%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

Open Tree Hole Next

Next Generation of OpenTreeHole Written In Golang

An Anonymous BBS

Features

To be done

Usage

build and run

git clone https://github.com/OpenTreeHole/treehole_next.git
cd treehole_next
# install swag and generate docs
go install github.com/swaggo/swag/cmd/swag@latest
swag init --parseInternal --parseDepth 1 # to generate the latest docs, this should be run before compiling
# build for debug
go build -o treehole.exe
# build for release
go build -tags "release" -ldflags "-s -w" -o treehole.exe
# run
./treehole.exe

test

export MODE=test
go test -v ./tests/...

benchmark

export MODE=bench
go test -v -benchmem -cpuprofile=cpu.out -benchtime=1s ./benchmarks/... -bench .

For documentation, please open http://localhost:8000/docs after running app

Badge

stars issues pull requests

standard-readme compliant

Powered by

Go Swagger

Contributing

Feel free to dive in! Open an issue or Submit PRs.

We are now in rapid development, any contribution would be of great help. For the developing roadmap, please visit this issue.

Contributors

This project exists thanks to all the people who contribute.

contributors

Licence

license © OpenTreeHole

Extension points exported contracts — how you extend this code

CanPreprocess (Interface)
(no doc) [4 implementers]
utils/utils.go
CanQuery (Interface)
(no doc) [4 implementers]
models/schemas.go
Model (Interface)
(no doc) [1 implementers]
utils/model.go
PermissionOwner (Interface)
(no doc) [1 implementers]
utils/perm/perm.go
JsonData (Interface)
(no doc)
tests/utils.go
Models (Interface)
(no doc)
models/base.go

Core symbols most depended-on inside this repo

Error
called by 52
utils/errors.go
testAPI
called by 45
tests/utils.go
Serialize
called by 24
utils/utils.go
ValidateBody
called by 20
utils/validate.go
MyLog
called by 18
utils/log.go
Create
called by 17
models/hole.go
Forbidden
called by 16
utils/errors.go
GetUserID
called by 15
models/user.go

Shape

Function 164
Struct 56
Method 53
TypeAlias 11
Interface 6

Languages

Go100%

Modules by API surface

models/floor.go17 symbols
models/hole.go14 symbols
models/report.go11 symbols
utils/validate.go10 symbols
tests/floor_test.go10 symbols
apis/hole/schemas.go10 symbols
apis/floor/schemas.go10 symbols
apis/floor/apis.go10 symbols
models/user.go9 symbols
apis/hole/apis.go9 symbols
tests/utils.go8 symbols
tests/hole_test.go7 symbols

For agents

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

⬇ download graph artifact