MCPcopy
hub / github.com/Tencent/vConsole

github.com/Tencent/vConsole @v3.15.1 sqlite

repository ↗ · DeepWiki ↗ · release v3.15.1 ↗
396 symbols 760 edges 47 files 57 documented · 14%
README

English | 简体中文

vConsole

A lightweight, extendable front-end developer tool for mobile web page.

vConsole is framework-free, you can use it in Vue or React or any other framework application.

Now vConsole is the official debugging tool for WeChat Miniprograms.


Features

  • Logs: console.log|info|error|...
  • Network: XMLHttpRequest, Fetch, sendBeacon
  • Element: HTML elements tree
  • Storage: Cookies, LocalStorage, SessionStorage
  • Execute JS command manually
  • Custom plugins

For details, please see the screenshots below.


Release Notes

Latest version: npm version

Detailed release notes for each version are available on Changelog.


Guide

See Tutorial for more usage details.

For installation, there are 2 primary ways of adding vConsole to a project:

Method 1: Using npm (Recommended)

$ npm install vconsole
import VConsole from 'vconsole';

const vConsole = new VConsole();
// or init with options
const vConsole = new VConsole({ theme: 'dark' });

// call `console` methods as usual
console.log('Hello world');

// remove it when you finish debugging
vConsole.destroy();

Method 2: Using CDN in HTML:

<script src="https://unpkg.com/vconsole@latest/dist/vconsole.min.js"></script>
<script>
  // VConsole will be exported to `window.VConsole` by default.
  var vConsole = new window.VConsole();
</script>

Available CDN:

  • https://unpkg.com/vconsole@latest/dist/vconsole.min.js
  • https://cdn.jsdelivr.net/npm/vconsole@latest/dist/vconsole.min.js

Preview

http://wechatfe.github.io/vconsole/demo.html


Screenshots

Overview

Light theme

Dark theme

Log Panel

Log styling

Command line

System Panel

Performance info

Output logs to different panel

console.log('output to Log panel.')
console.log('[system]', 'output to System panel.')

Network Panel

Request details

Element Panel

Realtime HTML elements structure

Storage Panel

Add, edit, delete or copy Cookies / LocalStorage / SessionStorage


Documentation

vConsole:

Custom Plugin:


Third-party Plugins


Feedback

QQ Group: 497430533


License

The MIT License

Extension points exported contracts — how you extend this code

TrackerHandler (Interface)
(no doc) [2 implementers]
src/component/recycleScroller/scroll/touchTracker.ts
IStorage (Interface)
(no doc) [2 implementers]
src/storage/storage.model.ts
IVConsoleNode (Interface)
(no doc)
src/element/element.model.ts
VConsoleLogOptions (Interface)
(no doc)
src/core/options.interface.ts
IVConsoleTopbarOptions (Interface)
(no doc)
src/lib/plugin.ts
IVConsoleLogData (Interface)
(no doc)
src/log/log.model.ts
CookieOptions (Interface)
(no doc)
src/storage/storage.cookie.ts
VConsoleNetworkOptions (Interface)
(no doc)
src/core/options.interface.ts

Core symbols most depended-on inside this repo

set
called by 22
src/network/xhr.proxy.ts
info
called by 15
src/log/log.exporter.ts
isArray
called by 14
src/lib/tool.ts
debug
called by 14
src/log/log.exporter.ts
apply
called by 12
src/network/fetch.proxy.ts
get
called by 10
src/log/log.store.ts
trigger
called by 9
src/lib/plugin.ts
log
called by 9
src/log/log.exporter.ts

Shape

Method 229
Function 78
Class 74
Interface 15

Languages

TypeScript100%

Modules by API surface

src/lib/tool.ts40 symbols
src/log/log.model.ts26 symbols
src/core/core.ts26 symbols
src/network/xhr.proxy.ts20 symbols
src/element/element.ts19 symbols
src/network/fetch.proxy.ts17 symbols
src/lib/plugin.ts15 symbols
src/storage/storage.model.ts14 symbols
src/storage/storage.cookie.ts14 symbols
src/component/recycleScroller/scroll/touchTracker.ts14 symbols
src/component/recycleScroller/scroll/scrollHandler.ts14 symbols
src/storage/storage.wx.ts11 symbols

Dependencies from manifests, versioned

@babel/core7.14.0 · 1×
@babel/plugin-proposal-class-properties7.13.0 · 1×
@babel/plugin-proposal-export-namespace-from7.12.13 · 1×
@babel/plugin-proposal-object-rest-spread7.13.8 · 1×
@babel/plugin-transform-block-scoping7.16.0 · 1×
@babel/plugin-transform-runtime7.17.0 · 1×
@babel/preset-env7.14.1 · 1×
@babel/preset-typescript7.13.0 · 1×
@babel/runtime7.17.2 · 1×
babel-loader8.2.4 · 1×
babel-plugin-add-module-exports1.0.4 · 1×
copy-text-to-clipboard3.0.1 · 1×

For agents

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

⬇ download graph artifact