Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
270 commits
Select commit Hold shift + click to select a range
d47f502
Merge pull request #342 from FalkorDB/fix-canvas
gkorland Jan 22, 2025
b9c1d5f
Merge branch 'staging' into add-edge-interaction
gkorland Jan 22, 2025
00ad843
Merge branch 'staging' into add-capture-image-in-canvas
gkorland Jan 22, 2025
1a2a087
Refactor CodeGraph and GraphView components to improve node expansion…
Anchel123 Jan 22, 2025
43c94c7
fix input
Anchel123 Jan 22, 2025
5a97eaf
add create repo
Anchel123 Jan 23, 2025
ec73ee4
add docker-compose
gkorland Jan 24, 2025
beac2ab
Merge branch 'staging' into fix-collapse
Anchel123 Jan 27, 2025
b542f2d
Merge branch 'main' into compose
gkorland Jan 29, 2025
46bd62b
Merge branch 'staging' into compose
gkorland Jan 29, 2025
8f05cf8
fix tests
Naseem77 Jan 29, 2025
a7c282d
fix chat error & increase timing
Naseem77 Jan 29, 2025
7b9acf6
improve tests timing and locators
Naseem77 Jan 29, 2025
e6972d4
update locators
Naseem77 Jan 29, 2025
97ad576
Merge branch 'staging' into add-capture-image-in-canvas
Anchel123 Jan 30, 2025
3b0f56a
Merge branch 'staging' into add-edge-interaction
Anchel123 Jan 30, 2025
fb07797
replace test size to 2px
Anchel123 Jan 30, 2025
e2f506e
add logging
Naseem77 Jan 30, 2025
aaedf00
tests improvements
Naseem77 Jan 31, 2025
451b02d
fix failing tests
Naseem77 Jan 31, 2025
8f4343c
Add CI screenshots on test failure
Naseem77 Feb 2, 2025
bbe2070
Update playwright.yml
Naseem77 Feb 2, 2025
6a37813
add logging
Naseem77 Feb 2, 2025
44282ad
add polling with retries
Naseem77 Feb 2, 2025
364ace5
add logging and timing
Naseem77 Feb 2, 2025
0fefd04
add more logging improve transformnNode
Naseem77 Feb 2, 2025
c214063
Update testData.ts
Naseem77 Feb 3, 2025
681e655
remove logging, increase workers
Naseem77 Feb 3, 2025
1d3cd5c
Merge pull request #367 from FalkorDB/compose
barakb Feb 5, 2025
51395ac
Merge branch 'staging' into add-edge-interaction
Anchel123 Feb 5, 2025
daca1bf
Merge branch 'staging' into add-capture-image-in-canvas
Anchel123 Feb 5, 2025
954f283
Merge branch 'staging' into fix-collapse
Anchel123 Feb 5, 2025
e4794b1
Merge branch 'staging' into fix-nodes-label
barakb Feb 5, 2025
f063c11
Merge pull request #370 from FalkorDB/fix-nodes-label
Anchel123 Feb 5, 2025
f50f681
Merge branch 'staging' into add-edge-interaction
barakb Feb 5, 2025
3281912
Merge branch 'staging' into fix-collapse
barakb Feb 5, 2025
a436b63
Merge branch 'staging' into add-capture-image-in-canvas
barakb Feb 5, 2025
717755c
Merge pull request #355 from FalkorDB/add-edge-interaction
Anchel123 Feb 6, 2025
719a968
Merge branch 'staging' into add-capture-image-in-canvas
Anchel123 Feb 6, 2025
e4f1d2b
Merge pull request #356 from FalkorDB/add-capture-image-in-canvas
Anchel123 Feb 6, 2025
7b75a2c
Merge branch 'staging' into fix-collapse
Anchel123 Feb 6, 2025
9799714
fix build
Anchel123 Feb 6, 2025
d1ed6c1
Merge pull request #359 from FalkorDB/fix-collapse
Anchel123 Feb 6, 2025
db56dcd
Merge branch 'staging' into add-create-repo
Anchel123 Feb 9, 2025
1f6c14b
remove logs and debugs
Anchel123 Feb 11, 2025
86bd8b1
bump all available dependencies
Anchel123 Feb 12, 2025
7e00636
bump lucide-react react-slot
Anchel123 Feb 13, 2025
45bfaa4
Merge branch 'staging' into add-create-repo
Anchel123 Feb 16, 2025
e2d7532
commit
Anchel123 Jan 30, 2025
1c7cc92
commit
Anchel123 Feb 16, 2025
a53c73f
Revert "commit"
Anchel123 Feb 16, 2025
5a298a4
Revert "commit"
Anchel123 Feb 16, 2025
71896f1
commit
Anchel123 Feb 16, 2025
5ca8402
fix comments
Anchel123 Feb 16, 2025
b029b54
fix canvas test
Naseem77 Feb 16, 2025
3484aea
Merge pull request #383 from FalkorDB/fixTest
Anchel123 Feb 16, 2025
ac2377a
Merge branch 'staging' into add-create-repo
Anchel123 Feb 16, 2025
ef8f189
Merge branch 'staging' into update-dependencies-version
Anchel123 Feb 16, 2025
a9fd8d8
Update codeGraph.ts
Naseem77 Feb 16, 2025
d14479a
commit
Anchel123 Feb 16, 2025
8965527
Merge branch 'staging' into resolve-comments
Naseem77 Feb 16, 2025
d925841
Merge pull request #384 from FalkorDB/resolve-comments
Naseem77 Feb 16, 2025
750f2fd
Update README.md
danshalev7 Feb 16, 2025
322e7e1
Merge branch 'staging' into update-dependencies-version
Anchel123 Feb 17, 2025
341f272
commit
Anchel123 Feb 17, 2025
1c34192
Merge branch 'staging' into add-create-repo
AviAvni Feb 19, 2025
09ad180
commit
Anchel123 Feb 19, 2025
11cb851
commit
Anchel123 Feb 20, 2025
41b72f1
Improve link label rendering in graph view
Anchel123 Feb 23, 2025
8ab51c6
commit
Anchel123 Feb 23, 2025
dbd6c35
commit
Anchel123 Feb 23, 2025
1b985e5
commit
Anchel123 Feb 24, 2025
32890f5
Merge branch 'staging' into mobile-version
Anchel123 Feb 25, 2025
84830b4
commit
Anchel123 Feb 25, 2025
33108e4
Merge branch 'mobile-version' of https://github.com/FalkorDB/code-gra…
Anchel123 Feb 25, 2025
63d4c75
fix build
Anchel123 Feb 25, 2025
32baa34
improve control buttons style
Anchel123 Feb 25, 2025
31a2089
fix overlapping nodes
Naseem77 Feb 27, 2025
a59dacb
Merge branch 'staging' into fix-overlapping-nodes
Naseem77 Feb 27, 2025
c4f1047
ADD TIPS
Anchel123 Feb 27, 2025
76026b1
fix tips
Anchel123 Feb 27, 2025
cfd404f
increase chat height
Anchel123 Feb 27, 2025
5e66aea
update overlap
Naseem77 Mar 2, 2025
035c09e
fix tests
Naseem77 Mar 3, 2025
62042a8
add tests (#397, #398)
Naseem77 Mar 3, 2025
082e0e6
commit
Anchel123 Mar 4, 2025
4c3d649
fix search node
Anchel123 Mar 4, 2025
bb5b613
Merge branch 'update-dependencies-version' into fix-overlapping-nodes
Naseem77 Mar 4, 2025
baa1e78
fix tests
Naseem77 Mar 4, 2025
33265f1
fix tests
Naseem77 Mar 4, 2025
0036e81
test without tooltip
Naseem77 Mar 4, 2025
9cbae93
add logging
Naseem77 Mar 4, 2025
808174f
Revert "fix search node"
Anchel123 Mar 4, 2025
4c6ea8a
fix search node
Anchel123 Mar 4, 2025
f82813c
Revert "fix search node"
Anchel123 Mar 4, 2025
9c9d9a0
fix search node
Anchel123 Mar 4, 2025
5c336c1
add logging
Naseem77 Mar 4, 2025
0f096b3
Update codeGraph.ts
Naseem77 Mar 4, 2025
505ffd1
Update codeGraph.ts
Naseem77 Mar 4, 2025
dc7b340
fix tests
Naseem77 Mar 4, 2025
21a7bd5
update nodeClick
Naseem77 Mar 4, 2025
d75147f
add test (#402)
Naseem77 Mar 4, 2025
bc8d998
fix #402
Naseem77 Mar 4, 2025
d83b591
update tooltip visibility
Naseem77 Mar 4, 2025
e1c463f
update test
Naseem77 Mar 4, 2025
08d899d
update locators
Naseem77 Mar 5, 2025
1b63639
update locators
Naseem77 Mar 5, 2025
6d2d286
Update codeGraph.ts
Naseem77 Mar 5, 2025
2ac1435
update test
Naseem77 Mar 5, 2025
ddf1bc6
update test
Naseem77 Mar 5, 2025
1f0ec50
add delay
Naseem77 Mar 5, 2025
32d13b5
Merge branch 'update-dependencies-version' into fix-overlapping-nodes
Naseem77 Mar 5, 2025
5cdf983
update test
Naseem77 Mar 5, 2025
f79852e
update locator
Naseem77 Mar 5, 2025
07b5c4f
update tests
Naseem77 Mar 5, 2025
09ec36c
Update codeGraph.ts
Naseem77 Mar 5, 2025
3bc61bf
Merge pull request #395 from FalkorDB/fix-overlapping-nodes
Naseem77 Mar 9, 2025
d1e2591
Merge branch 'staging' into add-create-repo
Naseem77 Mar 10, 2025
86302f3
Merge branch 'staging' into upgrade-canvas-proformence
Anchel123 Mar 10, 2025
3919313
Merge branch 'staging' into mobile-version
Anchel123 Mar 10, 2025
9fee1e6
fix build
Anchel123 Mar 10, 2025
83b8cba
adjust tests for mobile responsiveness
Naseem77 Mar 11, 2025
b89843a
fix tests
Naseem77 Mar 11, 2025
42fe6c3
Merge pull request #400 from FalkorDB/upgrade-canvas-proformence
Anchel123 Mar 12, 2025
d196e59
Merge branch 'staging' into mobile-version
Anchel123 Mar 12, 2025
0f9143a
Merge branch 'staging' into add-create-repo
Anchel123 Mar 12, 2025
1090871
update testdata
Naseem77 Mar 12, 2025
739224f
Merge branch 'mobile-version' of https://github.com/FalkorDB/code-gra…
Naseem77 Mar 12, 2025
d1c3f5f
Refactor zoom functionality and add zoomedNodes state management
Anchel123 Mar 12, 2025
97e8d53
Merge branch 'mobile-version' of https://github.com/FalkorDB/code-gra…
Anchel123 Mar 12, 2025
a1542d2
remove unnecessary log
Anchel123 Mar 12, 2025
b98b9cb
Update testData.ts
Naseem77 Mar 12, 2025
e4dea4f
fix search
Anchel123 Mar 16, 2025
6e505c6
update tests
Naseem77 Mar 19, 2025
60a977c
update pom
Naseem77 Mar 19, 2025
344f98d
update searchbar
Naseem77 Mar 19, 2025
5bf503e
Merge pull request #389 from FalkorDB/mobile-version
Naseem77 Mar 19, 2025
6277ba0
Merge branch 'staging' into danshalev7-patch-1
Naseem77 Mar 19, 2025
390bb5a
Bump lucide-react from 0.475.0 to 0.486.0
dependabot[bot] Apr 1, 2025
1b684dc
Merge pull request #436 from FalkorDB/dependabot/npm_and_yarn/staging…
gkorland Apr 1, 2025
24bb08f
Bump eslint-config-next from 15.2.1 to 15.2.4
dependabot[bot] Apr 1, 2025
0428aa3
Bump autoprefixer from 10.4.20 to 10.4.21
dependabot[bot] Apr 1, 2025
745db11
Bump @types/node from 22.13.10 to 22.13.14
dependabot[bot] Apr 1, 2025
16ac0a6
Fix README.md heading formatting
gkorland Apr 1, 2025
e0e8aae
Remove extra blank lines in README.md
gkorland Apr 1, 2025
e88e2cf
Remove extra blank lines in README.md
gkorland Apr 1, 2025
d18f8b6
Merge branch 'staging' into danshalev7-patch-1
gkorland Apr 1, 2025
5829423
Merge pull request #385 from FalkorDB/danshalev7-patch-1
danshalev7 Apr 1, 2025
59cb1d5
Merge branch 'staging' into dependabot/npm_and_yarn/staging/eslint-co…
gkorland Apr 1, 2025
5719dae
Merge pull request #432 from FalkorDB/dependabot/npm_and_yarn/staging…
gkorland Apr 1, 2025
e40f5c4
Merge branch 'staging' into dependabot/npm_and_yarn/staging/autoprefi…
gkorland Apr 1, 2025
c2d6c10
Merge pull request #431 from FalkorDB/dependabot/npm_and_yarn/staging…
gkorland Apr 1, 2025
11d72c3
Merge branch 'staging' into dependabot/npm_and_yarn/staging/types/nod…
gkorland Apr 1, 2025
50ed8ac
Merge pull request #433 from FalkorDB/dependabot/npm_and_yarn/staging…
gkorland Apr 1, 2025
36976a5
Bump eslint from 9.22.0 to 9.23.0
dependabot[bot] Apr 1, 2025
a2bfad3
Merge branch 'staging' into dependabot/npm_and_yarn/staging/eslint-9.…
gkorland Apr 1, 2025
f593090
Merge pull request #429 from FalkorDB/dependabot/npm_and_yarn/staging…
gkorland Apr 1, 2025
13d27c1
Merge remote-tracking branch 'origin/staging' into add-create-repo
Anchel123 Apr 3, 2025
04fa785
Merge pull request #374 from FalkorDB/add-create-repo
AviAvni Apr 3, 2025
5e077b6
Bump @types/node from 22.13.16 to 22.15.26
dependabot[bot] May 30, 2025
ccab83e
Merge pull request #466 from FalkorDB/dependabot/npm_and_yarn/staging…
gkorland May 30, 2025
f78e6c8
Bump next from 15.2.1 to 15.5.5
dependabot[bot] Oct 14, 2025
fea017b
Merge pull request #493 from FalkorDB/dependabot/npm_and_yarn/staging…
gkorland Oct 14, 2025
dbcbde6
Update dependencies and improve test configurations
Anchel123 Dec 10, 2025
edde606
fix build
Anchel123 Dec 10, 2025
5352150
install
Anchel123 Dec 10, 2025
628bea2
Remove redundant test for UI response matching API response in chat t…
Anchel123 Dec 15, 2025
546f56e
Refactor chat tests by removing redundant validation for consistent U…
Anchel123 Dec 15, 2025
2d29b08
Refactor graph model and integrate FalkorDB canvas for visualization
Anchel123 Dec 18, 2025
15859f7
Update Next.js dependency to version 15.5.8 in package.json and packa…
Anchel123 Dec 18, 2025
0e1d590
Merge pull request #501 from FalkorDB/bump-next-to-v15.5.8
Anchel123 Dec 18, 2025
da9522f
Refactor components to use canvasRef instead of chartRef for improved…
Anchel123 Dec 18, 2025
39e074f
Update FalkorDB canvas dependency to version 0.0.7 and enable backgro…
Anchel123 Dec 18, 2025
b0fb8f5
Update FalkorDB canvas dependency to version 0.0.8
Anchel123 Dec 24, 2025
3f68425
Update FalkorDB canvas dependency to version 0.0.11 and improve error…
Anchel123 Dec 30, 2025
0c2020e
Merge remote-tracking branch 'origin/main' into integrate-falkordb-ca…
Anchel123 Dec 30, 2025
d6d5880
Merge branch 'merge-main-to-staging' into integrate-falkordb-canvas-f…
Anchel123 Dec 30, 2025
f9d16ad
Refactor ForceGraph and CodeGraph components to integrate cooldown ti…
Anchel123 Dec 30, 2025
3f9b0ea
Refactor code structure for improved readability and maintainability
Anchel123 Dec 30, 2025
b49527c
Merge pull request #506 from FalkorDB/integrate-falkordb-canvas-for-v…
Anchel123 Dec 30, 2025
912f1f7
Update Node.js version to 24 in workflows and Dockerfile
Anchel123 Dec 30, 2025
fac6fde
Update @falkordb/canvas dependency to version 0.0.21 in package.json …
Anchel123 Jan 4, 2026
5fb73aa
Merge pull request #507 from FalkorDB/integrate-falkordb-canvas-for-v…
Anchel123 Jan 4, 2026
9baa03c
Update canvas locator to target FalkorDB canvas element
Anchel123 Jan 5, 2026
188ef5b
Refactor canvas animation wait logic and update tooltip locator
Anchel123 Jan 5, 2026
3b047cf
Add engine stop handler to update global graph data and wait for it i…
Anchel123 Jan 6, 2026
1c99bf0
Fix formatting in ForceGraph to ensure proper assignment of graph dat…
Anchel123 Jan 6, 2026
f1e3368
Refactor error handling in GET and POST methods to ensure consistent …
Anchel123 Jan 6, 2026
985ca72
Refactor ForceGraph to store graph data as a function in the window o…
Anchel123 Jan 6, 2026
89c4bc6
Update @falkordb/canvas dependency to version 0.0.22 in package.json …
Anchel123 Jan 7, 2026
2e2c593
Update @falkordb/canvas dependency to version 0.0.23 in package.json …
Anchel123 Jan 8, 2026
6cfa9e0
Update @falkordb/canvas dependency to version 0.0.24 in package.json …
Anchel123 Jan 12, 2026
dd0c0fd
fix getGraphNodes for testing
Naseem77 Jan 18, 2026
248f8d7
Add FalkorDB Canvas compatibility: support both data structures and f…
Naseem77 Feb 2, 2026
331ecf5
Update @falkordb/canvas dependency to version 0.0.29 in package.json …
Anchel123 Feb 2, 2026
2a85de7
Refactor ForceGraph props to make event handlers required and clean u…
Anchel123 Feb 3, 2026
550d911
Add caption property to nodes in convertToCanvasData function
Anchel123 Feb 3, 2026
72b7b9e
Refactor graph components to enhance node and link handling; update F…
Anchel123 Feb 19, 2026
e04e3e3
Refactor ForceGraph and Chat components; enhance path handling and vi…
Anchel123 Feb 19, 2026
0ae499b
Update @falkordb/canvas dependency to version 0.0.35 in package.json …
Anchel123 Feb 22, 2026
6f2acae
Update @falkordb/canvas dependency to version 0.0.36 in package.json …
Anchel123 Feb 22, 2026
4a42d24
Add npm-minor-patch group to dependabot config
gkorland Feb 23, 2026
4200dbb
Merge pull request #511 from FalkorDB/gkorland-patch-1
gkorland Feb 23, 2026
b4e0720
fix tests
Naseem77 Feb 23, 2026
7b3a441
Merge branch 'staging' into merge-main-to-staging
Naseem77 Feb 23, 2026
95e32cf
Update @falkordb/canvas dependency to version 0.0.37; enhance graph d…
Anchel123 Feb 23, 2026
e6b909b
Merge branch 'merge-main-to-staging' of https://github.com/FalkorDB/c…
Anchel123 Feb 23, 2026
d620f76
Remove caption property from node data and update graph function assi…
Anchel123 Feb 23, 2026
be692e6
Refactor graph data handling in ForceGraph and page components for im…
Anchel123 Feb 23, 2026
f5c7158
Add id prop to components for responsive graph rendering; update fetc…
Anchel123 Feb 23, 2026
12577f9
Remove test.only from node path connection test to ensure all tests run
Anchel123 Feb 24, 2026
0d98eda
Update graph data retrieval to use graphDesktop function for improved…
Anchel123 Feb 24, 2026
8462d3b
Fix canvas selection logic in handleDownloadImage for improved reliab…
Anchel123 Feb 24, 2026
d764425
Remove debug console logs from canvas tests for cleaner output
Anchel123 Feb 24, 2026
a204996
Remove stale data bug comments from canvas tests for clarity
Anchel123 Feb 24, 2026
80d7c4f
Update Playwright imports to use @playwright/test and remove outdated…
Anchel123 Feb 24, 2026
40eba8f
Enhance graph components with new link handling and update dependencies
Anchel123 Feb 24, 2026
11e1630
Refactor link curvature calculation in GraphView for improved scaling
Anchel123 Feb 24, 2026
5d7ecba
Update @falkordb/canvas to version 0.0.40 and refactor graph componen…
Anchel123 Feb 25, 2026
a7d8ef2
Update @falkordb/canvas dependency version to use caret notation for …
Anchel123 Feb 25, 2026
6cc12a2
fix pom
Naseem77 Feb 26, 2026
4e5be84
fix canvas tests
Naseem77 Feb 26, 2026
562b995
fix canvas tests
Naseem77 Feb 26, 2026
2b080c7
Implement feature X to enhance user experience and optimize performance
Anchel123 Feb 26, 2026
772431a
fix nodeDetailsPanel tests
Naseem77 Feb 26, 2026
fe5f159
Merge branch 'merge-main-to-staging' of https://github.com/FalkorDB/c…
Naseem77 Feb 26, 2026
b8d9403
fix build
Naseem77 Feb 26, 2026
665039b
fix playwright ci sharding
Naseem77 Feb 26, 2026
c68bae5
fix search Bar tests
Naseem77 Feb 26, 2026
de3dfd9
update @falkordb/canvas dependency to version 0.0.41
Anchel123 Feb 26, 2026
519e88d
fix search tests
Naseem77 Feb 26, 2026
00627b7
Merge branch 'merge-main-to-staging' of https://github.com/FalkorDB/c…
Naseem77 Feb 26, 2026
d9609cd
fix pom
Naseem77 Feb 28, 2026
34ad592
fix canvas tests
Naseem77 Feb 28, 2026
aead631
add interactWhenVisible for locators
Naseem77 Feb 28, 2026
dd8fd99
fix ci
Naseem77 Feb 28, 2026
998b2a3
Add interactWhenVisible safe waiting
Naseem77 Feb 28, 2026
1d41240
Merge pull request #500 from FalkorDB/merge-main-to-staging
Naseem77 Feb 28, 2026
6af8c27
Update version to 0.3.0 and refactor components for improved function…
Anchel123 Mar 2, 2026
bcce2b7
Fix delete key handling to prevent removal when no objects are selected
Anchel123 Mar 2, 2026
f243bbf
Merge remote-tracking branch 'origin/main' into fix-ai-commetns
Anchel123 Mar 2, 2026
cb4bb9c
Merge branch 'main' into staging
barakb Mar 2, 2026
a9a96d7
Merge branch 'staging' into fix-ai-commetns
barakb Mar 2, 2026
72a3394
Merge pull request #513 from FalkorDB/fix-ai-commetns
barakb Mar 2, 2026
ce9666f
Update SECRET_TOKEN in docker-compose.yml to use placeholder
Anchel123 Mar 2, 2026
44ae35e
Merge pull request #514 from FalkorDB/fix-docker-compose
Naseem77 Mar 2, 2026
375f0d7
Refactor components and update dependencies for improved functionalit…
Anchel123 Mar 3, 2026
c9b9c1c
Refactor RemoveLastPath function to return structured result and impr…
Anchel123 Mar 3, 2026
8746724
Refactor scopedLocator method for simplified selector handling
Anchel123 Mar 3, 2026
e58cc3b
Merge pull request #515 from FalkorDB/fix-ai-comments
barakb Mar 3, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/nextjs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ jobs:
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: "20"
node-version: "24"
cache: ${{ steps.detect-package-manager.outputs.manager }}
- name: Restore cache
uses: actions/cache@v3
Expand Down
21 changes: 13 additions & 8 deletions .github/workflows/playwright.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: lts/*
node-version: 24
- name: Install dependencies
run: npm ci
- name: Install Playwright Browsers
Expand All @@ -36,17 +36,22 @@ jobs:
run: |
npm install
npm run build
NEXTAUTH_SECRET=SECRET npm start &
npx playwright test --shard=${{ matrix.shard }}/2 --reporter=dot,list
NEXTAUTH_SECRET=SECRET npm start & npx playwright test --shard=${{ matrix.shard }}/2 --reporter=dot,list
- name: Ensure required directories exist
if: always()
run: |
mkdir -p playwright-report
mkdir -p playwright-report/artifacts
- uses: actions/upload-artifact@v4
if: ${{ !cancelled() }}
if: always()
with:
name: playwright-report-shard-${{ matrix.shard }}
path: playwright-report/
retention-days: 30
- uses: actions/upload-artifact@v4
if: ${{ !cancelled() }}
- name: Upload failed test screenshots
if: always()
uses: actions/upload-artifact@v4
with:
name: test-results-shard-${{ matrix.shard }}
path: test-results/
name: failed-test-screenshots-shard-${{ matrix.shard }}
path: playwright-report/artifacts/
retention-days: 30
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Use a Node.js base image
FROM node:22
FROM node:24

# Set working directory
WORKDIR /app
Expand Down
85 changes: 56 additions & 29 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,87 +1,114 @@
# CodeGraph - Knowledge Graph Visualization Tool

### Visualize your repository with our graph for code analysis

[![Try Free](https://img.shields.io/badge/Try%20Free-FalkorDB%20Cloud-FF8101?labelColor=FDE900&link=https://app.falkordb.cloud)](https://app.falkordb.cloud)
[![Dockerhub](https://img.shields.io/docker/pulls/falkordb/falkordb?label=Docker)](https://hub.docker.com/r/falkordb/falkordb/)
[![Discord](https://img.shields.io/discord/1146782921294884966?style=flat-square)](https://discord.com/invite/6M4QwDXn2w)
[![Workflow](https://github.com/FalkorDB/code-graph/actions/workflows/nextjs.yml/badge.svg?branch=main)](https://github.com/FalkorDB/code-graph/actions/workflows/nextjs.yml)
-

![Alt Text](https://res.cloudinary.com/dhd0k02an/image/upload/v1739719361/FalkorDB_-_Github_-_readme_jr6scy.gif)

![image](https://github.com/FalkorDB/code-graph/assets/753206/60f535ed-cf29-44b2-9005-721f11614803)
**👉🏻[Live Demo](https://code-graph.falkordb.com/)**

## Getting Started
[Live Demo](https://code-graph.falkordb.com/)
## Running Locally

## Run locally
This project is composed of three pieces:
This project consists of three core components:

1. FalkorDB Graph DB - this is where your graphs are stored and queried
2. Code-Graph-Backend - backend logic
3. Code-Graph-Frontend - website
1. **FalkorDB Graph DB** – Stores and queries your graphs.
2. **Code-Graph-Backend** – Handles backend logic.
3. **Code-Graph-Frontend** – Provides the web interface.

You'll need to start all three components:
To set up the project, you’ll need to start all three components.

### Run FalkorDB
### 1. Start FalkorDB

Run the following command to start FalkorDB using Docker:

```bash
docker run -p 6379:6379 -it --rm falkordb/falkordb
```

### Run Code-Graph-Backend
### 2. Start the Backend

#### Clone the Backend
#### Clone the Backend Repository

```bash
git clone https://github.com/FalkorDB/code-graph-backend.git
cd code-graph-backend
```

#### Setup environment variables
#### Set Up Environment Variables

`SECRET_TOKEN` - user defined token used to authorize the request
Define the required environment variables:

```bash
export FALKORDB_HOST=localhost FALKORDB_PORT=6379 \
OPENAI_API_KEY=<YOUR OPENAI_API_KEY> SECRET_TOKEN=<YOUR_SECRECT_TOKEN> \
OPENAI_API_KEY=<YOUR_OPENAI_API_KEY> SECRET_TOKEN=<YOUR_SECRET_TOKEN> \
FLASK_RUN_HOST=0.0.0.0 FLASK_RUN_PORT=5000
```

#### Install dependencies & run
`SECRET_TOKEN` is a user-defined token used for request authorization.

```bash
cd code-graph-backend
#### Install Dependencies & Start the Backend

```bash
pip install --no-cache-dir -r requirements.txt

flask --app api/index.py run --debug > flask.log 2>&1 &

```

### Run Code-Graph-Frontend
### 3. Start the Frontend

#### Clone the Frontend
#### Clone the Frontend Repository

```bash
git clone https://github.com/FalkorDB/code-graph.git
cd code-graph
```

#### Setup environment variables
#### Set Up Environment Variables

```bash
export BACKEND_URL=http://${FLASK_RUN_HOST}:${FLASK_RUN_PORT} \
SECRET_TOKEN=<YOUR_SECRECT_TOKEN> OPENAI_API_KEY=<YOUR_OPENAI_API_KEY>
SECRET_TOKEN=<YOUR_SECRET_TOKEN> OPENAI_API_KEY=<YOUR_OPENAI_API_KEY>
```

#### Install dependencies & run
#### Install Dependencies & Start the Frontend

```bash
cd code-graph
npm install
npm run dev
```

### Process a local repository
### 4. Process a Local Repository

Use the following `curl` command to analyze a local repository:

```bash
curl -X POST http://127.0.0.1:5000/analyze_folder -H "Content-Type: application/json" -d '{"path": "<PATH_TO_LOCAL_REPO>", "ignore": ["./.github", "./sbin", "./.git","./deps", "./bin", "./build"]}' -H "Authorization: <YOUR_SECRECT_TOKEN>"
curl -X POST http://127.0.0.1:5000/analyze_folder \
-H "Content-Type: application/json" \
-H "Authorization: <YOUR_SECRET_TOKEN>" \
-d '{"path": "<PATH_TO_LOCAL_REPO>", "ignore": ["./.github", "./sbin", "./.git", "./deps", "./bin", "./build"]}'
```

Note: At the moment code-graph can analyze both the Java & Python source files.
Support for additional languages e.g. C, JavaScript, Go is planned to be added
in the future.

Browse to [http://localhost:3000](http://localhost:3000)
### 5. Access the Web Interface

Once everything is running, open your browser and go to:

[http://localhost:3000](http://localhost:3000)

## Community

Have questions or feedback? Reach out via:

* [GitHub Issues](https://github.com/FalkorDB/GraphRAG-SDK/issues)
* Join our [Discord](https://discord.com/invite/6M4QwDXn2w)

⭐️ If you find this repository helpful, please consider giving it a star!

Knowledge Graph, Code Analysis, Code Visualization, Dead Code Analysis, Graph Database
70 changes: 36 additions & 34 deletions app/api/repo/route.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { NextResponse } from "next/server";
import { NextRequest, NextResponse } from "next/server";
import { getEnvVariables } from "../utils";

export async function GET() {
Expand All @@ -22,39 +22,41 @@ export async function GET() {
return NextResponse.json({ result: repositories }, { status: 200 })
} catch (err) {
console.error(err)
return NextResponse.json((err as Error).message, { status: 400 })
return NextResponse.json(err instanceof Error ? err.message : String(err), { status: 400 })
}
}

// export async function POST(request: NextRequest) {

// const repo_url = request.nextUrl.searchParams.get('url');

// try {

// if (!repo_url) {
// throw new Error("URL parameter is missing");
// }

// const { url, token } = getEnvVariables();

// const result = await fetch(`${url}/process_repo`, {
// method: 'POST',
// body: JSON.stringify({ repo_url, ignore: ["./.github", "./sbin", "./.git", "./deps", "./bin", "./build"] }),
// headers: {
// "Authorization": token,
// 'Content-Type': 'application/json'
// },
// cache: 'no-store'
// });

// if (!result.ok) {
// throw new Error(await result.text());
// }

// return NextResponse.json({ message: "success" }, { status: 200 });
// } catch (err) {
// console.error(err)
// return NextResponse.json((err as Error).message, { status: 400 });
// }
// }
export async function POST(request: NextRequest) {

const repo_url = request.nextUrl.searchParams.get('url');

try {

if (!repo_url) {
throw new Error("URL parameter is missing");
}

const { url, token } = getEnvVariables();

const isLocal = repo_url.startsWith("file://")

const result = await fetch(`${url}/${isLocal ? "analyze_folder" : "analyze_repo"}`, {
method: 'POST',
body: JSON.stringify({ repo_url, ignore: ["./.github", "./sbin", "./.git", "./deps", "./bin", "./build"] }),
headers: {
"Authorization": token,
'Content-Type': 'application/json'
},
cache: 'no-store'
});

if (!result.ok) {
throw new Error(await result.text());
}

return NextResponse.json({ message: "success" }, { status: 200 });
} catch (err) {
console.error(err)
return NextResponse.json(err instanceof Error ? err.message : String(err), { status: 400 });
}
}
Loading
Loading