Skip to content

Commit 86340db

Browse files
committed
fix text, flow steps, typos
1 parent ed2807f commit 86340db

File tree

1 file changed

+10
-9
lines changed

1 file changed

+10
-9
lines changed

src/content/blog/2025-10-23-redesigned-publisher-tools.md

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -61,9 +61,10 @@ Based on what we’ve established so far, we can draw the following:
6161
**Key flow steps:**
6262

6363
1. Publisher customizes through the interface (the `frontend` module) → Configuration stored as JSON (keyed by wallet address + preset tag e.g., ($ilp.link/your-wallet)", "version1").
64-
2. Visitor loads page with embed script → Script loads from `cdn` module
65-
3. Script fetches configuration → `api` retrieves stored JSON and returns it
66-
4. Script renders the Tool → Instantiates Web Component from `components` with fetched configuration
64+
2. Publisher pastes the generated embed script into into the page `<body />`
65+
3. Visitor loads page with embed script → Script loads from `cdn` module
66+
4. Script fetches configuration → `api` retrieves stored JSON and returns it
67+
5. Script renders the Tool → Instantiates Web Component from `components` with fetched configuration
6768

6869
### Tool Rendering
6970

@@ -86,7 +87,7 @@ fetchConfig(API_URL, "widget", params).then((config) => {
8687

8788
The `<wm-payment-widget>` element is one of our interactive tools defined in the `components` module. The script creates an instance, passes the configuration as properties, and appends it to the DOM, using Shadow DOM for style encapsulation.
8889

89-
Lastly, also adds a monetization `<link>` tag to the `<head>`, using the wallet address used through the `frontend` interface. That means your site becomes Web Monetized automatically. You are welcome!
90+
Lastly, it also adds a monetization `<link>` tag to the `<head>`, using the wallet address used through the `frontend` interface. That means your site becomes Web Monetized automatically. You are welcome!
9091

9192
```typescript
9293
function appendMonetizationLink(walletAddressUrl: string) {
@@ -103,7 +104,7 @@ That’s all the embedded script does, nothing hidden or extra complexity, but d
103104

104105
**Why we need a `components` module**
105106

106-
The UI logic for widgets needs to live somewhere separate from the embed script, hence `components` module contains the actual Web Component implementations: the rendering logic, event handlers, state management, and UI interactions.
107+
The UI logic for widgets needs to live somewhere separate from the embed script, hence the `components` module contains the actual Web Component implementations: the rendering logic, event handlers, state management, and UI interactions.
107108

108109
By keeping components as standalone source code, they can be consumed in multiple ways:
109110

@@ -113,7 +114,7 @@ By keeping components as standalone source code, they can be consumed in multipl
113114

114115
### Runtime Payment Operations
115116

116-
Beyond the new architecture, the Publisher Tools also handle payments using [Open Payments protocol](https://openpayments.dev/overview/getting-started/). Every step of the payment flow is proxied through our `api` module. For example, when a visitor interacts with the widget wanting to make a one time donation (entering an amount, clicking "Pay"), the component makes API requests:
117+
Beyond the new architecture, the Publisher Tools also handle payments using [Open Payments](https://openpayments.dev/overview/getting-started/). Every step of the payment flow is proxied through our `api` module. For example, when a visitor interacts with the widget wanting to make a one time donation (entering an amount, clicking "Pay"), the component makes API requests:
117118

118119
```typescript
119120
// Generate a quote
@@ -133,21 +134,21 @@ await fetch(`${apiUrl}/payment/grant`, { method: "POST", body: "..." });
133134
await fetch(`${apiUrl}/payment/finalize`, { method: "POST", body: "..." });
134135
```
135136

136-
The API manages all interactions with Open Payments SDK handling grant authorization, creating outgoing payments, and coordinating with the component to complete the full protocol flow for the payment.
137+
The API manages all interactions with the Open Payments SDK handling grant authorization, creating outgoing payments, and coordinating with the component to complete the full flow for the payment.
137138

138139
**Key flow steps:**
139140

140141
1. Visitor interacts with widget (from `components`) → Enters wallet address and desired amount
141142
2. Component requests quote → `api` proxies to Open Payments infrastructure to handle the amount
142143
3. Component initializes interactive grant → `api` returns authorization URL
143-
4. Visitor authenticate and authorizes in popup → Wallet provider redirects back with interaction reference
144+
4. Visitor authenticates and authorizes in popup → Wallet provider redirects back with interaction reference
144145
5. Component finalizes payment → `api` creates outgoing payment on Interledger network
145146

146147
## What's Next?
147148

148149
The redesigned Publisher Tools establish a foundation for future enhancements:
149150

150-
**More tools** We plan to add new interactive tools with new ways of visitors to interact and sponsor your website's content through open payments.
151+
**More tools** We plan to add new interactive tools with new ways for visitors to interact and sponsor your website's content through Open Payments.
151152

152153
**Analytics integration** We want to give publishers insight into how visitors engage with their tools: how often users interact and how revenue breaks down per page.
153154

0 commit comments

Comments
 (0)