whatisgithub

What is xcx_showqrcode?

likeyun/xcx_showqrcode — explained in plain English

Analysis updated 2026-07-19 · repo last pushed 2024-07-29

19JavaScriptAudience · developerComplexity · 2/5StaleSetup · easy

In one sentence

A simple WeChat mini-program add-on that displays a QR code image so users can long-press to scan and add someone's WeChat contact, like a digital business card screen.

Mindmap

mindmap
  root((repo))
    What it does
      Shows QR code image
      Long-press to scan
      Digital business card
    Features
      Optional title and description
      External URL scheme links
      Webview whitelisted domains
    Use cases
      Sales reps sharing contacts
      Customer service contact
      Group chat onboarding
    Audience
      WeChat mini-program owners
      Small businesses
      Community organizers

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

What do people build with it?

USE CASE 1

A sales rep shares a mini-program link so prospects can scan and add their personal WeChat contact.

USE CASE 2

A small business sets up a customer service QR code page inside their mini-program.

USE CASE 3

A community organizer lets members scan a QR code to join a WeChat group chat.

USE CASE 4

Build an external link that opens directly to a QR code page from a web page or text message.

What is it built with?

JavaScriptWeChat Mini-Program

How does it compare?

likeyun/xcx_showqrcodeaburousan/typsteditordeedy/glacial-valley
Stars191919
LanguageJavaScriptJavaScriptJavaScript
Last pushed2024-07-29
MaintenanceStale
Setup difficultyeasymoderateeasy
Complexity2/53/52/5
Audiencedeveloperresearcherdeveloper

Figures from each repo's GitHub metadata at analysis time.

How do you get it running?

Difficulty · easy Time to first run · 5min

Requires a registered WeChat mini-program with access to the WeChat admin backend to generate mini-program codes.

So what is it?

Xcx_ShowQrcode is a simple add-on for WeChat mini-programs that displays a QR code image so users can long-press it to scan and add someone's WeChat contact. Think of it as a digital business card screen inside a mini-program, you pass in an image URL and optionally a title and description, and it renders the code for people to scan. The way it works is straightforward. You generate a mini-program code in the WeChat admin backend that points to a specific page path, appending your QR code image URL, a title, and a short description as parameters. When a user opens that page inside the mini-program, they see the image and can long-press to recognize and add the WeChat contact. The title and description fields are optional, so you can keep it minimal or add context around the code. The README also covers how to build a "plaintext URL Scheme," which is essentially a special link that can open a specific mini-program page from outside WeChat, for example, from a regular web page or a text message. You assemble the link by combining your app ID, the target page path, any query parameters, and a version flag indicating whether you want the production, trial, or development version of the mini-program. This lets you direct people straight to the QR code page from external sources. This tool would be useful for anyone running a WeChat mini-program who needs a lightweight way to let users add a contact. A sales rep could share their mini-program link with prospects who then scan the rep's personal WeChat code. A small business could use it for customer service. A community organizer could let members scan into a group chat. It is a small, focused utility rather than a full-featured app, it does one thing and keeps it simple. The project also links to a companion page that loads the image through a webview restricted to whitelisted domains, offering a more secure alternative if domain control matters to you.

Copy-paste prompts

Prompt 1
Help me set up a WeChat mini-program page that displays a QR code image users can long-press to scan and add my WeChat contact. I want to pass the image URL, a title, and a description as parameters.
Prompt 2
Generate a WeChat URL Scheme link that opens my mini-program QR code page from outside WeChat. My app ID is [APP_ID], the page path is [PAGE_PATH], and I want the production version.
Prompt 3
I want to build a digital business card screen in my WeChat mini-program. How do I structure the page so it receives a QR code image URL, optional title, and optional description as query parameters?
Prompt 4
Help me configure a webview in my WeChat mini-program that loads a QR code image from a whitelisted domain for added security.

Frequently asked questions

What is xcx_showqrcode?

A simple WeChat mini-program add-on that displays a QR code image so users can long-press to scan and add someone's WeChat contact, like a digital business card screen.

What language is xcx_showqrcode written in?

Mainly JavaScript. The stack also includes JavaScript, WeChat Mini-Program.

Is xcx_showqrcode actively maintained?

Stale — no commits in 1-2 years (last push 2024-07-29).

How hard is xcx_showqrcode to set up?

Setup difficulty is rated easy, with roughly 5min to a first successful run.

Who is xcx_showqrcode for?

Mainly developer.

Open on GitHub → Ask about another repo

This repo across BitVibe Labs

Verify against the repo before relying on details.