MCPcopy
hub / github.com/eggjs/examples

github.com/eggjs/examples @main sqlite

repository ↗ · DeepWiki ↗
436 symbols 799 edges 312 files 30 documented · 7%
README

Examples for egg

CI node version egg version

Usage

Find the example, then run command below. For example, run the hackernews-datahub example:

$ cd hackernews-datahub
$ npm install
$ npm run dev

Recommend to use Node >= 20

List of examples

Development

Run test

$ npm test

You can use --verbose to show more infomation

$ npm test -- --verbose

Show list of examples

$ npm run list

Extension points exported contracts — how you extend this code

NewsItem (Interface)
(no doc)
hackernews-async-ts/app/service/News.ts
BizConfig (Interface)
(no doc)
hackernews-async-ts/config/config.default.ts
Application (Interface)
(no doc)
sequelize-ts/test/factories.ts
IController (Interface)
(no doc)
hackernews-async-ts-di/app/controller/index.d.ts
Application (Interface)
(no doc)
hackernews-async-ts-di/config/defaultConfig.ts
NewsItem (Interface)
(no doc)
hackernews-async-ts-di/app/service/HackerNews.ts

Core symbols most depended-on inside this repo

get
called by 101
ipc/app/service/source.js
get
called by 36
httpclient/app/controller/httpclient.js
post
called by 34
unittest/app/controller/home.js
get
called by 21
unittest/app/service/user.js
get
called by 12
todomvc/app/service/todo.js
create
called by 11
sequelize/app/service/user.js
render
called by 10
helloworld/app/controller/foo.ts
parseInt
called by 7
sequelize/app/extend/helper.js

Shape

Method 212
Class 172
Function 46
Interface 6

Languages

TypeScript100%

Modules by API surface

httpclient/app/controller/httpclient.js14 symbols
cnode-api/app/service/topics.js9 symbols
assets-with-umi/app/web/pages/home/index.jsx9 symbols
todomvc/app/service/todo.js8 symbols
hackernews-async-ts-di/app/service/HackerNews.ts8 symbols
unittest/app/controller/home.js7 symbols
sequelize/app/service/user.js7 symbols
sequelize/app/service/post.js7 symbols
sequelize/app/controller/user.js7 symbols
sequelize/app/controller/post.js7 symbols
sequelize-ts/app/service/user.ts7 symbols
sequelize-ts/app/service/post.ts7 symbols

Dependencies from manifests, versioned

@eggjs/binbeta · 1×
@eggjs/mockbeta · 1×
@eggjs/scriptsbeta · 1×
@eggjs/tsconfigbeta · 1×
@types/cheerio0.22.1 · 1×
@types/mocha10 · 1×
@types/node22 · 1×
@types/supertest2.0.0 · 1×
antd3.3.0 · 1×
antd-mobile2.2.6 · 1×
autod3.0.1 · 1×
autod-egg1.0.0 · 1×

For agents

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

⬇ download graph artifact