20 Commits

Author SHA1 Message Date
R0am
efa7a7ff3b
Add tip.md as partner (#298)
* Update project name and add tip.md partner metadata

Co-authored-by: omarannabi <omarannabi@gmail.com>

* Update tip.md description with USDC and x402 details

Co-authored-by: omarannabi <omarannabi@gmail.com>

* Add files via upload

* Update package-lock.json

* rename logo file

* Update homepage: swap main CTA with 'View Ecosystem' and add partner logos (#299)

- Made 'View Ecosystem' the primary call-to-action button
- Moved 'Read the whitepaper' to secondary link position
- Added 6 partner logos (Neynar, Pinata, Bonsai, 1shot, Proxy402, x402.rs)
- All logos link to their respective ecosystem pages
- Added hover effects for better interactivity

---------

Co-authored-by: Cursor Agent <cursoragent@cursor.com>
Co-authored-by: jnix.base.eth <joshua.nickerson@coinbase.com>
2025-07-30 12:44:54 -04:00
Carson Roscoe
f01cfe7769
Add vrf nft example (#211)
* Add VRF NFT example

* add prettier config into vrfnft to handle auto format on save

* apply prettier settings and add 0x to private keys that dont have the prefix

* add VRF NFT Contract and update README

* debug: testing a paywall tweak and adding prints (#79)

* debug: useFacilitator (#82)

* fix: missing env vars in next config

* debug: debug logs useFacilitator

* feat: fixed site resolving facilitator url (#83)

* Minor updates to README.
Update resource.ts to reflect updated Facilitator server port.

* add back accidentally deleted sentence. Make pnpm consistent cmd.

* rename vrfnft directory  to chainlink-vrf-nft

* fix typo in folder name

* Update README dir paths.

* Fix invalid_scheme error

* Update Chainlink VRF NFT example README and remove contract file

* chore: sync lock files

* chore: removed package-lock

---------

Co-authored-by: Thomas Hodges <thomas@smartcontract.com>
Co-authored-by: Zubin Pratap <zubin.pratap@gmail.com>
2025-05-28 15:51:35 -04:00
Carson Roscoe
22ef54628c
feat: review readmes (#94)
* feat: cleaned up READMEs in examples

* fix: exact scheme readme

* feat: added philosophy and goal sections to readme

* feat: improved running the example section

* feat: renamed payToAddress to payTo as middleware param

* fix: moved terms below principals

* fead: improved x402 README for manual server and client integrations

* feat: tightened up the package READMEs

* fix: hono .env-local

* Updates to readmes  (#95)

* Updated readmes and code snippets

* fixed agent readme (but not working code)

* lint and formatting

* adding back env-localk

* fixing env-local

* fix: removed philosophy/principals section as another PR will introduce it

---------

Co-authored-by: murrlincoln <65836530+murrlincoln@users.noreply.github.com>
2025-04-30 16:27:34 -04:00
Carson Roscoe
e5b90b4841
feat: initial npm modules (#68)
* first pass implementing gha for publishing packages

* feat: updated core types to align with updated protocol spec

* feat: package/x402 refactor

* feat: restructured x402 core

* feat: x402 refactor in preparation for middleware

* feat: middleware workspace project template

* feat: refactor x402-express into its own package

* feat: x402-express updated to new spec

* feat: express server example

* feat: facilitator express server example

* feat: added axios interceptor

* chore: refactor express server example down a folder

* feat: client script example using axios

* fix: improved env variable handling in examples

* fix: site paths now that site is not within the turbo repo

* fix: parsing of types per updated spec

* fix: tweaked examples

* feat: x402-xios and x402-express unit tests

* feat: added test to turbo commands

* chore: reformat

* chore: docstrings

* chore: updated docstring

* feat: added x402-fetch package and fetch client example

* feat: unit test fetch wrapper

* chore: docstring

* chore: reformat

* chore: updated docstring

* feat: x402-hono and hono server example

* feat: added unit tests

* chore: added docstring

* chore: removed excess comments

* chore: updated docstring

* feat: added lint and format to typescript monorepo

* feat: added check_format, check_lint and check_package_lock workflows

* feat: tighten up and improve linting checks

* chore: lint/format x402

* chore: expand tigthened linting to all packages/examples

* fix: format/lint x402

* fix: format/lint x402-axios

* fix: format/lint x402-express

* fix: format/lint x402-fetch

* fix: format/lint x402-hono

* fix: format/lint middleware-template

* fix: format/lint example facilitator

* fix: format/lint example express server

* fix: format/lint example hono server

* fix: eslint unused var false positives

* fix: format/lint example axios client

* fix: format/lint example fetch client

* fix: format/lint whole project

* fix: added explicit dev dependencies on eslint-plugin

* chore: updated package lock workflow name

* chore: format package.jsons

* fix: added explicit dev dependencies on eslint parser

* fix: define paymentRequirements type from toJsonSafe

* fix: added explicit dev dependencies on eslint plugin import

* feat: README for express and express example

* fix: README code snippet syntax

* chore: unit test github workflow

* fix: test -> test:watch, added new test scripts

* chore: removed build from examples

* fix: added missing dependencies

* fix: renamed unit test workflow

* fix: missing dev dependency on express types in x402-express

* fix: added explicite vite dev dependency, as its a peer dep of vitest

* feat: x402-hono and servers/hono example READMEs (#52)

* feat: x402-hono and servers/hono example READMEs

* fix: updated npm to pnpm in example readme

* feat: refactor server middleware to decode X-PAYMENT header

* feat: middleware returns array of PaymentRequirements

* fix: unit tests

* fix: paywall html takes array of paymentRequirements, but just uses first item in list

* feat: added selector logic for selecting payment requirements client side

* feat: support generic ERC20Permit contracts

* fix: toJsonSafe for arrays

* fix: paywall selector usage

* feat: jwt signing & createAuthHeader

* fix: wrap api keys in auth object and include paths

* fix: route paths updated to specs

* fix: format

* feat: using @coinbase/cdp-sdk/auth for generateJwt

* feat: middleware takes an array to generate auth headers

* feat: change routes to /verify and /settle, change default resource to include /v2/x402

* fix: removed duplicate import

* chore: drop node 18 unit tests

* feat: rename function and descriptions to createAuthHeaders

* fix: pr feedback

* feat: improved default behavior for facilitator auth

* feat: dev demo test changes

* feat: moved cdp logic to separate export

* fix: format/lint

* feat: added x402-next and examples/fullstack/next

* feat: added readmes and updated exported types

* fix: format/lint

* fix: updated next demo to type: module

* fix: format

* fix: updated x402-next to new spec

* fix: demo

* fix: format/lint

* feat: improved handling of default asset

* fix: added missing dependencies

* fix: added explicite vite dev dependency, as its a peer dep of vitest

* feat: migrated site to monorepo subproject

* fix: regenerate lock

* feat: added format/lint

* fix: package type is module

* fix: package type is module

* fix: removed npm from prerequisites

* chore: rebased

* feat: migrated site example to latest spec

* fix: regenerate lock file

* feat: added mcp client demo

* feat: migrated agent client

* feat: Added x402-fetch and clients/fetch example readmes

* feat: rename export to wrapFetchWithPayment

* feat: x402-axios and clients/axios example readmes

* fix: increased node version in readme

* feat: removed packages/typescript

* feat: removed middleware-template

* feat: migrated clients/agent example

* feat: migrated clients/axios example

* feat: migrated clients/fetch example

* feat: migrated clients/mcp example

* feat: migrated facilitator example

* feat: migrated fullstack/next example

* feat: migrated servers/express example

* feat: migrated servers/hono example

* feat: structured dual-workspace for turbo

* feat: deleted example root folder

* fix: removed old package-lock and normalized express types used

* feat: removed x402 dependency on hono

* feat: migrated x402/cdp to @coinbase/x402

* feat: add payerAddress to verify responses

* feat: added README to examples/typescript

* chore: format/lint

* feat: migrate site example to root

* second pass implementing gha for publishing packages

* refinements

* enabling debugging

* disabling git check for publishing dryrun

* package npm token isolation

* removing degugging

* chore: Update Go Middleware Package to Latest Spec

* feat: updated README to spec

* feat: updated exact evm scheme

* fix: updated missed paymentDetails -> paymentRequirements in refactor

* fix: quotes to match our linter

* feat: readded supported

* fix: pr feedback

* fix: pr feedback

* update go fields: accepts, paymentPayload, paymentRequirements

* fix: readme example

* fix: site readme node version

* fix: removed package-lock.json

* feat: added package manager to package json

* fix: json

* feat: moved site back to typescript

* fix: lock file

* feat: updated packageManager

* feat: updated package manager

* testing root package.json

* fix: x402 depedency in site

* feat: added build:vercel script

* fix: github workflow detecting packageManager from package.json

* feat: removed dotenv dependency in x402 for edge compatibility

* feat: inject facilitator url via vercel env vars

* feedback

* pnpm version

* removing debugging

* first pass adding payer to verify response

* feat: initial devx draft

* fix: format/lint

* feat: rename facilitator exported config

* fix: x402-next middleware routing supports verbs

* feat: devx feedback

* feat: updated examples

* fix: removed bad dependency

* feat: regenerated lock after rebase

* fix: pnpm-lock

* fix: middleware resource url fallback

* fix: README 1-liner example for correctness

* feat: updated READMEs

* feat: bump x402 to 0.2.0

* feat: added legacy route support to hosted test facilitator

* fix: moved client definition out of global scope

* feat: rename TokenAmount to ERC20TokenAmount

* fix: remove unused ts-expect-error

* feat: temporarily removed @coinbase/x402 package

* fix: examples

---------

Co-authored-by: Christopher Gerber <csgerber@gmail.com>
Co-authored-by: John Peterson <john.peterson@coinbase.com>
2025-04-25 12:05:40 -04:00
John Peterson
67746b9e4e
chore: Release x402 0.1.2 NPM Package (#41) 2025-04-09 18:11:04 -04:00
erikreppel-cb
7245557120
Version bump to release package, and audit fixes (#36) 2025-04-08 07:43:48 -07:00
erikreppel-cb
c2b9c8732b
Example of MCP server using x402 (#22)
* MCP local server example

* NPM audit fix
2025-03-18 15:11:00 -07:00
erikreppel-cb
8655667bbd
Music demo (#20)
* Music demo

* React:
2025-03-07 16:48:53 -08:00
apmcdermott-cb
41bbf34f07
Add instructions to paywall, add demo link to main page (#16)
* Remove all of next-video

* Add live demo link

* Link to live demo, add instructions
2025-02-27 17:22:06 -08:00
John Peterson
cd97cabf9e
Axios 402 Payment Interceptor (#13) 2025-02-27 11:34:02 -07:00
erik
1ce52a7c33 Fix build 2025-02-27 09:46:26 -07:00
John Peterson
6f7ceee2b2
Refactor x402 package dir structure and format (#12) 2025-02-27 09:32:36 -07:00
erikreppel-cb
1c825801f2
Comment out next-video for now (#11) 2025-02-27 08:15:17 -08:00
John Peterson
f132d60c6f
License (#10) 2025-02-27 08:21:06 -07:00
apmcdermott-cb
660af7692f
Rough draft of a landing page (#8)
* Rough draft of a landing page

* Update landing page

* Fix up alignment

* Favicons, metadata

* Pull out Section to its own component

* Add background video and wordmarks

* Add favicon to paywall

* Add placeholder for video
2025-02-26 18:51:07 -08:00
erik
ec3be0b490 Correct envar 2025-02-25 17:39:37 -08:00
erikreppel-cb
040657e192
Use Turbo repo (#4) 2025-02-25 16:24:11 -08:00
erikreppel-cb
0b041b5da3
[refactor] Cleaner separation between protocol and schemes (#1)
* Update readme with more technical details

* Refactor folder structure

* Refactor types

* Verify tests pass

* settle payment test passes

* Need some work to remove src from import path when installed
2025-02-22 19:50:54 -08:00
erik
19b9a45b0a PoC works end to end 2025-02-16 21:03:03 -08:00
erik
e01a090c41 signing and facilitating transfer works 2025-02-16 15:35:24 -08:00