MCPcopy
hub / github.com/NervJS/taro

github.com/NervJS/taro @v4.2.0 sqlite

repository ↗ · DeepWiki ↗ · release v4.2.0 ↗
16,054 symbols 47,283 edges 3,653 files 2,285 documented · 14%
README

Taro

A cross-platform and -framework solution for easily developing applications across mini-programs, Web, APP, etc.

PRs Welcome GitHub contributors GitHub commit activity GitHub closed issues GitHub commits since latest release (by date) GitHub Release Date

<a href="https://github.com/NervJS/taro/blob/next/README.md">简体中文</a> | <a href="https://github.com/NervJS/taro/blob/next/README_EN.md">English</a>

👽 Taro['tɑ:roʊ], Ultraman Taro, the chief instructor of the Space Guard, the strongest Ultraman.

Contents

  1. Introduction
  2. Resources
  3. Community
  4. Status
  5. Cases
  6. Join us
  7. Issues
  8. Acknowledgements
  9. Contributors
  10. Milestones
  11. Release Notes
  12. Communication

Introduction

Taro is an open style cross-platform and -framework solution that supports users to develop WeChat/JD/Baidu/Alipay/ByteDance/QQ mini-programs/H5 and React Native applications with React/Vue/Nerv and other frameworks. Nowdays, there are various types of mini-programs on the market. Multiple platforms such as Web, React Native, and WeChat mini-programs are widely used by the developers. Different codes are written while we require to show features on different platforms. The ability to be compatible with multiple platforms within one code is extremely needed.

Version

To migrate from Taro 1/2 to Taro 3, please refer to The definitive guide to Taro version upgrades.

Resources

5 Minute Tutorial

Awesome-taro

Juejin book: Taro Cross-platform Development in Action

Community

Taro market

UI Library

Name Link Intro Framework Taro Version
taro-ui https://taro-ui.jd.com/#/ A cross-platform UI library based on Taro React Taro 1/2/3
NutUI https://nutui.jd.com/#/ A JD-style light-weighted Vue library Vue3 Taro 3
taroify https://taroify.github.io/taroify.com/introduce/ A light-weighted and reliable Taro library for mini-programs (Vant's Taro version) React Taro 3
@antmjs/vantui https://antmjs.github.io/vantui/#/home A UI library that supports Taro and React, based on Youzan VantWeapp React Taro 3

Status

Alt

Cases

Taro has been used in our production environment, and widely used in the industry for cross-platform development.

Call for more cases

Join us

Taro community

Welcome to the Taro community

Contribute to Taro

You are very welcome to contribute your code for Taro, before submitting your code, please read CONTRIBUTING.

If you want to implement a feature for Taro, you need to write an RFC document first. Follow the RFC and submit your code after the discussion in the community.

Issues

Report issues to Taro

Highly recommend reading these books before reporting issues How to Ask Questions The Smart Way(Chinese), How to Ask Questions in an open-source community, How to Report Bugs Effectively, How to Ask Bad Questions to Open Source Projects(Chinese). Good questions can be answered quickly.

Let's fund issues in this repository

Acknowledgements

nanjingboy jsNewbee Qiyu8 Garfield550
nanjingboy jsNewbee Qiyu8 Garfield Lee

Contributors

Milestones

Milestones

Release Notes

Taro follows Angular Style Commit Message Conventions, please read Release Notes.

Communication

Official Wechat group

License

MIT License

Copyright (c) O2Team

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Extension points exported contracts — how you extend this code

MediaQueryObserver (Interface)
`MediaQueryObserver` 对象,用于监听页面 media query 状态的变化,如界面的长宽是不是在某个指定的范围内。 [9 implementers]
packages/taro/types/api/wxml/index.d.ts
ReactPageInstance (Interface)
(no doc) [37 implementers]
packages/taro-runtime/src/dsl/instance.ts
IDataSource (Interface)
(no doc) [2 implementers]
packages/taro-platform-harmony-cpp/types/define.d.ts
Templates (Interface)
* wxml 界面下的 template 模板信息 * * @param { any[] } funcs 模板所用方法集 * @param { any[] } applyTemplates 套用模板集
packages/taroize/src/wxml.ts
PickerStandardProps (Interface)
选择器通用参数
packages/taro-components/types/Picker.d.ts
Props (Interface)
* 回调结构内容 * @returns
examples/mini-program-example/src/components/callbackContents/index.tsx
Plugin (Interface)
(no doc) [2 implementers]
crates/native_binding/binding.d.ts
RequestTask (Interface)
(no doc) [1 implementers]
packages/taro-h5/src/api/network/request/index.ts

Core symbols most depended-on inside this repo

concat
called by 2813
packages/taro-extend/types/index.d.ts
defineProperty_defineProperty
called by 1287
packages/taro-cli-convertor/report/static/js/bundle.js
call
called by 1168
packages/shared/src/runtime-hooks.ts
push
called by 1045
packages/taro-extend/types/index.d.ts
forEach
called by 990
packages/taro-extend/types/index.d.ts
createElement
called by 971
packages/taro-runtime/src/dom/document.ts
map
called by 802
packages/taro-extend/types/index.d.ts
assign
called by 712
packages/taro-runtime/src/bom/location.ts

Shape

Function 6,866
Method 5,568
Interface 1,980
Class 1,599
Enum 41

Languages

TypeScript100%

Modules by API surface

packages/taro-cli-convertor/report/static/js/bundle.js1,709 symbols
packages/taro-plugin-react-devtools/src/backend/index.js472 symbols
tests/__tests__/bundled/globby/index.js386 symbols
packages/taro/types/api/cloud/index.d.ts183 symbols
packages/taro-extend/types/index.d.ts144 symbols
packages/taro/types/api/files/index.d.ts132 symbols
packages/taro-platform-harmony-hybrid/src/api/apis/NativeApi.ts115 symbols
packages/taro/types/api/canvas/index.d.ts89 symbols
packages/taro/types/api/device/nfc.d.ts87 symbols
packages/taro/types/api/media/audio.d.ts80 symbols
packages/taro-platform-harmony/src/runtime-ets/dom/stylesheet/index.ts80 symbols
packages/taro-platform-harmony-cpp/src/runtime/runtime-cpp/dom/stylesheet/index.ts80 symbols

Dependencies from manifests, versioned

@ampproject/remapping2.3.0 · 1×
@ant-design/react-native5.0.0 · 1×
@babel/cli7.24.1 · 1×
@babel/code-frame7.24.2 · 1×
@babel/core7.24.4 · 1×
@babel/eslint-parser7.24.1 · 1×
@babel/generator7.24.4 · 1×
@babel/helper-module-imports7.18.6 · 1×
@babel/helper-plugin-utils7.24.8 · 1×
@babel/parser7.24.4 · 1×
@babel/plugin-proposal-decorators7.24.1 · 1×
@babel/plugin-proposal-do-expressions7.24.1 · 1×

For agents

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

⬇ download graph artifact