MCPcopy Index your code
hub / github.com/KieSun/per-moniteur

github.com/KieSun/per-moniteur @main

Chat with this repo
repository ↗ · DeepWiki ↗ · + Follow
26 symbols 60 edges 12 files 0 documented · 0%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

per-moniteur

一个方便获取各类性能指标及 Web Vitals 的库。

安装

npm install per-moniteur --save

使用

import PerMoniteur from 'per-moniteur'

new PerMoniteur({
  tracker: (type, data, allData) => {
    console.log('type: ', type)
    console.log(`${type} data: `, data)
    console.log('allData: ', allData)
  },
})

能获取的数据指标

  • NavigationTime
  • NetworkInfo
  • FP
  • FCP
  • FID
  • TBT
  • LCP
  • CLS
  • TTI
  • FMP
  • Web Vitals Score

License

MIT © yck.

Extension points exported contracts — how you extend this code

IPerProps (Interface)
(no doc) [1 implementers]
src/types.ts
Window (Interface)
(no doc)
src/index.d.ts
IPerCBProps (Interface)
(no doc)
src/types.ts

Core symbols most depended-on inside this repo

logIndicator
called by 11
src/log.ts
getObserver
called by 5
src/utils.ts
getScore
called by 5
src/utils.ts
markStart
called by 2
src/index.ts
markEnd
called by 1
src/index.ts
fmpStart
called by 1
src/index.ts
fmpEnd
called by 1
src/index.ts
isDev
called by 1
src/utils.ts

Shape

Function 14
Method 7
Interface 3
Class 2

Languages

TypeScript100%

Modules by API surface

src/index.ts9 symbols
src/indicator.ts8 symbols
src/utils.ts4 symbols
src/types.ts2 symbols
src/log.ts2 symbols
src/index.d.ts1 symbols

For agents

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

⬇ download graph artifact