Skip to content

Conversation

cmwhited
Copy link
Collaborator

Description

This PR moves what was the @graphprotocol/hypergraph-cli cli tool and UI to be published as part of @graphprotocol/hypergraph.

This solves a few issues that were present in typesync v1:

  • needed to install the package globally, which came with a set of issues across npm/pnpm/yarn, etc
  • typesync spanned multiple apps/schemas and stored the app data in sqlite.
    • this made the experience feel very disconnected from the apps that we being built
  • typesync was responsible for code generation of the entire app, which was really problematic

The typesync v2 approach solves these issues by:

  • bundling the cli tool and typesync studio UI as part of the @graphprotocol/hypergraph package that is installed as a dep in the hypergraph enabled app -> no need for an extra install, especially a global one
  • the typesync ui focuses only on the schema in the repo where it is ran -> no need to store multiple apps/schemas in sqlite
  • typesync is now only responsible for reading/updating the schema and mapping files

Once the @graphprotocol/hypergraph dep is installed, it can be ran with hg typesync --open

Closes #352
Closes #353

cmwhited and others added 30 commits August 1, 2025 08:41
@cmwhited cmwhited requested review from baiirun and nikgraf August 13, 2025 18:17
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

this came from me testing the typesync ui

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

this came from me testing the typesync ui against this app

@cmwhited cmwhited merged commit cbc98ed into main Aug 13, 2025
6 checks passed
@cmwhited cmwhited deleted the chris.whited/feat-352/client branch August 13, 2025 20:14
- apps/*
- apps/create-hypergraph/template-*
- packages/*
- packages/*/*
Copy link
Collaborator

Choose a reason for hiding this comment

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

Do we need this one? @cmwhited

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.

Enable schema publishing from updated TypeSync studio app Re-architecture of the hypergraph-cli tool/typesync functionality

2 participants