Skip to content

Conversation

cmwhited
Copy link
Collaborator

Description

This is the initial PR to build a "create hypergraph-app" CLI tool. Moving the hypergraph-app-template into a "template-*" structure inside of the "create-hypergraph-app" package. This way, the templates will ship with the create hypergraph-app cli tool and when the user selects a template (just vite + react) to start, it can pull the code from the tool internally, instead of needing to perform either a git clone (like the hypergraph-cli does currently) or fetching the git archive.

I used create vite app as a reference, and this is how they built their create vite app cli tool.

In the future we can add template-nextjs, template-vite-vue, etc templates to give the user choices. of which template to scaffold.

Next PR will be to build out the create hypergraph-app cli tool

Reference #348

Closes #354

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I would like to add more to this about how to interact with the schema.ts file/hypergraph. Will think on it. Will also add notes on using the typesync studio, once it is ready

Copy link
Collaborator

Choose a reason for hiding this comment

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

good idea 👍

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Need to replace this with import type { Mapping } from '@graphprotocol/typesync/Mapping';, but requires updates to hypergraph and hypergraph-react. See this PR as the packages will need to be published to npm

@cmwhited cmwhited merged commit 0ef90fd into main Jul 22, 2025
6 checks passed
@cmwhited cmwhited deleted the chris.whited/feat-354/move-app-template branch July 22, 2025 17:11
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.

Move hypergraph-app-template into repo

2 participants