RafayGenAI workspace
ServicesDocsNotesContact
Open AI

RafayGen

Minimal AI workspaces, public docs, and product systems with the interface kept out of the way.

AIServicesDocsContact
DocsLive on rafaygen.spaceAI + Web + DocsUpdated: Apr 3, 2026, 2:38 PM

Documentation

Documentation that reduces handoff cost instead of adding another layer of overhead.

The docs surface is written for people who need to understand the system quickly and act with confidence. That includes operators, collaborators, and anyone responsible for shipping or updating the live product.

The goal is not to describe every possible thing. The goal is to make the important things unmissable: how the system is shaped, how it is updated, and how to onboard without guesswork.

Open RafayGen AIRead Operating Model

Path

/docs

Formats

6

FAQs

3

Reference library

Documentation built for fast implementation.

Access, content flow, publishing, and platform controls are organized so the next step is obvious even when several people are working in parallel.

StartOperating model
PublishWorkflow
OnboardGuide

Next step

The docs are intentionally practical: enough detail to act, not so much that it slows work.

Updated Apr 3, 2026, 2:38 PM

Reference Notes

What this documentation is trying to make obvious

Original copy

Priority

New contributors should be able to see the shape of the system quickly

The first job of documentation is orientation. If a new contributor cannot tell how the public pages, docs routes, content store, and AI surfaces relate to each other, the docs are already late.

That is why the docs begin with structure instead of trivia.

Use Case

Operators need repeatable checklists, not folklore

People doing live work need a dependable sequence. Which file owns the content model? How do page changes reach the live store? What should be verified after publish?

Those are checklist questions, and the docs are written with that operating reality in mind.

Rule

The docs should reflect the real product, not a remembered version of it

Documentation drifts when it is written as an afterthought. We keep the examples close to the actual live routes and publishing path so the reference stays grounded.

That makes the docs more useful and less ornamental.

Reference Lens

How to understand the system before changing it

Docs Chapter 01

01

Begin with the shape of the system

The live product is made of public pages, AI routes, documentation routes, an editable page store, and the publishing scripts that synchronize defaults into the live database. Understanding that structure makes every later task easier.

Without that shared model, edits feel random and verification becomes guesswork.

  • ✓Public pages render through one shared shell
  • ✓Editable page content is stored in the site database
  • ✓Docs can live as route-driven reference articles
  • ✓Publishing scripts sync source content into live storage

Docs Chapter 02

02

Safe publishing is part of product quality

A strong publishing system does not depend on someone remembering which hidden string to update. It gives the team a clear source model, a synchronization step, and a verification routine after release.

That turns content changes into an operating discipline instead of a risky improvisation.

  • ✓Structured content models with fallback-safe sanitization
  • ✓Scripted synchronization into the live page store
  • ✓Admin update routes for controlled edits
  • ✓Post-publish checks against the public domain

Docs Chapter 03

03

Onboarding should teach the truth of the product

A new contributor does not just need access. They need a map: what the system is for, where the source of truth lives, how changes move, and how to verify that the result is correct.

The onboarding docs here are written to provide that map quickly and without dependence on internal folklore.

  • ✓Explain structure before procedure
  • ✓Explain procedure before nuance
  • ✓Use real examples from the live product
  • ✓End with verification, not just intent

Onboarding Path

The order that keeps the reference practical

Step 01

Read the operating model

01

Start with how the product is organized before changing any route, copy, or content payload.

  • ✓Route map
  • ✓Content ownership
  • ✓Publishing path

Step 02

Learn the publishing workflow

02

Understand how source content becomes live content and what is expected after the synchronization step completes.

  • ✓DB sync
  • ✓Admin updates
  • ✓Verification loop

Step 03

Walk the key routes and endpoints

03

Confirm the public docs, AI streaming routes, and page update flows all behave the way the written docs claim they do.

  • ✓Public pages
  • ✓AI stream routes
  • ✓Replay endpoints

Step 04

Onboard the next contributor from the same model

04

Use the same docs library to bring the next collaborator in so the shared mental model stays intact.

  • ✓Shared vocabulary
  • ✓Repeatable ramp
  • ✓Fewer hidden assumptions

Docs Library

Core articles and route references

Article

System structure

Product Operating Model

A guided explanation of how the public pages, docs routes, content store, and live publishing flow fit together.

Architecture viewOwnership viewRelease view
Read Article

Article

Content operations

Publishing Workflow

A practical guide to editing source content, syncing the page store, and verifying the live result without guesswork.

