Pay-per-second video
Charge while the stream plays; stop the meter when the viewer stops.
data-nanorail-type="stream"
data-nanorail-price-per-second="0.001"Infrastructure for selling any paywalled content or media — articles, video, datasets, APIs, courses, images — to autonomous agents. The demo is a research newsletter; that's just one surface.
npm i @nanorail/sdk
AI agents read differently than people. They don't follow a publication over a month — they fetch a specific paragraph, a specific chart, a specific citation, and move on. Today, publishers have no native way to monetize that demand.
A subscription serves this demand well. NanoRail leaves it exactly as it is.
Often only a small portion of available content — and there's no native infrastructure to charge for it.
NanoRail creates that infrastructure: discovery, metered access, receipts, and payments for agent consumption — alongside the subscriptions you already sell.
NanoRail does not replace subscriptions. It monetizes demand that subscriptions cannot efficiently serve.
Two sides, both automatic. The publisher marks content once; consumers (human or agent) discover, pay, and receive — per unit.
Every NanoRail publisher gets a Publisher Discovery Agent — a query interface over its paid catalog. A buyer agent asks "do you have information for my task?" and gets ranked, publicly-safe suggestions (title, teaser, tags, price, confidence) — never the content — so it decides what's worth buying before paying. Watch it in Agent Mode on the demo: pick a task, and the agent discovers, decides, buys only what's relevant, and returns an answer with sources, receipts, and total cost.
Publishers decide what can be purchased. Users decide what their agents are allowed to buy. The Agent Wallet is the control layer in between — NanoRail enforces both policies before any money moves.
A hard daily cap — the agent can never exceed it.
Restrict purchases to verified publishers only.
Allow articles, charts, citations; block video, audio, downloads.
Auto-approve small buys; require manual approval above a threshold.
Every purchase issues a receipt — a verifiable spend history.
In the demo, the floating Agent Wallet shows the live budget, permissions, and purchase rules — and every purchase or block appears in plain language. It's not a payment dashboard; it's how a user governs an autonomous agent's spending.
This is not a fake payment flow. Every unlock is authorized by a signed voucher and settled for real: each batch posts an on-chain TIP-20 transfer you can open on the explorer.
One script tag and one attribute. No manifest to maintain, no payment code to write.
<script src="https://cdn.yoursite.com/nanorail.js"></script>
<p data-nanorail-price="0.005" data-nanorail-type="text">
Premium paragraph
</p>
Open the live minimal example ↗ — a complete working integration in one HTML file. Prefer npm? npm i @nanorail/sdk then initNanoRail({ gatewayUrl, articleId }).
The demo monetizes a research article — but the same attributes meter any paywalled content or media: publishing, video & audio, datasets, APIs, software, education. Agents need one shared way to discover, evaluate, purchase, and access digital resources; NanoRail is that layer. These are patterns you can build on it — illustrative of the surface area, not features shipped in this demo.
Charge while the stream plays; stop the meter when the viewer stops.
data-nanorail-type="stream"
data-nanorail-price-per-second="0.001"Pay the viewer per second of verified attention; bill the advertiser for the same.
data-nanorail-type="attention"
data-nanorail-reward-per-second="0.0005"Reveal an image tile-by-tile as vouchers sign — paid media, datasets, previews.
data-nanorail-type="tile"
data-nanorail-price="0.002"
data-nanorail-tile="12,7"Sell rows or columns of a table independently; agents buy only the slice they need.
data-nanorail-type="dataset"
data-nanorail-price-per-row="0.0001"Gate an endpoint's response behind a 402; the caller pays per fetch, no subscription.
data-nanorail-type="api"
data-nanorail-price="0.01"Unlock individual lessons under a learner budget; receipts double as progress.
data-nanorail-type="lesson"
data-nanorail-price="0.05"The newsletter in the demo is just an example application. The product is the rail underneath it — and it's open source, built to be forked and extended to any medium.
NanoRail is open source and built to stay that way. The goal isn't to monetize NanoRail — it's to give every publisher and every medium a free, shared primitive for the agent economy. Use it, fork it, extend it to your content type, and contribute back.
A new consumer class is emerging. NanoRail is the open infrastructure publishers use to monetize it — across articles, media, data, APIs, and software alike.