How eduardolsoares/weaver works
Weaver is a cross-platform Compose app for signing in, managing database-design projects, and editing a visual schema graph that can be generated as SQL. The desktop entry point restores credentials and supplies authentication and project operations to the shared app; users then move from login to project management and into the graph editor. The README confirms Web and Desktop targets. Graph-editor model relationships are supported by the SOURCE INDEX, but unsampled project, screen, and use-case implementations are represented only where their wiring is visible.
Main entry points: Graph.kt Graph state · main.kt Desktop entry · Node.kt Graph node · NodeGraph.kt Graph canvas
Components 27
App flow
- Desktop entry
desktopApp/src/main/kotlin/ceub/weaver/main.kt - Web entry
webApp/src/webMain/kotlin/ceub/weaver/main.kt - App routing
shared/src/commonMain/kotlin/ceub/weaver/App.kt
Authentication
- Login screen
shared/src/commonMain/kotlin/ceub/weaver/LoginScreen.kt - Google auth flow
desktopApp/src/main/kotlin/ceub/weaver/GoogleAuth.kt - Google login use case
shared/src/commonMain/kotlin/ceub/weaver/domain/usecase/GoogleLoginUseCase.kt - Auth repository
desktopApp/src/main/kotlin/ceub/weaver/data/repository/GoogleAuthRepositoryImpl.kt - OAuth client
desktopApp/src/main/kotlin/ceub/weaver/data/remote/GoogleOAuthClient.kt - Token storage
desktopApp/src/main/kotlin/ceub/weaver/data/local/TokenStorage.kt
Project management
- Project screen
shared/src/commonMain/kotlin/ceub/weaver/ui/mainScreen/MainScreen.kt - Project API
desktopApp/src/main/kotlin/ceub/weaver/data/remote/ProjectApiService.kt
Schema editor
- Home screen
shared/src/commonMain/kotlin/ceub/weaver/HomeScreen.kt - Desktop editor view
shared/src/jvmMain/kotlin/ceub/weaver/HomeScreen.jvm.kt - SQL generator
shared/src/jvmMain/kotlin/ceub/weaver/NodeParser.kt
Graph engine
- Graph canvas
shared/src/jvmMain/kotlin/com/martmists/compose/grapheditor/compose/NodeGraph.kt - Graph state
shared/src/jvmMain/kotlin/com/martmists/compose/grapheditor/data/Graph.kt - Graph node
shared/src/jvmMain/kotlin/com/martmists/compose/grapheditor/data/Node.kt - Node definition
shared/src/jvmMain/kotlin/com/martmists/compose/grapheditor/data/NodeDefinition.kt - Graph connection
shared/src/jvmMain/kotlin/com/martmists/compose/grapheditor/data/Connection.kt - Port definitions
shared/src/jvmMain/kotlin/com/martmists/compose/grapheditor/data/PortDefinition.kt - Port kinds
shared/src/jvmMain/kotlin/com/martmists/compose/grapheditor/data/PortKind.kt - Graph events
shared/src/jvmMain/kotlin/com/martmists/compose/grapheditor/data/GraphEvent.kt - Property definitions
shared/src/jvmMain/kotlin/com/martmists/compose/grapheditor/data/property/PropertyDefinition.kt - String property
shared/src/jvmMain/kotlin/com/martmists/compose/grapheditor/data/property/StringProperty.kt
Other components
- User
- Google OAuth
- Project backend
Connections 39
- User → Desktop entry: launches
desktopApp/src/main/kotlin/ceub/weaver/main.kt - User → Web entry: opens
README.md - Desktop entry → App routing: renders
desktopApp/src/main/kotlin/ceub/weaver/main.kt - Web entry → App routing: renders
webApp/src/webMain/kotlin/ceub/weaver/main.kt - App routing → Login screen: shows
shared/src/commonMain/kotlin/ceub/weaver/App.kt - App routing → Project screen: shows
shared/src/commonMain/kotlin/ceub/weaver/App.kt - App routing → Home screen: shows
shared/src/commonMain/kotlin/ceub/weaver/App.kt - Desktop entry → Token storage: loads and clears
desktopApp/src/main/kotlin/ceub/weaver/main.kt - Desktop entry → Project API: invokes project operations
desktopApp/src/main/kotlin/ceub/weaver/main.kt - Desktop entry → OAuth client: configures
desktopApp/src/main/kotlin/ceub/weaver/main.kt - Desktop entry → Google auth flow: starts login flow
desktopApp/src/main/kotlin/ceub/weaver/main.kt - Google auth flow → Google login use case: uses
desktopApp/src/main/kotlin/ceub/weaver/GoogleAuth.kt - Auth repository → Token storage: uses
desktopApp/src/main/kotlin/ceub/weaver/data/repository/GoogleAuthRepositoryImpl.kt - Auth repository → OAuth client: uses
desktopApp/src/main/kotlin/ceub/weaver/data/repository/GoogleAuthRepositoryImpl.kt - OAuth client → Google OAuth: requests tokens
desktopApp/src/main/kotlin/ceub/weaver/data/remote/GoogleOAuthClient.kt - Project screen → Project API: receives operations
- Project API → Project backend: requests project data
- Home screen → Desktop editor view: uses platform view
shared/src/jvmMain/kotlin/ceub/weaver/HomeScreen.jvm.kt - Desktop editor view → Graph canvas: renders and edits
shared/src/jvmMain/kotlin/ceub/weaver/HomeScreen.jvm.kt - Desktop editor view → SQL generator: generates SQL
shared/src/jvmMain/kotlin/ceub/weaver/HomeScreen.jvm.kt - SQL generator → Graph state: reads graph
shared/src/jvmMain/kotlin/ceub/weaver/NodeParser.kt - SQL generator → Graph connection: reads links
shared/src/jvmMain/kotlin/ceub/weaver/NodeParser.kt - SQL generator → Graph node: reads nodes
shared/src/jvmMain/kotlin/ceub/weaver/NodeParser.kt - Graph canvas → Graph state: updates
shared/src/jvmMain/kotlin/com/martmists/compose/grapheditor/compose/NodeGraph.kt - Graph canvas → Graph events: handles
shared/src/jvmMain/kotlin/com/martmists/compose/grapheditor/compose/NodeGraph.kt - Graph canvas → Graph node: renders
shared/src/jvmMain/kotlin/com/martmists/compose/grapheditor/compose/NodeGraph.kt - Graph state → Graph node: creates and stores
shared/src/jvmMain/kotlin/com/martmists/compose/grapheditor/data/Graph.kt - Graph state → Graph connection: stores links
shared/src/jvmMain/kotlin/com/martmists/compose/grapheditor/data/Graph.kt - Graph state → Graph events: emits
shared/src/jvmMain/kotlin/com/martmists/compose/grapheditor/data/Graph.kt - Graph state → Node definition: uses
shared/src/jvmMain/kotlin/com/martmists/compose/grapheditor/data/Graph.kt - Graph state → Port definitions: validates
shared/src/jvmMain/kotlin/com/martmists/compose/grapheditor/data/Graph.kt - Graph node → Node definition: uses
shared/src/jvmMain/kotlin/com/martmists/compose/grapheditor/data/Node.kt - Graph node → Graph connection: exposes links
shared/src/jvmMain/kotlin/com/martmists/compose/grapheditor/data/Node.kt - Graph node → Property definitions: validates values
shared/src/jvmMain/kotlin/com/martmists/compose/grapheditor/data/Node.kt - Node definition → Port definitions: declares
shared/src/jvmMain/kotlin/com/martmists/compose/grapheditor/data/NodeDefinition.kt - Port definitions → Port kinds: specifies direction
shared/src/jvmMain/kotlin/com/martmists/compose/grapheditor/data/PortDefinition.kt - Node definition → Property definitions: declares
shared/src/jvmMain/kotlin/com/martmists/compose/grapheditor/data/NodeDefinition.kt - Graph canvas → String property: supports
shared/src/jvmMain/kotlin/com/martmists/compose/grapheditor/compose/NodeGraph.kt - String property → Property definitions: implements
shared/src/jvmMain/kotlin/com/martmists/compose/grapheditor/data/property/StringProperty.kt