← Về thư mục
📄 / / root / GitHub / .agents / workflows / sync-user-data.md

description: "Sync user data from a local .md file into Supabase"

/sync-user-data Workflow

/sync-user-data Workflow

Follow these steps whenever you have a new JHora profile to sync.

Step 1: Prepare the File

  1. Open the Vedic-astro-mar app in your browser.
  2. Paste your raw JHora ASCII into Step 0.
  3. Click "COPY ALL TECHNICAL DATA" in the footer.
  4. Created a new .md file in the docs/ folder (e.g., docs/Vedic - [Name] data.md).
  5. Paste the data you copied into that file and save.

(Shortcut: You can also manually create the file, provided it uses the same Markdown table format.)

Step 2: Sync the Profile

Run the following command in your terminal, replacing the filename with your new file:

// turbo

npm run sync-user -- "docs/Vedic - [Filename].md"

Step 3: Refresh and Select

  1. Reload your browser (http://localhost:3000).
  2. The new profile will now appear in the "Switch Profile" dropdown in Step 0.
  3. Selecting it will instantly populate all charts and dashas.

🔄 Updating Existing Profiles?

If you add more notes or data to an existing .md file, just run the command in Step 2 again. The sync-user script uses the User Name as a unique ID and will update your existing database record automatically.