{"_id":"@ampvaleo/x402-hyperliquid-server","name":"@ampvaleo/x402-hyperliquid-server","dist-tags":{"latest":"0.1.0"},"versions":{"0.1.0":{"name":"@ampvaleo/x402-hyperliquid-server","version":"0.1.0","description":"Verify, settle, and middleware for x402 on Hyperliquid HyperCore","author":{"name":"Valeo Protocol"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/valeo-cash/x402-hyperliquid.git","directory":"packages/server"},"publishConfig":{"access":"public"},"type":"module","main":"./dist/index.cjs","module":"./dist/index.js","types":"./dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.cjs"}},"dependencies":{"viem":"^2.21.54","@ampvaleo/x402-hyperliquid-core":"0.1.0"},"peerDependencies":{"express":"^4.0.0 || ^5.0.0","next":"^14.0.0 || ^15.0.0"},"peerDependenciesMeta":{"express":{"optional":true},"next":{"optional":true}},"devDependencies":{"@types/express":"^5.0.0","@types/node":"^22.10.2","express":"^4.21.2","tsup":"^8.3.5","typescript":"^5.7.2","vitest":"^2.1.8"},"scripts":{"build":"tsup","test":"vitest run"},"_id":"@ampvaleo/x402-hyperliquid-server@0.1.0","bugs":{"url":"https://github.com/valeo-cash/x402-hyperliquid/issues"},"homepage":"https://github.com/valeo-cash/x402-hyperliquid#readme","_integrity":"sha512-cxf0nEezW6CzDkVtFlQNyvbXPuJyNDQOB92/yAbTmbCWZ5hKZBNHv0z/+LJIpKKtYzgLXuAnVsoiqq9YTXzAAg==","_resolved":"/private/var/folders/0y/870sgpg54w983l1j8ss1jljc0000gn/T/34e94e769fb36478ad12f2568f06c69c/ampvaleo-x402-hyperliquid-server-0.1.0.tgz","_from":"file:ampvaleo-x402-hyperliquid-server-0.1.0.tgz","_nodeVersion":"25.6.1","_npmVersion":"11.9.0","dist":{"integrity":"sha512-cxf0nEezW6CzDkVtFlQNyvbXPuJyNDQOB92/yAbTmbCWZ5hKZBNHv0z/+LJIpKKtYzgLXuAnVsoiqq9YTXzAAg==","shasum":"f8cdaabcb6401cd93fc27dbc13ff20c4e5ce4643","tarball":"https://registry.npmjs.org/@ampvaleo/x402-hyperliquid-server/-/x402-hyperliquid-server-0.1.0.tgz","fileCount":9,"unpackedSize":98145,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCIAg9IZ0MM/mhob1b87pDj0f6tw5QyrkkEoNRbmPVeay8AiBWMV0f1eyQzEYAS4HKhP4rpSHtkp7xi73dh3Ty/4QbEg=="}]},"_npmUser":{"name":"v402valeo","email":"valeobank@gmail.com"},"directories":{},"maintainers":[{"name":"v402valeo","email":"valeobank@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/x402-hyperliquid-server_0.1.0_1776161894379_0.5804133682247106"},"_hasShrinkwrap":false}},"time":{"created":"2026-04-14T10:18:14.302Z","0.1.0":"2026-04-14T10:18:14.516Z","modified":"2026-04-14T10:18:15.043Z"},"maintainers":[{"name":"v402valeo","email":"valeobank@gmail.com"}],"description":"Verify, settle, and middleware for x402 on Hyperliquid HyperCore","homepage":"https://github.com/valeo-cash/x402-hyperliquid#readme","repository":{"type":"git","url":"git+https://github.com/valeo-cash/x402-hyperliquid.git","directory":"packages/server"},"author":{"name":"Valeo Protocol"},"bugs":{"url":"https://github.com/valeo-cash/x402-hyperliquid/issues"},"license":"MIT","readme":"# @ampvaleo/x402-hyperliquid-server\n\nVerify EIP-712 payments, optionally settle on Hyperliquid’s `/exchange` endpoint, and wire into **Express** or **Next.js App Router** handlers.\n\n```ts\nimport express from \"express\";\nimport { InMemoryNonceStore, x402Hyperliquid } from \"@ampvaleo/x402-hyperliquid-server\";\n\nconst app = express();\napp.get(\n  \"/resource\",\n  x402Hyperliquid({\n    price: \"0.01\",\n    payTo: \"0x…\",\n    chain: \"testnet\",\n    sourceDex: \"spot\",\n    destinationDex: \"spot\",\n    nonceStore: new InMemoryNonceStore(),\n  }),\n  (req, res) => res.json({ ok: true }),\n);\n```\n\nFor App Router, use `runX402HyperliquidGate(request, options)` and short-circuit with the returned `Response` when `ok` is false.\n\n**Settlement**: omit `settle` to default to posting to Hyperliquid. For local dev, `X402_HL_DEV_VERIFY_ONLY=1` skips settlement (blocked in production unless `X402_HL_ALLOW_VERIFY_ONLY_IN_PROD=1`). See `resolveSettlementMode` / `assertDevVerifyOnlyEnvAllowed`.\n\nSee the [root README](../../README.md).\n","readmeFilename":"README.md","_rev":"1-8f92dbec1d6706762fb300772576f4bb"}