the onramp for pay-as-you-go decentralized storage on IPFS — SOL, USDFC, USDC, and x402 agent payments
afara is an early-stage TypeScript project in the AI payments / x402 ecosystem, focused on depin, filecoin, ipfs, onramp. It currently has 9 GitHub stars and 0 forks, and sits alongside related tools like piprail, tdm-integration-kit, tdm-sdk, TDM-Agent-Integration-Kit, x402-solana-rust, dna-x402.
toju is a crypto-native onramp for decentralized storage on IPFS via Storacha. pay with SOL, USDFC, or USDC — no credit cards, no subscriptions. toju also supports agentic payments via the x402 protocol, enabling AI agents to pay for storage autonomously.
npm install @toju.network/sol
import { Client, Environment } from '@toju.network/sol';
const client = new Client({
environment: Environment.testnet,
});
// Estimate storage cost
const cost = await client.estimateStorageCost([file], 30 * 86400); // 30 days in seconds
console.log(`Cost: ${cost.sol} SOL`);
// Upload a file
const result = await client.createDeposit({
payer: publicKey, // from wallet adapter
file: [file],
durationDays: 30,
signTransaction, // from wallet adapter
userEmail: 'user@example.com', // optional, for expiry notifications
});
console.log(`File CID: ${result.cid}`);
import { useDeposit } from '@toju.network/sol';
import { useWallet } from '@solana/wallet-adapter-react';
function UploadComponent() {
const { publicKey, signTransaction } = useWallet();
const client = useDeposit('mainnet-beta', false);
const handleUpload = async (files: File[]) => {
const cost = await client.estimateStorageCost(files, 30 * 86400);
const result = await client.createDeposit({
payer: publicKey,
file: files,
durationDays: 30,
signTransaction,
});
console.log(`Uploaded: ${result.cid}`);
console.log("cost", cost)
};
return (
<button onClick={() => handleUpload([file])}>
Upload
</button>
);
}
Full documentation available at docs.toju.network
See CONTRIBUTING.md for development setup and guidelines.
Production (Mainnet):
Staging (Testnet):
Resources:
Talk to us
Apache-2.0
x402 (HTTP 402 Payment Required) SDK + MCP server: let any API charge for itself and any AI agent pay for itself, USDC & stablecoins across EVM, Solana & 8 more chain families, in a couple of lines. Backendless, no fee, self-custodial, paid straight to your wallet. TypeScript, MIT.
Developer integration tools for adding TDM payments to AI agents, apps, and workflows. CLI, MCP server, and copy-paste examples
Open contract-facing SDK for payable routes and gateway-backed integrations. Thin public surface for authorize, checkout, and session flows.
Developer integration tools for adding TDM payments to AI agents, apps, and workflows. CLI, MCP server, and copy-paste examples
Production-ready Rust server template for building HTTP APIs with x402 payment integration on Solana. Accept USDC payments for API access. Includes Axum, Actix and Rocket templates.
DNA — Payment rails for AI agents. x402 micropayment protocol on Solana. Netting, transfer, stream settlement. Receipt anchoring on-chain.
Agent behavior that compiles
An open SDK for agentic payments. Let AI agents make payments, hold funds, and move money across chains with policy enforcement and human approval built in.
x402 payments in Rust: verify, settle, and monitor payments over HTTP 402 flows
The self-improving LLM router that optimize your agentic workflows with every runs, works with any harnesses, any models, any loops.
Production-ready x402 facilitator server.
Rust SDK for the x402 payment protocol.