Files
Qiming Zhai fe19854bd7 feishu-sidebar 0.1.0: a page that opens Magpie Web in Feishu's sidebar (#1212)
A page plugin that turns a Magpie Web address into Feishu's
client/web_url/open AppLink (mode=appCenter), so Magpie Web opens in
Feishu desktop's left sidebar. No permissions, no request: the page only
builds the link. Addresses with credentials, a query or a fragment are
refused (keeps ?k= keys out of a shared link), and plain HTTP only on
loopback. By zhaiqiming.

Run at the reviewed head f3164eb2 (mica, temp HOME):
- bun test packages/feishu-sidebar: 3 pass, 0 fail.
- bun scripts/check.mjs feishu-sidebar: ok. bun test scripts: 39 pass.
- The page itself, with a stub bridge, in Playwright Chromium and
  WebKit at 400px, en and zh-CN: the title is translated, Enter on a
  loopback address shows the link, a ?k= address shows the error and
  hides the link, nothing scrolls sideways.

Not tried: Feishu desktop itself (the author verified it on macOS).
The package's first npm version waits for the owner; dist serves it.
2026-11-16 16:39:37 +08:00

1.0 KiB

Feishu sidebar

Open Magpie Web in the left sidebar of the Feishu desktop client. This page generates Feishu's client/web_url/open AppLink with mode=appCenter.

  1. Enable Settings → Network and sharing → Browser access in Magpie, or start magpie web.
  2. In Plugins → Feishu sidebar, enter the Web address, for example http://127.0.0.1:3430 on the same computer. Use a reachable HTTPS address for Magpie on another computer. Leave out the ?k=... sign-in parameter from the URL printed by magpie web.
  3. Generate the link and copy the selected text to your own Feishu chat. Open it in Feishu desktop. If Magpie asks for its Web access key, enter the key on Magpie's sign-in screen. To keep the tab, right-click it in the left sidebar and pin it.

The plugin generates the link locally in a sandboxed page. It doesn't read Magpie data, store the address, or send a request. The link includes the destination address, so share it only where you intend to disclose that address. Magpie Web still handles authentication.