Skip to content

Update messaging around tokens (RFC)#719

Merged
JasoonS merged 4 commits intomainfrom
reword-api-token-message
Oct 17, 2025
Merged

Update messaging around tokens (RFC)#719
JasoonS merged 4 commits intomainfrom
reword-api-token-message

Conversation

@JasoonS
Copy link
Contributor

@JasoonS JasoonS commented Oct 17, 2025

Summary by CodeRabbit

  • Documentation

    • API token policy updated — tokens required from 3 Nov 2025; timelines and pricing messaging revised to mid-November 2025.
    • Terminology standardized to “HyperSync”; Getting Started, one-line examples, templates, and usage snippets expanded and clarified.
    • Local dev and self-hosted guidance updated to require tokens; CLI auto-login and env-var token guidance added.
    • Removed Berachain Bartio from supported networks.
  • Chores

    • Site navigation, footer, and announcement banner updated to surface the new token messaging.

@vercel
Copy link

vercel bot commented Oct 17, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
envio-docs Ready Ready Preview Comment Oct 17, 2025 10:52am

@coderabbitai
Copy link
Contributor

coderabbitai bot commented Oct 17, 2025

Caution

Review failed

The pull request is closed.

Walkthrough

Documentation-only updates: standardized "HyperSync" terminology, revised API token policy/timelines (tokens required from 3 November 2025), clarified local/self-hosted token handling and CLI auto-login, removed the Berachain Bartio network row, and compacted supported-networks JSON formatting.

Changes

Cohort / File(s) Summary
API Token Policy & Timeline
docs/HyperSync/api-tokens.mdx, docs/HyperSync-LLM/hypersync-complete.mdx, docs/HyperIndex-LLM/hyperindex-complete.mdx, docs/HyperIndex/overview.md
Revised token policy to require API tokens from 3 November 2025; removed multi‑phase rollout language; simplified overview and removed "Benefits" section; updated examples to source tokens from environment variables and mention CLI auto-login; reorganized token-related content.
Local & Self‑Hosted Guidance
docs/HyperIndex-LLM/hyperindex-complete.mdx, docs/HyperSync-LLM/hypersync-complete.mdx, docs/HyperIndex/overview.md
Changed local dev guidance to require API tokens (notes about CLI auto-login); clarified self-hosted deployment token requirement and env var naming/configuration examples.
One‑Line Examples & Usage Blocks
docs/HyperIndex-LLM/hyperindex-complete.mdx, docs/HyperSync-LLM/hypersync-complete.mdx
Expanded compact examples into many one-line initialization and end-to-end command snippets across JS/TS, Python, and Rust; renamed sections to "Complete One-Line Examples".
Supported Networks — Removal
docs/HyperRPC-LLM/hyperrpc-complete.mdx, docs/HyperRPC/hyperrpc-supported-networks.md, docs/HyperSync/hypersync-supported-networks.md
Deleted the "Berachain Bartio" row (Network ID 80084) from supported networks tables.
Supported Networks JSON Formatting
supported-networks.json
Formatting-only: collapsed the supportedNetworks array from multi-line to a compact single-line representation; no semantic data changes.
Site Config & UI
docusaurus.config.js, docusaurus.config.llm.js
Reworked themeConfig/navbar/footer layout and doc plugin registrations; added announcementBar configuration notifying users about HyperSync API tokens (new id/content/styling fields).
Stylistic / Terminology Edits
docs/... (multiple doc files)
Standardized "HyperSync" capitalization, minor wording and inline-code styling adjustments, and one small table tier indicator tweak.

Estimated code review effort

🎯 3 (Moderate) | ⏱️ ~20 minutes

Possibly related PRs

Suggested labels

codex

Suggested reviewers

  • moose-code
  • DZakh
  • DenhamPreen

Poem

🐇 I hopped through docs with tiny feet,

Tokens set and timelines neat,
Networks trimmed and examples bright,
CLI helps the dev's first flight.
Pitter-patter—publish tonight! ✨

Pre-merge checks and finishing touches