Source editsSync stepsVerification checks
Read Article

Article

Contributor ramp

Team Onboarding

A first-week path for new contributors who need to understand the system quickly and make safe changes with confidence.

System mapRoute familiaritySafe contribution habits
Read Article

Reference

API reference

Live AI Route Patterns

Practical examples for chat streaming, event replay, and admin page updates based on the live route shape of the product.

POST /api/ai/chatGET /api/ai/chat/eventsPUT /api/admin/pages/[slug]
Open AI Workspace

Live examples

Route patterns and publishing samples

Streaming

Start a streamed AI chat response

bash

The public AI route accepts UI messages plus metadata and returns a streamed response. The example below starts a conversation and pins a known streamId so the session can be replayed later.

curl -N https://rafaygen.cloud/api/ai/chat \
  -H 'Content-Type: application/json' \
  -d '{
    "messages": [
      {
        "id": "msg-user-1",
        "role": "user",
        "parts": [{ "type": "text", "text": "Give me a launch outline for a public AI workspace." }]
      }
    ],
    "metadata": {
      "streamId": "docs-demo-stream",
      "mode": "rafay-pro",
      "provider": "rafaygen",
      "model": "auto"
    }
  }'
  • •The response is streamed as UI message events.
  • •Set streamId explicitly when you want deterministic replay lookup.
  • •Use realistic metadata values so the stream trace remains meaningful.

Replay

Replay stream events for a known session

bash

Use the replay route to inspect the current stream snapshot, receive prior events after a given sequence number, and keep listening until the session reaches a terminal state.

curl -N 'https://rafaygen.cloud/api/ai/chat/events?streamId=docs-demo-stream&after=0'
  • •The route emits ready, snapshot, event, done, and periodic ping events.
  • •Replay is useful for multi-tab continuity, audit views, and late subscribers.
  • •A missing streamId returns a 400 JSON error instead of an event stream.

Admin

Update a public page through the admin route

bash

Authenticated page updates can be sent directly to the admin route. The body can contain a full content object so the live page store stays synchronized with the structured page model.

curl -X PUT https://rafaygen.cloud/api/admin/pages/home \
  -H 'Content-Type: application/json' \
  -H 'Cookie: rafay_admin_session=YOUR_SESSION_COOKIE' \
  -d '{
    "content": {
      "heroTitle": "Updated headline from a controlled publish",
      "heroSubtitle": "This payload can include the full structured page object when needed."
    }
  }'
  • •The route requires the pages admin permission.
  • •Controlled publishes should still be followed by a public verification pass.
  • •For full-source deployments, syncing the canonical content model remains the preferred path.

Reference

Getting Started

01

If you are new to the system, start with the route shape and content ownership before touching live data. That single step prevents most accidental confusion.

Then read the publishing workflow and the onboarding guide so the update path and the team path stay connected.

  • ✓Read the operating model first
  • ✓Understand where public page content is stored
  • ✓Know the sync and admin update paths
  • ✓Verify public behavior after every meaningful change

Reference

Security and Access

02

Access is only half the question. The more important question is whether each route and workflow makes permission boundaries explicit enough that the team can work confidently.

The docs keep those boundaries visible so contributors know where public behavior ends and protected behavior begins.

  • ✓Admin permission gates
  • ✓Protected update routes
  • ✓Public versus private surface separation
  • ✓Verification after privileged changes

Reference

Publishing and Verification

03

A publish is not finished when the command returns. It is finished when the public route, the expected content, and any critical interactive behavior all match the intended change.

That verification habit is what keeps docs and product truth aligned.

  • ✓Source edit to sync path
  • ✓Sync path to live store
  • ✓Live route inspection
  • ✓Critical endpoint spot checks

Support

Frequently asked questions

What should I read first if I am new to the system?

Start with the Product Operating Model article, then read the Publishing Workflow, then the Team Onboarding guide. That order mirrors how the system is actually meant to be understood.

Are the code examples based on the current live routes?

Yes. The examples on this page are written from the active public and admin route structure so they stay practical instead of decorative.

Should docs updates happen separately from product updates?

Whenever possible, no. The strongest pattern is to update the docs alongside the route or content change so the written reference does not drift from the live product.

Reference path

Start with the operating model, move through publishing, then onboard the team from the same source of truth.

That sequence mirrors how the system is actually meant to be understood: first the shape, then the update path, then the contributor workflow. It keeps docs practical and stops them from becoming a disconnected archive.

Open Onboarding GuideAsk a Technical Question

The best docs shorten the distance between reading and doing.