https://github.com/mitojs/mitojs
A Lite SDK For Monitoring Web and MiniProgram
https://github.com/mitojs/mitojs
sdk typescript web-monitor
Last synced: 5 months ago
JSON representation
A Lite SDK For Monitoring Web and MiniProgram
- Host: GitHub
- URL: https://github.com/mitojs/mitojs
- Owner: mitojs
- License: mit
- Created: 2021-07-28T09:34:27.000Z (almost 4 years ago)
- Default Branch: master
- Last Pushed: 2024-05-10T02:58:01.000Z (about 1 year ago)
- Last Synced: 2024-11-28T06:08:29.524Z (6 months ago)
- Topics: sdk, typescript, web-monitor
- Language: TypeScript
- Homepage: https://mitojs.github.io/mito-doc/
- Size: 13.2 MB
- Stars: 466
- Watchers: 3
- Forks: 78
- Open Issues: 9
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: .github/CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
README
![]()
A Lightweight SDK For Monitor Web
[](https://www.npmjs.com/package/@mitojs/web)
[](https://github.com/prettier/prettier)
[](https://github.com/mitojs/mitojs/commits/master)
[](https://travis-ci.com/github/mitojs/mitojs)
[](https://codecov.io/gh/mitojs/mitojs)
[](http://npm-stat.com/charts.html?package=@mitojs/browser)
[](https://github.com/mitojs/mitojs/blob/dev/LICENSE)[中文文档](./README.zh_CN.md)
## 👋 Features
✔️ 🔨 monitor Xhr、Fetch、wx.request
✔️ 🔨 monitor console、wx.console
✔️ 🔨 monitor route change(hashroute、browser route、wx route)
✔️ 🔨 monitor code error、resource load error
✔️ 🔨 monitor click、wx:tab、wx:touchmove
✔️ 👌 rich hooks and options [configuration doc](https://mitojs.github.io/mito-doc/#/sdk/guide/basic-configuration)
✔️ 👌 support web(>= IE8)[@mitojs/browser](https://mitojs.github.io/mito-doc/#/sdk/guide/browser)
✔️ 👌 support framework with Vue3、Vue2.6[@mitojs/vue](https://mitojs.github.io/mito-doc/#/sdk/guide/vue)、React@latest[@mitojs/react](https://mitojs.github.io/mito-doc/#/sdk/guide/react)
✔️ 👌 support native wxmini、uni-app、remax framework etc [@mitojs/wx-mini](https://mitojs.github.io/mito-doc/#/sdk/guide/wx-mini)
## 😎 Get Started
here is [document](https://mitojs.github.io/mito-doc/#/sdk/guide/introduction).Build your first demo in 2 min or less:
### browser
#### 🛠️ Install
```bash
# using npm
npm i @mitojs/browser
# using yarn
yarn add @mitojs/browser
```#### 🥳 Usage
```typescript
import { init } from '@mitojs/browser'const MitoInstance = init({
// set debug true to convenient debugger in dev,set false in prod
debug:true,
dsn: 'https://test.com/yourInterface',
maxBreadcrumbs: 100
})
```more usage info of `@mitojs/browser` [click here](https://mitojs.github.io/mito-doc/#/sdk/guide/browser)
## 🧐 Demo for SDK
**here are some demo for sdk of collecting data**
[react-sdk-demo](https://mitojs.github.io/react-sdk-demo):Use @mitojs/react in react@next
[vue3-sdk-demo](https://mitojs.github.io/vue3-sdk-demo):Use @mitojs/vue in Vue3.x
## 📞 issue&&contact
### issue
welcome to raise issue, you can contact me on wx or email if you have some good suggestion(notes: mitojs)
### Contact
* wx:cjinhuo
* send resume to email:[email protected]
* bytedance introduce:(Hanghou、Beijing、Shanghai、Shenzhen、Guangzhou)
1. [hangzhou-jobs](https://jobs.bytedance.com/experienced/position?keywords=%E5%89%8D%E7%AB%AF&category=6704215862603155720%2C6704215862557018372%2C6704215886108035339%2C6704215888985327886%2C6704215897130666254%2C6704215956018694411%2C6704215957146962184%2C6704215958816295181%2C6704215963966900491%2C6704216109274368264%2C6704216296701036811%2C6704216635923761412%2C6704217321877014787%2C6704219452277262596%2C6704219534724696331%2C6938376045242353957&location=CT_52&project=&type=&job_hot_flag=¤t=1&limit=10)(web infrastructure、platform architecture etc.)