{"id":18910096,"url":"https://github.com/vchakoshy/graphdb","last_synced_at":"2025-04-15T06:31:14.594Z","repository":{"id":61624156,"uuid":"537850414","full_name":"vchakoshy/graphdb","owner":"vchakoshy","description":"An open source in memory Graph Database for Social Networks","archived":false,"fork":false,"pushed_at":"2022-09-20T14:42:46.000Z","size":3371,"stargazers_count":10,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-28T17:11:40.006Z","etag":null,"topics":["go","golang","graph-database","in-memory-database","social-network"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/vchakoshy.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-09-17T15:29:58.000Z","updated_at":"2025-03-25T14:52:25.000Z","dependencies_parsed_at":"2022-10-19T18:45:26.408Z","dependency_job_id":null,"html_url":"https://github.com/vchakoshy/graphdb","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vchakoshy%2Fgraphdb","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vchakoshy%2Fgraphdb/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vchakoshy%2Fgraphdb/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vchakoshy%2Fgraphdb/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vchakoshy","download_url":"https://codeload.github.com/vchakoshy/graphdb/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249020746,"owners_count":21199609,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["go","golang","graph-database","in-memory-database","social-network"],"created_at":"2024-11-08T09:41:08.577Z","updated_at":"2025-04-15T06:31:09.582Z","avatar_url":"https://github.com/vchakoshy.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Go](https://github.com/vchakoshy/graphdb/actions/workflows/go.yml/badge.svg?branch=main)](https://github.com/vchakoshy/graphdb/actions/workflows/go.yml)\n\n# GraphDB \nGraphDB is an open source In Memory graph database written in Golang, optimized for social networks.\n\n## Run Server \n```bash\ngo run main.go api\n```\n\nrest api http://localhost:8081 \n\ngrpc server http://localhost:8080\n\n## Client \n\n```bash \ngo get -u github.com/vchakoshy/graphdb\n```\n\n```golang\nimport \"github.com/vchakoshy/graphdb/service\"\n```\n\n```golang\nvar opts []grpc.DialOption{\n    grpc.WithTransportCredentials(insecure.NewCredentials()),\n}\n\nconn, err := grpc.Dial(\"127.0.0.1:8080\", opts...)\nif err != nil {\n    log.Fatal(err)\n}\ndefer conn.Close()\n\nclient := service.NewGraphdbClient(conn)\nctx := context.Background()\n\n// add follow items\nclient.AddFollow(ctx, \u0026service.Follow{From: 1, To: 2})\nclient.AddFollow(ctx, \u0026service.Follow{From: 2, To: 3})\nclient.AddFollow(ctx, \u0026service.Follow{From: 2, To: 4})\nclient.AddFollow(ctx, \u0026service.Follow{From: 2, To: 5})\n\n// Get friends of friends \nres, err := client.GetFriendsOfFriends(ctx, \u0026service.User{Id: 1})\nif err != nil {\n    panic(err)\n}\nfor _, i := range res.GetUsers() {\n    log.Println(\"fof of \", 1, \"is\", i)\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvchakoshy%2Fgraphdb","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvchakoshy%2Fgraphdb","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvchakoshy%2Fgraphdb/lists"}