Skip to content
This repository was archived by the owner on Sep 13, 2026. It is now read-only.

OSS finalization: zero lint, adoption-driven README/docs, final polish - #6

Merged
chrisjleal merged 4 commits into
mainfrom
cursor/development-environment-setup-94e4
Apr 5, 2026
Merged

chrisjleal merged 4 commits into
mainfrom
cursor/development-environment-setup-94e4

Conversation

@chrisjleal

@chrisjleal chrisjleal commented Apr 4, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Complete OSS production finalization: zero lint errors, adoption-driven README and docs overhaul, and final polish for go-live.

Type

  • chore
  • refactor
  • docs

All changes (cumulative)

SDK lint: 494 → 0

  • ESLint override for standalone.js (ES5 IIFE), cjs/ ignored, ignoreUrls/ignoreStrings on max-len
  • Auto-fixed all trailing whitespace, commas, quotes, indentation via eslint --fix
  • Manual: long lines wrapped, no-return-await, regex extraction

Internal cleanup

  • Removed leaked internal file paths, server wire-format notes, duplicate JSDoc
  • Cleaned empty sections in types.d.ts, dead config in vitest.config.js
  • Removed internal design token comment in standalone widget

README + SDK README overhaul

  • Centered hero with logo, badges, nav links
  • Visceral hook + Stripe/OAuth analogy
  • ASCII flow diagram, "What you can build" table with emoji, inline React/MCP examples
  • SDK README: npm badge, 30-second full-loop example, core methods table

Docs homepage + quickstart + integration path

  • Outcome-first opening, 3-column start cards, effort column in path tables
  • 5-step quickstart with server-side gateCheck
  • Clean integration path page with effort column

Final polish

  • sdk/package.json engines: >=16 → >=20 (matches CI requirement)
  • AGENTS.md: updated lint baseline to 0 warnings, added standalone.js override note, MCP source-of-truth note
  • funding.json indentation fix

Zero behavior changes

No logic, API surface, or runtime behavior modified anywhere.

Verification

Check Result
npm run lint ✅ 0 errors, 0 warnings
npm test ✅ 73/73 pass
npm run build ✅ All targets
npm run docs:validate ✅ Markdown + OpenAPI clean

Checklist

  • No secrets or PII added
  • Follows repo coding standards and lints clean
  • Tests added/updated — N/A (no behavior changes)
  • Docs updated (if user-facing)
Open in Web Open in Cursor 

cursoragent and others added 2 commits April 4, 2026 22:36
Co-authored-by: CJ Leal <l34l@neus.network>
- Remove internal code references (utils/core.ts personalSignUniversal, server
  wire-format backward-compat notes, SECURITY inline comments)
- Consolidate duplicate JSDoc blocks on NeusClient.verify() into a single
  comprehensive doc block covering both auto and manual paths
- Remove trailing whitespace and superfluous inline comments throughout client.js
- Remove dead resolve aliases in vitest.config.js (no src/ directory exists)
- Clean empty SCHEMA ACCESS section and orphan comment in types.d.ts
- Remove internal design token comment in standalone widget
- Replace qHash123 placeholder with PROOF_ID in standalone.js usage docs
- Fix indentation in funding.json

Co-authored-by: CJ Leal <l34l@neus.network>
@cursor cursor Bot changed the title Add AGENTS.md with Cursor Cloud development environment setup Clean up internal/operator comments and polish SDK for OSS release Apr 5, 2026
ESLint config improvements:
- Add override for standalone.js (intentional ES5 IIFE): allow var,
  prefer-const, prefer-template off; set sourceType to script
- Add cjs/ to ignorePatterns (build output, not source)
- Add ignoreUrls and ignoreStrings to max-len rule (base64 data URLs,
  long string constants)

Auto-fixed mechanical issues (eslint --fix):
- Fix all trailing whitespace across all source and test files
- Fix all trailing comma violations (comma-dangle)
- Fix all quote style violations (single quotes)
- Fix all indentation to consistent 2-space throughout

Manual fixes:
- Wrap long import in client.js to stay within 120-char line limit
- Wrap long regex into named variable for readability
- Wrap long return statement in validateVerifierData
- Fix no-return-await in utils.js signMessage resolveAddress
- Wrap long Bitcoin address regex across two lines

Result: 0 errors, 0 warnings on npm run lint

Co-authored-by: CJ Leal <l34l@neus.network>
@cursor cursor Bot changed the title Clean up internal/operator comments and polish SDK for OSS release Clean up SDK for OSS release: zero lint errors, remove internal comments Apr 5, 2026
@chrisjleal
chrisjleal marked this pull request as ready for review April 5, 2026 19:39
README.md:
- Lead with integrator outcomes, not protocol internals
- Add 'Use NEUS to' bullets with concrete job-to-be-done language
- Add 'What you can build' table with use cases mapped to verifiers
- Add 'Start here' table with self-select paths (try, hosted, React, server, agents)
- Keep 3-step 'How it works' loop (verify → receipt → reuse)
- Move MCP below integration paths, keep it concise
- Drop problem/solution table for cleaner scanning

sdk/README.md:
- Add tagline matching repo README
- Add core methods table with all key methods
- Add gateCheck server example
- Add VerifyGate React example
- Add Hosted Verify callout for no-wallet path
- Clean up documentation links

docs/index.mdx:
- Lead with outcome statement, not protocol description
- 3-column card group: Quickstart, Get started, Hosted Verify
- Add 'What you can build' use-case table
- Add 'How it works' 3-step loop
- Simplify integration table
- Remove redundant 'Start here' prose
- Remove Billing card from top-level (moved to Get started)

docs/quickstart.mdx:
- Add step 5: server-side gateCheck example
- Rename 'Optional: Gate in React' to 'Reuse: gate content in React'
- Add 'Reuse: check eligibility from your server'
- Update next-steps table with clearer labels

docs/docs.json:
- Reorder nav: index (Overview) before get-started for cleaner landing

Co-authored-by: CJ Leal <l34l@neus.network>
@cursor cursor Bot changed the title Clean up SDK for OSS release: zero lint errors, remove internal comments OSS finalization: zero lint, adoption-driven README and docs Apr 5, 2026
@chrisjleal
chrisjleal merged commit 3b222ba into main Apr 5, 2026
3 checks passed
@cursor cursor Bot changed the title OSS finalization: zero lint, adoption-driven README and docs OSS finalization: zero lint, adoption-driven README and docs overhaul Apr 5, 2026
@cursor cursor Bot changed the title OSS finalization: zero lint, adoption-driven README and docs overhaul OSS finalization: zero lint, adoption-driven README/docs, final polish Apr 5, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants