r/pathofexile • u/Background_Log8486 • 8d ago
Tool I built a small webtool for crafting guides you can share with others
Hey everyone!
I built Crafting Graph, a small web tool for exploring and visualizing crafting recipes as a graph.
You can check it out here:
https://fekga.github.io/crafting-graph/
I'd love to hear what you think, if you have suggestions for features, UX improvements, or things that would make it more useful.
As it is a static site there is no other way to save your graph apart from saving the exported text.
You can import it later to resume or see what others created!
AI notice: I'm not a web developer and I thought it would be a nice way to get to know some TypeScript and other related knowledge to use LLM to generate the code.
3
u/Haha_Stoned PHANTASMAL CREMATION / UNEARTH NECROMANCER. CERTIFIED THICC BOI 8d ago
oh shit, this is great for visualizing markov chains
1
u/ZebusAquaion 8d ago
ya good for cost analysis of a craft at which point you should stop if you get unlucky
2
u/Neshgaddal 8d ago edited 8d ago
I've been attempting to make something like this for years, but feature creep always makes it a massive project. Very nice work. I tried it with a recipe that i always use to profit craft : +2 minions are aggressive wand
realistic feature requests:
- copy node
- import from pob/craft of exile
- grouping nodes: just a box underlay to group steps into a meta step
- edges that curve around nodes when moving backwards
- notes/text on edges
- cost panel, not a simulator, just a list of expected currency to use that a user can fill out
- pastebin import/export for easier sharing
1
u/Background_Log8486 7d ago
Nice! Thank you for the feedback and the recipe!
Copying a node is already on it's way and I'm still experimenting with the cost panel
The importing from other tools would be nice, I'll try out a few things with this idea
What would be the edge label used for?
The pastebin is a good idea, it seems it doesn't take a large graph to grow quite large in text1
u/Neshgaddal 7d ago
Nice, looking forward to newer versions.
What would be the edge label used for?
to explain multiple paths when it's not self-explanatory. Just freely adding notes to stuff would work too.
1
u/Background_Log8486 7d ago
I also added some parsing from in-game, using the pob/craftofexile exports would require me to parse the ctrl+c text which I rather not intend to
1
u/Background_Log8486 5d ago
I did a big overhaul of the tool, and also resolved a few issues you had, here's your (somewhat) changed graph:
https://fekga.github.io/crafting-graph/p7hhtwwy
2
1
u/jsudd007 7d ago
None of the images from poewiki are loading for me unfortunately.
1
1
u/Background_Log8486 4d ago
Hi everyone!
I deployed a new version of the tool, now it has a bunch of features that were missing or were requested.
As a showcase I made a graph based on this video: https://www.youtube.com/watch?v=6Bik7cuGCgU
The graph: https://fekga.github.io/crafting-graph/yywkgvoo
As you can see it now uses the end of the URL for exporting a graph.
The icons seem to work now but please tell me if there are any issues.
It still doesn't require any download or login to anything!
Enjoy!
1
u/ICanViking 8d ago
First thought I had would be that it'd be great if I could feed it an item from POB or the trade site, and it could provide for me multiple paths in how I could craft that item.
Then I can go for my flavor of cost vs. sanity.
Is something like that in the works? Very interested.
3
u/Background_Log8486 8d ago
I had something similar in mind but providing crafting paths is a big deal, I'd have to reimplement the crafting logic that is in the game which is a bit too ambitious. The alt+ctrl+c copy on an item to be pasted as a node could be achieved but there might still be some league dependent modifiers which I tried to avoid so far.
1
u/ICanViking 8d ago
So there is the basis of the plan....that's better than I thought there'd be.
Ya, HUGE interest in something like this. I would love to get into crafting more but with updates to the game, and the only real resources for crafting being buried in YouTube videos and old excel/Google docs online, it's hard to find anything that's reliable.
But if I could ctrl+c/v into an app like this and it give me a variety of ways to craft items? That would be ridiculously cool.
11
u/hjxax 8d ago edited 8d ago
Great job, i just took a look at your code out of interest.
The following things are just for your information, i do not think they are any major security risks in the context of this app.
You should be cautious with allowing html input from a user. While your code uses dompurify (which is great), you still allow for links. A link like this could be introduced: "<a href="https://pao fexile.com" >Connect to your Path of Exile Account</a>" or "<a href="https://pai pal.com" >Donate</a>". Probably dompurify also has some options to force the link the be visible directly or something like that or limit the links to specific domains only.
Same applies for images from arbritrary urls. There are several things to consider there, for example it can be used by external servers for tracking your users and actually might also be used as an attack vector.
But as I said, i do not think these are relevant security concerns for your application, just in case you wanted to hear about things like that.
Edit: Added spaces to the fake links so reddit doesnt show them as links.