Title: feat: zero-cost payment gate and balance-based rate limits · Issue #244 · JavaScriptSolidServer/JavaScriptSolidServer · GitHub
Open Graph Title: feat: zero-cost payment gate and balance-based rate limits · Issue #244 · JavaScriptSolidServer/JavaScriptSolidServer
X Title: feat: zero-cost payment gate and balance-based rate limits · Issue #244 · JavaScriptSolidServer/JavaScriptSolidServer
Description: Summary Two related enhancements to the payment system: 1. Zero-cost PaymentCondition (membership gate) A PaymentCondition with "amount": "0" should grant access if the user has a balance — without deducting anything. This acts as a memb...
Open Graph Description: Summary Two related enhancements to the payment system: 1. Zero-cost PaymentCondition (membership gate) A PaymentCondition with "amount": "0" should grant access if the user has a balance — without...
X Description: Summary Two related enhancements to the payment system: 1. Zero-cost PaymentCondition (membership gate) A PaymentCondition with "amount": "0" should grant access if the user has...
Opengraph URL: https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/issues/244
X: @github
Domain: github.com
IPv4 address: 140.82.112.4
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"feat: zero-cost payment gate and balance-based rate limits","articleBody":"## Summary\n\nTwo related enhancements to the payment system:\n\n### 1. Zero-cost PaymentCondition (membership gate)\n\nA `PaymentCondition` with `\"amount\": \"0\"` should grant access if the user has a balance — without deducting anything. This acts as a membership check: \"prove you have funds.\"\n\nCurrently `amount: 0` skips the balance check and always returns 402. Fix: check that a balance entry exists and grant access.\n\n```json\n{\n \"acl:condition\": {\n \"@type\": \"PaymentCondition\",\n \"amount\": \"0\",\n \"currency\": \"sats\"\n }\n}\n```\n\n### 2. Balance-based rate limits\n\nUsers with a balance get relaxed rate limits. Spammers won't deposit real sats to abuse the API.\n\n- No balance — default rate limits (strict)\n- Has balance — relaxed (e.g. 2x)\n- Higher balance — more relaxed (e.g. 10x)\n\nThis makes the payment system double as an anti-spam / trust layer.\n\n### Design question\n\nFor the zero-cost gate: should `balance >= 0` (has an account) or `balance > 0` (has actual funds) be the requirement?","author":{"url":"https://github.com/melvincarvalho","@type":"Person","name":"melvincarvalho"},"datePublished":"2026-04-02T20:44:11Z","url":"https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/issues/244"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:61c3d1cb-f557-8cd7-8709-658611a2de8e |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | C628:1FAE:CAC573:1027DDE:6B0387F5 |
| html-safe-nonce | c35a7cbd2bae7f81779a8afaa3a206a0fe9f5da75e6269397b840b0f9dfd80aa |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDNjI4OjFGQUU6Q0FDNTczOjEwMjdEREU6NkIwMzg3RjUiLCJ2aXNpdG9yX2lkIjoiMzMxOTExNjAxNjIxODUwNzI1MyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | d2f497c6f076afb3fab3dd9c844239a971bd3efc7ed59c26de4035fb760f1bb1 |
| hovercard-subject-tag | issue:4196889816 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/JavaScriptSolidServer/JavaScriptSolidServer/244/issue_layout |
| twitter:image | https://opengraph.githubassets.com/a5427877b9b334d54096346c067e32b11eb28db53662c7f43259243a0988b381/JavaScriptSolidServer/JavaScriptSolidServer/issues/244 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/a5427877b9b334d54096346c067e32b11eb28db53662c7f43259243a0988b381/JavaScriptSolidServer/JavaScriptSolidServer/issues/244 |
| og:image:alt | Summary Two related enhancements to the payment system: 1. Zero-cost PaymentCondition (membership gate) A PaymentCondition with "amount": "0" should grant access if the user has a balance — without... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | melvincarvalho |
| hostname | github.com |
| expected-hostname | github.com |
| None | 87e774ee7c6b3bee0490394e4d3e57ec9dbc956f74b87ea685dc8996c1676456 |
| turbo-cache-control | no-preview |
| go-import | github.com/JavaScriptSolidServer/JavaScriptSolidServer git https://github.com/JavaScriptSolidServer/JavaScriptSolidServer.git |
| octolytics-dimension-user_id | 205442424 |
| octolytics-dimension-user_login | JavaScriptSolidServer |
| octolytics-dimension-repository_id | 958025407 |
| octolytics-dimension-repository_nwo | JavaScriptSolidServer/JavaScriptSolidServer |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 958025407 |
| octolytics-dimension-repository_network_root_nwo | JavaScriptSolidServer/JavaScriptSolidServer |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 423dbb54c5e7bfecc838eb387c1435eb3d0e760d |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width