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)

pip install "MertCapkin_GraphCraft[graphstack]"

For visual review and aesthetic PNG checks, add the visual extra:

pip install "MertCapkin_GraphCraft[graphstack,visual]"

Install (GitHub)

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

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 design evaluate GraphCraft Aesthetic rubric (contrast, touch targets)
graphcraft design bridge GraphCraft Design โ†” code bridge map
graphcraft stitch import . GraphCraft Import Stitch prototype
graphcraft stitch mcp install GraphCraft Stitch MCP for Cursor
graphcraft visual review GraphCraft PNG reference vs implementation
graphcraft ui validate all GraphCraft Validate UI lib vs design tokens
graphcraft cycle status GraphCraft Design phase + GraphStack role
graphcraft gate check GraphCraft Design gate before ui-core edits
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-2.0.0.tar.gz (58.2 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-2.0.0-py3-none-any.whl (86.9 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for mertcapkin_graphcraft-2.0.0.tar.gz
Algorithm Hash digest
SHA256 2c356291c66fff28d566f4353d21596b6d556fcfc00124fe4bd2bfc93a0cd8e2
MD5 e660e5c5a80ccc622da16aa6bd9d1f79
BLAKE2b-256 b4b7a10c661c7d8306be3eba490ae7eb68bedcf0f39946ddcefcc1e3afd356d3

See more details on using hashes here.

Provenance

The following attestation bundles were made for mertcapkin_graphcraft-2.0.0.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-2.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for mertcapkin_graphcraft-2.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d379da0e6a98fbddf83fded3ab6ead66efffe4ac6cc28bf0d2b8a46d38138bec
MD5 bbc0744a5c223325fc0e42e6482f443e
BLAKE2b-256 ab93a960cc0c8ae70dc30ed28e912a85c0862766fbddd63aae85bca84eb54d4a

See more details on using hashes here.

Provenance

The following attestation bundles were made for mertcapkin_graphcraft-2.0.0-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