✅ Passed checks (3 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title Check ✅ Passed The pull request title "Update messaging around tokens (RFC)" directly and accurately summarizes the primary objective of the changeset. The raw summary confirms that the changes span multiple documentation files with the core focus on updating API token policy messaging, including revised timelines (shifting from mid-June to November 3, 2025), clarified token requirements, and reorganized token-related content sections. The title is specific, concise, and avoids vague terminology or noise, making it immediately clear to a teammate reviewing commit history that token-related messaging was the focus of this update. The "(RFC)" annotation appropriately indicates this is a Request for Comments collaborative effort.
Docstring Coverage ✅ Passed No functions found in the changes. Docstring coverage check skipped.

📜 Recent review details

Configuration used: CodeRabbit UI

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 066ab78 and 3d8449b.

📒 Files selected for processing (2)
  • docs/HyperIndex-LLM/hyperindex-complete.mdx (3 hunks)
  • docs/HyperIndex/overview.md (1 hunks)

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 0

🧹 Nitpick comments (3)
docs/HyperSync-LLM/hypersync-complete.mdx (1)

1907-1907: Clarify the call-to-action regarding HyperSync packages.

The phrase "Please take a look at our HyperSync packages so your access remains open" is indirect and vague. Users need clearer guidance on what action to take and when. Consider rewording to be more specific about:

  • Which packages are recommended or required
  • When users should take action (before mid-November 2025?)
  • What happens if they don't take action

Consider revising this to something like:

- HyperSync implements **rate limits for requests without API tokens**. API tokens will be required from **1 November 2025**. The service remains **free to use until mid-November 2025**. Please take a look at our HyperSync packages so your access remains open. Indexers deployed to our hosted service will have special access to HyperSync that does not require a custom API token.
+ HyperSync implements **rate limits for requests without API tokens**. **API tokens will be required from 1 November 2025**; the service remains **free to use until mid-November 2025**. Review our HyperSync packages and plan your upgrade before mid-November 2025 to ensure uninterrupted access. Note: Indexers deployed to our hosted service receive automatic access without requiring a custom token.
docs/HyperSync/api-tokens.mdx (1)

17-17: Strengthen the call-to-action in this reference document.

As the primary documentation for API tokens, this section should provide more explicit guidance. The phrase "Please take a look at our HyperSync packages so your access remains open" doesn't clearly tell users what to do or by when.

Revise the messaging to be more actionable. For example:

- HyperSync implements **rate limits for requests without API tokens**. API tokens will be required from **1 November 2025**. The service remains **free to use until mid-November 2025**. Please take a look at our HyperSync packages so your access remains open. Indexers deployed to our hosted service will have special access to HyperSync that does not require a custom API token.
+ HyperSync implements **rate limits for requests without API tokens**. **API tokens are required from 1 November 2025**; the service is free until mid-November 2025. Choose a HyperSync package before mid-November 2025 to maintain access. (Link to packages.) Note: Indexers on our hosted service have automatic access without a custom token.

This makes the deadline, action, and consequence clearer for users.

docs/HyperIndex-LLM/hyperindex-complete.mdx (1)

657-668: Remove the duplicated AI/LLM info block.

The “For AI/LLM Systems” admonition and “Hierarchical Interactive Schema Explorer” heading appear twice back-to-back. Please drop the duplicate copy so the section only renders once.

📜 Review details

Configuration used: CodeRabbit UI

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between f6c656e and f0c7fbd.

📒 Files selected for processing (4)
  • docs/HyperIndex-LLM/hyperindex-complete.mdx (2 hunks)
  • docs/HyperIndex/overview.md (1 hunks)
  • docs/HyperSync-LLM/hypersync-complete.mdx (1 hunks)
  • docs/HyperSync/api-tokens.mdx (1 hunks)
🧰 Additional context used
🪛 LanguageTool
docs/HyperSync/api-tokens.mdx

[style] ~17-~17: To make your writing clearer, consider a more direct alternative.
Context: ...o use until mid-November 2025**. Please take a look at our HyperSync packages so your ...

(TAKE_A_LOOK)

docs/HyperSync-LLM/hypersync-complete.mdx

[style] ~1907-~1907: To make your writing clearer, consider a more direct alternative.
Context: ...o use until mid-November 2025**. Please take a look at our HyperSync packages so your ...

(TAKE_A_LOOK)

🔇 Additional comments (2)
docs/HyperIndex/overview.md (2)

52-62: Well-structured API token requirements section.

This section clearly communicates the token requirements across different deployment scenarios (local development, self-hosted, hosted service). The updated dates (1 November 2025 for requirement, mid-November 2025 for end of free usage) are consistent with other documentation, and the mention of the "automatic CLI login feature" provides good UX transparency.

The three-tiered structure effectively addresses different user needs:

  • Local dev with auto-login support
  • Self-hosted with environment variable configuration
  • Hosted service with automatic access

52-60: Cross-file consistency verified.

The API token policy messaging is consistent across all three files regarding dates (1 November 2025 for requirement, mid-November 2025 for free usage end) and key information about hosted service exceptions. However, note that docs/HyperSync-LLM/hypersync-complete.mdx and docs/HyperSync/api-tokens.mdx use identical messaging with the vague "Please take a look at our HyperSync packages" phrasing that could be clarified (see separate comments on those files).

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 2

📜 Review details

Configuration used: CodeRabbit UI

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between f0c7fbd and 6a424a6.

⛔ Files ignored due to path filters (1)
  • yarn.lock is excluded by !**/yarn.lock, !**/*.lock
📒 Files selected for processing (8)
  • docs/HyperIndex-LLM/hyperindex-complete.mdx (3 hunks)
  • docs/HyperIndex/overview.md (1 hunks)
  • docs/HyperRPC-LLM/hyperrpc-complete.mdx (0 hunks)
  • docs/HyperRPC/hyperrpc-supported-networks.md (0 hunks)
  • docs/HyperSync-LLM/hypersync-complete.mdx (2 hunks)
  • docs/HyperSync/api-tokens.mdx (1 hunks)
  • docs/HyperSync/hypersync-supported-networks.md (0 hunks)
  • supported-networks.json (1 hunks)
💤 Files with no reviewable changes (3)
  • docs/HyperRPC/hyperrpc-supported-networks.md
  • docs/HyperRPC-LLM/hyperrpc-complete.mdx
  • docs/HyperSync/hypersync-supported-networks.md
🧰 Additional context used
🪛 LanguageTool
docs/HyperIndex/overview.md

[grammar] ~59-~59: Ensure spelling is correct
Context: ... 2025 onwards, we will introduce tiered packagesfor those self-hosting hyperindex and wishi...

(QB_NEW_EN_ORTHOGRAPHY_ERROR_IDS_1)

🔇 Additional comments (5)
supported-networks.json (1)

1-5: Formatting consolidation approved.

The JSON array is reformatted onto a single line. No semantic changes to the supported networks list.

docs/HyperSync/api-tokens.mdx (1)

15-17: Updated API token policy and messaging.

Token requirement date (3 November 2025) and rate-limit clarification are clearly stated. The hosted-indexer exemption note is retained. Changes align with the PR's token messaging objectives.

docs/HyperIndex/overview.md (1)

52-59: Updated token policy and guidance are consistent.

Terminology standardized to "HyperSync", token requirement date (3 November 2025) is consistent across docs, and local/self-hosted deployment guidance is clarified. The hosted service exemption is retained.

docs/HyperSync-LLM/hypersync-complete.mdx (2)

1905-1907: API token policy consistent with primary docs.

Token requirement date (3 November 2025), rate-limit implementation, and hosted-indexer exemption are consistent with the corresponding section in docs/HyperSync/api-tokens.mdx.


2075-2075: Verify Plasma network tier upgrade.

Line 2075 marks the Plasma network tier as changed (indicated by the ~ marker). The AI summary notes a tier elevation. Please confirm this network support upgrade is intentional and reflects current infrastructure allocation.

- **Free Usage**: The service remains free to use until mid-June 2025.
- **Future Pricing**: From mid-June 2025 onwards, we will introduce tiered packages based on usage. Credits are calculated based on comprehensive metrics including data bandwidth, disk read operations, and other resource utilization factors. For preferred introductory pricing based on your specific use case, reach out to us on Discord.
- **Future Pricing**: From mid-November 2025 onwards, we will introduce tiered packagesfor those self-hosting hyperindex and wishing to use hypersync. For preferred introductory pricing based on your specific use case, reach out to us on Discord.

Copy link
Contributor

@coderabbitai coderabbitai bot Oct 17, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🟡 Minor

Fix spacing and brand capitalization

The bullet reads “packagesfor” without a space, and it refers to “hyperindex”/“hypersync” in lowercase while the rest of the doc uses the branded “HyperIndex” and “HyperSync.” Please add the missing space and restore the proper capitalization for consistency.

🤖 Prompt for AI Agents
In docs/HyperIndex-LLM/hyperindex-complete.mdx around line 47, a bullet contains
the typo "packagesfor" and uses lowercase "hyperindex"/"hypersync"; change
"packagesfor" to "packages for" and update the product names to their branded
capitalizations "HyperIndex" and "HyperSync" so the spacing and branding match
the rest of the document.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
packages for

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@JasoonS Thanks! I’ve applied the spacing fix and also normalized the product names to match branding elsewhere in the doc. Proposed replacement:

- - **Future Pricing**: From mid-November 2025 onwards, we will introduce tiered packagesfor those self-hosting hyperindex and wishing to use hypersync. For preferred introductory pricing based on your specific use case, reach out to us on Discord.
+ - **Future Pricing**: From mid-November 2025 onwards, we will introduce tiered packages for those self-hosting HyperIndex and wishing to use HyperSync. For preferred introductory pricing based on your specific use case, reach out to us on Discord.

If you prefer to keep this change strictly to spacing only, I can drop the capitalization tweak—just say the word.

Copy link
Member

@moose-code moose-code left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@JasoonS JasoonS merged commit dafce63 into main Oct 17, 2025
2 checks passed
@JasoonS JasoonS deleted the reword-api-token-message branch October 17, 2025 10:52
Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 2

🧹 Nitpick comments (4)
docusaurus.config.llm.js (1)

49-56: Minor: rel without target has no effect.

rel="noopener noreferrer" is only meaningful with target="_blank". Either add target or drop rel for a same‑tab internal link.

docusaurus.config.js (3)

289-295: Announcement consistency across sites.

Same id/message as LLM config. If both sites share a domain, closing the banner on one closes it on the other (id-based). Confirm this is desired to avoid user confusion.

Consider centralizing the banner copy (e.g., small JS module) to prevent drift.


349-353: Algolia key flagged by secret scanner—confirm search‑only and restrict.

Gitleaks flagged an API key. Algolia search keys are usually safe to commit if:

  • It’s a search‑only key (no write privileges).
  • It’s scoped to your index/app and optionally referrer‑restricted.

If true, add it to your secret‑scanner allowlist or pull it from env vars to reduce noise. Otherwise, rotate and replace.

Possible hardening:

  • Referrer restriction in Algolia dashboard.
  • Move to env: ALGOLIA_APP_ID, ALGOLIA_SEARCH_API_KEY (still public at build time).
  • Add a gitleaks allowlist rule matching this key format/commented context.

5-231: Add CI validation for redirect integrity (optional best practice).

Verification confirms all 62 redirect destinations resolve correctly—no broken redirects currently exist. However, the suggestion to add automated CI validation remains a valuable safeguard as the redirect list grows. Consider implementing a validation script to catch misconfigurations early, such as checking that all "to" paths resolve via Docusaurus' slug system or frontmatter references.

📜 Review details

Configuration used: CodeRabbit UI

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 6a424a6 and 066ab78.

📒 Files selected for processing (2)
  • docusaurus.config.js (1 hunks)
  • docusaurus.config.llm.js (1 hunks)
🧰 Additional context used
🧬 Code graph analysis (1)
docusaurus.config.js (2)
docusaurus.config.llm.js (4)
  • config (6-185)
  • require (1-1)
  • lightCodeTheme (2-2)
  • darkCodeTheme (3-3)
plugins/plugin-generate-llms.js (1)
  • require (5-5)
🪛 Gitleaks (8.28.0)
docusaurus.config.js

[high] 349-349: Detected a Generic API Key, potentially exposing access to various services and sensitive operations.

(generic-api-key)

Comment on lines +297 to +303
stylesheets: [
{
href: "/custom.css",
type: "text/css",
},
],
navbar: {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🟡 Minor

Remove themeConfig.stylesheets (unused).

stylesheets is a top‑level Docusaurus config field; placing it under themeConfig is ignored and can confuse future edits. Keep only the top‑level stylesheets.

Apply:

-      stylesheets: [
-        {
-          href: "/custom.css",
-          type: "text/css",
-        },
-      ],
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
stylesheets: [
{
href: "/custom.css",
type: "text/css",
},
],
navbar: {
navbar: {
🤖 Prompt for AI Agents
In docusaurus.config.js around lines 297 to 303, the stylesheets entry is
defined under themeConfig but stylesheets is a top-level Docusaurus config field
and is ignored there; remove the stylesheets block from themeConfig (lines
297–303) and ensure any custom.css reference is placed under the top-level
stylesheets array instead so there is only one top-level stylesheets definition.

Comment on lines +49 to +56
announcementBar: {
id: "hypersync-api-tokens-nov-2025",
content:
'HyperSync API tokens required from <strong>3 November 2025</strong>. Ensure you are using one to keep uninterrupted HyperSync access. <a href="/docs/HyperSync/api-tokens" rel="noopener noreferrer">Learn more →</a>',
backgroundColor: "#fff7e6",
textColor: "#663c00",
isCloseable: true,
},
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🔴 Critical

🧩 Analysis chain

Fix “Learn more” link for LLM site (likely 404).

This LLM config doesn’t mount HyperSync (non‑LLM) docs, yet the banner links to /docs/HyperSync/api-tokens. That route likely doesn’t exist in the LLM build. Point to an LLM page or an external absolute URL that resolves correctly.

Two options:

  • If LLM has a section covering tokens: link internally (example):
- '... <a href="/docs/HyperSync/api-tokens" rel="noopener noreferrer">Learn more →</a>',
+ '... <a href="/docs/HyperSync-LLM/hypersync-complete#api-tokens" rel="noopener noreferrer">Learn more →</a>',
  • If you intend to send users to the main docs: use a fully-qualified URL and consider target="_blank":
- '... <a href="/docs/HyperSync/api-tokens" rel="noopener noreferrer">Learn more →</a>',
+ '... <a href="https://docs.envio.dev/docs/HyperSync/api-tokens" target="_blank" rel="noopener noreferrer">Learn more →</a>',

To verify the route isn’t present in the LLM build:


🏁 Script executed:

#!/bin/bash
# Check that LLM config doesn't mount HyperSync (non‑LLM) docs
rg -nP -C2 '@docusaurus/plugin-content-docs' docusaurus.config.llm.js | rg -nP 'id:\s*"HyperSync"\b' || echo "No HyperSync plugin found in LLM config (expected)"
# Confirm the source doc exists only in main docs
fd -a 'api-tokens.mdx' docs | sed 's|^|found: |'

Length of output: 106


Now let me check the actual LLM config structure and the hypersync-complete documentation to finalize verification:

Based on my verification, the original review comment is correct and valid. Here's what I found:

  1. Confirmed: LLM config doesn't mount HyperSync (non-LLM) docs (per script output: "No HyperSync plugin found in LLM config")
  2. Confirmed: The source doc exists only in main docs at docs/HyperSync/api-tokens.mdx
  3. Verified: The banner link to /docs/HyperSync/api-tokens will indeed be a 404 on the LLM site since that route doesn't exist in the LLM build

The web search also revealed that:

  • API tokens provide authenticated access to HyperSync services
  • All HyperSync clients require an API token for authentication; see the API Tokens guide for detailed instructions
  • The LLM docs contain a file with all HyperSync documentation consolidated for LLM consumption

The LLM site uses a consolidated route (/docs/HyperSync-LLM/hypersync-complete) rather than separate individual routes.


Fix broken "Learn more" link in announcementBar (likely 404 on LLM site).

This LLM config doesn't mount HyperSync (non‑LLM) docs, yet the banner links to /docs/HyperSync/api-tokens. That route doesn't exist in the LLM build.

Update the link to one of these options:

  • Link to the LLM-specific consolidated docs: /docs/HyperSync-LLM/hypersync-complete#api-tokens
  • Link to the main docs using an absolute URL: https://docs.envio.dev/docs/HyperSync/api-tokens with target="_blank"
🤖 Prompt for AI Agents
In docusaurus.config.llm.js around lines 49 to 56, the announcementBar "Learn
more" href points to /docs/HyperSync/api-tokens which does not exist in the LLM
site and will 404; update the link to a valid target by replacing the path with
either the LLM consolidated route
/docs/HyperSync-LLM/hypersync-complete#api-tokens or with the absolute main docs
URL https://docs.envio.dev/docs/HyperSync/api-tokens (and if using the absolute
URL add target="_blank" and rel="noopener noreferrer").

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants