MCPcopy
hub / github.com/apache/answer

github.com/apache/answer @v2.0.1 sqlite

repository ↗ · DeepWiki ↗ · release v2.0.1 ↗
4,824 symbols 14,951 edges 855 files 1,633 documented · 34%
README

logo

Apache Answer - Build Q&A platform

A Q&A platform software for teams at any scales. Whether it’s a community forum, help center, or knowledge management platform, you can always count on Answer.

To learn more about the project, visit answer.apache.org.

LICENSE Language Language Go Report Card Discord

Screenshots

screenshot

Quick start

Running with docker

docker run -d -p 9080:80 -v answer-data:/data --name answer apache/answer:2.0.1

For more information, see Installation.

Plugins

Answer provides a plugin system for developers to create custom plugins and expand Answer’s features. You can find the plugin documentation here.

We value your feedback and suggestions to improve our documentation. If you have any comments or questions, please feel free to contact us. We’re excited to see what you can create using our plugin system!

You can also check out the plugins here.

Building from Source

Prerequisites

  • Golang >= 1.23
  • Node.js >= 20
  • pnpm >= 9
  • mockgen >= 0.6.0
  • wire >= 0.5.0

Build

# Install wire and mockgen for building. You can run `make check` to check if they are installed.
$ make generate
# Install frontend dependencies and build
$ make ui
# Install backend dependencies and build
$ make build

Contributing

Contributions are always welcome!

See CONTRIBUTING for ways to get started.

License

Apache License 2.0

Extension points exported contracts — how you extend this code

Checker (Interface)
Checker . [26 implementers]
internal/base/validator/validator.go
SiteInfoRepo (Interface)
go:generate mockgen -source=./siteinfo_service.go -destination=../mock/siteinfo_repo_mock.go -package=mock [3 implementers]
internal/service/siteinfo_common/siteinfo_service.go
Base (Interface)
Base is the base plugin [2 implementers]
plugin/base.go
VectorSearchSyncer (Interface)
VectorSearchSyncer is implemented by the core and provided to plugins via RegisterSyncer. Plugins call these methods to [2 …
plugin/vector_search.go
ImporterFunc (Interface)
(no doc) [4 implementers]
plugin/importer.go
KVStorage (Interface)
KVStorage defines the interface for plugins that need data storage capabilities [1 implementers]
plugin/kv_storage.go
Render (Interface)
select_theme [1 implementers]
plugin/render.go
AIConversationRepo (Interface)
AIConversationRepo [1 implementers]
internal/repo/ai_conversation/ai_conversation_repo.go

Core symbols most depended-on inside this repo

HandleResponse
called by 423
internal/base/handler/handler.go
DeShortID
called by 171
pkg/uid/sid.go
Get
called by 156
internal/service/content/answer_service.go
BindAndCheck
called by 144
internal/base/handler/handler.go
Update
called by 140
internal/service/content/answer_service.go
get
called by 135
ui/src/utils/request.ts
Send
called by 125
internal/base/queue/queue.go
Tr
called by 118
internal/base/translator/provider.go

Shape

Method 1,956
Function 1,716
Struct 712
Interface 376
TypeAlias 46
Class 10
FuncType 6
Enum 2

Languages

Go70%
TypeScript30%

Modules by API surface

ui/src/common/interface.ts102 symbols
internal/service/tag_common/tag_common.go73 symbols
internal/schema/siteinfo_schema.go69 symbols
internal/service/question_common/question.go64 symbols
internal/service/mock/siteinfo_repo_mock.go56 symbols
internal/service/siteinfo_common/siteinfo_service.go52 symbols
ui/src/services/common.ts50 symbols
internal/service/siteinfo/siteinfo_service.go46 symbols
internal/controller_admin/siteinfo_controller.go42 symbols
internal/service/user_common/user.go37 symbols
internal/schema/user_schema.go37 symbols
internal/schema/question_schema.go37 symbols

Dependencies from manifests, versioned

dario.cat/mergov1.0.1 · 1×
filippo.io/edwards25519v1.1.0 · 1×
github.com/Azure/go-ansitermv0.0.0-2023012417243 · 1×
github.com/KyleBanks/depthv1.2.1 · 1×
github.com/LinkinStars/go-i18n/v2v2.2.2 · 1×
github.com/Machiel/slugifyv1.0.1 · 1×
github.com/Masterminds/semver/v3v3.3.0 · 1×
github.com/Microsoft/go-winiov0.6.2 · 1×
github.com/Nvveen/Gottyv0.0.0-2012060400481 · 1×
github.com/anargu/gin-brotliv0.0.0-2022011605235 · 1×
github.com/andybalholm/brotliv1.1.0 · 1×
github.com/asaskevich/govalidatorv0.0.0-2023030114320 · 1×

Datastores touched

(mysql)Database · 1 repos

For agents

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

⬇ download graph artifact