Skip to main content

Mobile game/app design layer on GraphStack โ€” design graph, style packs, aesthetic engine

Project description

GraphCraft ๐ŸŽจ๐Ÿ“ฑ

Mobile game & app design layer on GraphStack.
Design graph ยท style packs ยท aesthetic engine ยท Stitch import ยท wide mobile stack support.

License: MIT Works with Cursor

GraphCraft is the product you install and use. GraphStack is a dependency that provides orchestration (cycle, gate, roles, code graph). GraphCraft adds the design layer without forking or patching GraphStack.

Graphify     โ†’ code graph        (graphify-out/)
GraphStack   โ†’ orchestration     (cycle, gate, roles)     โ† dependency
GraphCraft   โ†’ design layer      (graphcraft-out/, design-system/)

Important: GraphCraft never modifies GraphStack source. Integration is overlay-only: extra rules, skills, orchestrator/GRAPHCRAFT.md, and graphcraft CLI. GraphStack files come from the MertCapkin_GraphStack package unchanged.


Quick Start

Requirements: Python 3.8+, Git, Cursor

Install (PyPI โ€” after v0.1.1 release)

pip install "MertCapkin_GraphCraft[graphstack]"

Install (GitHub โ€” works now)

pip install "MertCapkin_GraphCraft[graphstack] @ git+https://github.com/MertCapkin/GraphCraft.git@v0.1.1"

GraphStack + Graphify install automatically via the [graphstack] extra from PyPI.

2. Initialize your project

Open your app/game repo in Cursor, then in terminal:

graphcraft init . -y --install-deps

This runs graphstack init first (GraphStack overlay), then graphcraft install (GraphCraft overlay). Both rule sets load in Cursor automatically.

3. Build graphs

graphcraft design update .          # design graph
# In Cursor chat: /graphify .       # code graph (or: graphstack graph update .)
graphcraft doctor .

4. Start working

Describe your mobile app or game in Cursor chat. GraphCraft orchestrator activates first; GraphStack handles cycle/gate mechanics.


Install from source (this repo โ€” contributors)

git clone https://github.com/MertCapkin/GraphCraft.git
cd GraphCraft
pip install -e ".[full]"

Initialize a consumer project (not this framework repo):

cd C:\path\to\your-mobile-app
graphcraft init . -y --install-deps

See docs/GRAPHSTACK.md for dependency details.


What runs when you open a task?

GraphCraft uses an overlay orchestrator โ€” GraphStack is not edited, but GraphCraft is not skipped.

Step What loads Purpose
1 .cursor/rules/graphcraft.mdc Primary greeting, design routing
2 .cursor/rules/graphstack.mdc Cycle, gate, token discipline (unchanged)
3 orchestrator/GRAPHCRAFT.md Design lifecycle extension
4 orchestrator/ORCHESTRATOR.md GraphStack cycle mechanics
5 graphcraft-out/DESIGN_REPORT.md Design graph summary
6 graphify-out/GRAPH_REPORT.md Code graph summary

User request flow (UI/mobile task)

User goal in chat
    โ†’ [GRAPHCRAFT] greet + read design context
    โ†’ ARCHITECT (GraphStack cycle start + BRIEF.md)
    โ†’ DESIGN STRATEGIST (AESTHETIC_BRIEF.md)     โ† GraphCraft adds
    โ†’ DESIGNER (design graph, screens, tokens)   โ† GraphCraft adds
    โ†’ DESIGN AUDIT (validate + harmony)          โ† GraphCraft adds
    โ†’ BUILDER (GraphStack โ€” requires brief + design ready)
    โ†’ VISUAL REVIEW                              โ† GraphCraft adds
    โ†’ REVIEWER โ†’ QA โ†’ SHIP (GraphStack unchanged)

Pure backend tasks (no UI): GraphStack flow only โ€” design phases skipped.

Full detail: docs/FLOW.md ยท orchestrator/GRAPHCRAFT.md


Commands

Command Layer Purpose
graphcraft init . GraphCraft GraphStack init + GraphCraft overlay
graphcraft doctor . GraphCraft Health check (both layers)
graphcraft design update . GraphCraft Build design graph
graphcraft design query "screens" GraphCraft Query design graph
graphcraft design validate GraphCraft Validate design graph
graphcraft design harmony GraphCraft Component harmony check
graphcraft stitch import . GraphCraft Import Stitch prototype
python -m graphstack cycle start โ€ฆ GraphStack Start dev cycle
python -m graphstack graph query "โ€ฆ" GraphStack Query code graph

