Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/fox-one/mixin-sdk-jsbridge
The JSBridge SDK base on Mixin Eco
https://github.com/fox-one/mixin-sdk-jsbridge
Last synced: 3 months ago
JSON representation
The JSBridge SDK base on Mixin Eco
- Host: GitHub
- URL: https://github.com/fox-one/mixin-sdk-jsbridge
- Owner: fox-one
- License: mit
- Created: 2021-03-19T14:02:46.000Z (almost 4 years ago)
- Default Branch: master
- Last Pushed: 2022-03-08T02:50:46.000Z (almost 3 years ago)
- Last Synced: 2024-05-16T19:04:21.066Z (9 months ago)
- Language: TypeScript
- Homepage:
- Size: 12.3 MB
- Stars: 10
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-mixin - Mixin JS Bridge - A jsbridge wrapper for Mixin Messenger, make a bridge between your javascript and the Webview of Mixin Messenger, provides a convenient way to call Messenger's code from your webpage or SPA. (SDK / 3rd-party SDK)
README
# @foxone/mixin-sdk-jsbridge
[![NPM downloads](http://img.shields.io/npm/dm/%40foxone%2Fmixin-sdk-jsbridge.svg?style=flat-square)](https://www.npmjs.com/package/@foxone/mixin-sdk-jsbridge)
[![npm version](https://badge.fury.io/js/%40foxone%2Fmixin-sdk-jsbridge.svg)](https://badge.fury.io/js/%40foxone%2Fmixin-sdk-jsbridge)
[![install size](https://packagephobia.now.sh/badge?p=%40foxone%2Fmixin-sdk-jsbridge)](https://packagephobia.now.sh/result?p=%40foxone%2Fmixin-sdk-jsbridge)
[![license](http://img.shields.io/npm/l/%40foxone%2Fmixin-sdk-jsbridge.svg)](https://github.com/fox-one/mixin-sdk-jsbridge/blob/master/LICENSE)English | [简体中文](./README.zh-CN.md)
## Introduction
The Js Bridge SDK base on Mixin Eco.There is a [bot](https://fox-one.github.io/mixin-sdk-jsbridge-bot/#/) which use the sdk.
You can search `7000103847` in Mixin Messenger or Reborn App to find it.
For more details, please read the [Documentation](https://fox-one.github.io/mixin-sdk-jsbridge/#/)
## Install
### NPM
```shell
npm install -S @foxone/mixin-sdk-jsbridge
# or
yarn add @foxone/mixin-sdk-jsbridge
````src/index.ts`:
```typescript
import Bridge from '@foxone/mixin-sdk-jsbridge';const bridge = new Bridge();
bridge.getContext();
// ……
```### CDN
```html
Hello MXBridge
login
function goLogin () {
const { Bridge } = $MXBridge;
const bridge = new Bridge({
client_id: '86cf39ad-4e63-46c6-a6db-90cea8d05c1d'
});
bridge.login({
phone: true,
assets: true
});
}
```
## Dev
For debugging or maintenance, you can clone the whole git repository and then start the project.```shell
git clone --depth 1 [email protected]:fox-one/mixin-sdk-jsbridge.gitcd mixin-sdk-jsbridge
npm i -g lerna yarn
yarn bootstrap
yarn dev
```[More Detials](./DEV.md)