# O que o REA pode encontrar?

Acompanhe investigações reais, de um clique em um botão até o código por trás dele. Cada exemplo explica o que você pode reproduzir no ambiente Linux hospedado.

## More REA investigations

[Download the examples](https://github.com/elreco/reacloud-examples/releases/download/rea-studio-v1/rea-studio-examples.zip)

### Notion · What does Notion actually copy?

Follow a copied block from the editor to the system clipboard. Find out how Notion can restore its structure.

The published REA study traced an IPC channel in Notion Desktop 7.6.1. Notion sends text and HTML to the system clipboard. The study also shows how an ID in the HTML can link a paste to saved block data.

A source-backed trace from the exposed API through Electron’s preload and main process.

[Source](https://rea.tools/showcase/notion/) · [Example files](https://github.com/elreco/reacloud-examples/tree/3c42a7dac8313a17b21ce44dcfc0513ffc510175/studio/clipboard-electron)

> Use REA to inspect the supplied Electron clipboard study (studio/clipboard-electron in the public repository below). Clone into a new folder if needed. Follow the Copy note button through notes:copy to clipboard.write, identify both formats, and cite files and lines. Use the linked official REA study to compare this with the documented Notion Desktop 7.6.1 behavior.

https://github.com/elreco/reacloud-examples

studio/clipboard-electron

https://rea.tools/showcase/notion/

### VS Code · Why does Refactor halve the counter?

Follow Microsoft’s Cat Coding sample from a command in the palette to the rule that rounds the counter.

The extension forwards a refactor message to the webview. Its handler takes half of the count and rounds up, so 41 becomes 21.

The handler, its calculation and a reproducible before-and-after check.

[Source](https://code.visualstudio.com/api/extension-guides/webview#passing-messages-from-an-extension-to-a-webview) · [Example files](https://github.com/microsoft/vscode-extension-samples/tree/ea85cf9019d7d777b666445e6988a712096e0cd9/webview-sample)

> Read Microsoft’s public VS Code webview sample at the revision below and use REA on its webview-sample directory. Trace catCoding.doRefactor through src/extension.ts to the refactor message in the webview. Explain and verify what happens at a count of 41 using a small isolated check. Cite the source files and lines.

https://github.com/microsoft/vscode-extension-samples

webview-sample @ ea85cf9019d7d777b666445e6988a712096e0cd9

https://code.visualstudio.com/api/extension-guides/webview#passing-messages-from-an-extension-to-a-webview

### Chrome · Build a request inspector

Capture two clicks in a small app with REA and Chromium. Turn the network results into a working view with a failure filter.

The stock checks each request /api/stock. One shows available inventory after HTTP 200. The other shows an archived product after HTTP 404.

An inspector with the action, method, URL, status and visible result. Turn on the filter to isolate the 404.

[Source](https://rea.tools/guides/) · [Example files](https://github.com/elreco/reacloud-examples/tree/3c42a7dac8313a17b21ce44dcfc0513ffc510175/studio/chrome-requests)

> Clone the public REA Cloud examples if needed. In studio/chrome-requests, start server.mjs in the background on port 4330 and use REA capture_browser_scenario on http://127.0.0.1:4330/. Record #available and #archived, their HTTP statuses and the final text in #result. Build your own small inspector with a filter for failed requests. Test the filter and give me its preview link.

https://github.com/elreco/reacloud-examples

studio/chrome-requests

https://rea.tools/guides/