Configuration

Edit graphcraft.config.yaml:

profile: mobile-app          # mobile-app | mobile-game
design_source: native        # native | stitch | hybrid
active_stack: react-native   # see packs/mobile-app/STACKS.md

Mobile stacks

Profile Targets
mobile-app React Native, Expo, Flutter, SwiftUI, Jetpack Compose, KMP, Ionic, Capacitor
mobile-game Unity UGUI, Unity UI Toolkit, Godot, Unreal UMG, Defold, Cocos

Pack docs: packs/mobile-app/STACKS.md ยท packs/mobile-game/STACKS.md


Project layout (after init)

your-project/
โ”œโ”€โ”€ graphcraft.config.yaml
โ”œโ”€โ”€ design-system/           # tokens, components
โ”œโ”€โ”€ design/screens/          # screen specs
โ”œโ”€โ”€ graphcraft-out/          # design-graph.json
โ”œโ”€โ”€ graphify-out/            # code graph (Graphify)
โ”œโ”€โ”€ handoff/                 # BRIEF, DESIGN_BRIEF, AESTHETIC_BRIEF
โ”œโ”€โ”€ orchestrator/
โ”‚   โ”œโ”€โ”€ GRAPHCRAFT.md        # GraphCraft extension
โ”‚   โ””โ”€โ”€ ORCHESTRATOR.md      # GraphStack (from dependency)
โ”œโ”€โ”€ .cursor/rules/
โ”‚   โ”œโ”€โ”€ graphcraft.mdc       # GraphCraft overlay (primary)
โ”‚   โ””โ”€โ”€ graphstack.mdc       # GraphStack (from dependency)
โ””โ”€โ”€ scripts/
    โ”œโ”€โ”€ graphcraft/          # GraphCraft CLI copy
    โ””โ”€โ”€ graphstack/          # GraphStack CLI copy

Design sources

Mode Use when
native YAML design-system + screens from scratch
stitch Google Stitch prototype import
hybrid Stitch visual reference + native refinement

Documentation

Doc Content
docs/GRAPHSTACK.md GraphStack dependency โ€” install, what it provides
docs/FLOW.md Orchestrator overlay โ€” who runs first
docs/ARCHITECTURE.md Layer model โ€” why GraphStack is untouched
CHANGELOG_GRAPHCRAFT.md GraphCraft releases
docs/PYPI.md PyPI publish + install

License

MIT โ€” see LICENSE.

GraphStack is ยฉ its contributors, installed as a separate dependency under MIT.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mertcapkin_graphcraft-0.1.1.tar.gz (25.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mertcapkin_graphcraft-0.1.1-py3-none-any.whl (37.3 kB view details)

Uploaded Python 3

File details

Details for the file mertcapkin_graphcraft-0.1.1.tar.gz.

File metadata

  • Download URL: mertcapkin_graphcraft-0.1.1.tar.gz
  • Upload date:
  • Size: 25.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for mertcapkin_graphcraft-0.1.1.tar.gz
Algorithm Hash digest
SHA256 da6f550a9a45c029b68cfc0475bc911112757d148a7dbad4f9467600e36167b9
MD5 3a9c35c24a714c038d883c28d3a08168
BLAKE2b-256 256cf61c1fa2fcc4f2d927940a746b3edcbe87beacc8ef151feca60ef8d7578b

See more details on using hashes here.

Provenance

The following attestation bundles were made for mertcapkin_graphcraft-0.1.1.tar.gz:

Publisher: publish.yml on MertCapkin/GraphCraft

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file mertcapkin_graphcraft-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for mertcapkin_graphcraft-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 0439305a8a3ab7397f016736ef78b44c8c773ce8c59c9de656e447dc4ac7615c
MD5 1e5339dbecebe82ce38e7d35abf6294d
BLAKE2b-256 8428d5dca8d09ac37697607521fbc92625c8b2437f9d0c3fcec4a164d3c0fd96

See more details on using hashes here.

Provenance

The following attestation bundles were made for mertcapkin_graphcraft-0.1.1-py3-none-any.whl:

Publisher: publish.yml on MertCapkin/GraphCraft

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page