Skip to content Skip to footer
0 items - $0.00 0

Show HN: I built an app to generate story relationships using Mermaidjs by herol3oy

Show HN: I built an app to generate story relationships using Mermaidjs by herol3oy

Show HN: I built an app to generate story relationships using Mermaidjs by herol3oy

13 Comments

  • Post Author
    ozim
    Posted April 9, 2025 at 3:53 pm

    I was thinking JIRA stories, well corporate dev dirty mind.

  • Post Author
    knowitnone
    Posted April 9, 2025 at 4:06 pm

    This is handy. When I read, sometimes I have to go back and figure out who a character is so this is definitely right up my alley.

  • Post Author
    WillAdams
    Posted April 9, 2025 at 4:10 pm

    How do typos get fixed?

    The entry for _The Book of Jhereg_ has "Morio" which is not found in the text (conflation of Morollan and Mario?)

  • Post Author
    eterps
    Posted April 9, 2025 at 4:44 pm

    The system prompt can be found here:

    https://github.com/herol3oy/austen/blob/main/src/server/rout…

    It would be more interesting if the graph could be generated by sourcing an arbitrary epub file into a RAG and have it figure out character relations without reading the whole book.

    I wouldn't be surprised if it all could be done with a script using aichat[1] and rendering the diagram using graphviz.

    [1] https://github.com/sigoden/aichat

  • Post Author
    curtisszmania
    Posted April 9, 2025 at 5:02 pm

    [dead]

  • Post Author
    skeptrune
    Posted April 9, 2025 at 5:06 pm

    I tried "The Wise Man's Fear" and the results were not so great[1]. It got a good number of the characters, but only showed them being related to Kvothe. Harry potter worked better'ish, but still not great[2].

    My primary interest would be using these relational graphs to generate better structured summaries of stories in a structured JSON object for improved search/recommendations.

    – [1]https://austen.pages.dev/ecbc2d49-c10d-4e49-ac68-0d37a819b52…

    – [2]https://austen.pages.dev/ace16c1d-c74e-4737-a98d-5401047a1cd…

  • Post Author
    napoleongl
    Posted April 9, 2025 at 5:11 pm

    Wild that I was daydreaming earlier today about generating some diagrams with mermaid to show the plot and characters over the lifetime of a tv series!

  • Post Author
    kacesensitive
    Posted April 9, 2025 at 5:13 pm

    I did Dungeon Crawler Carl – hilariously wrong

    graph TD
    A[Carl] –>|Pet| B[Princess Donut]
    A –>|Enemy| C[Mordecai]
    A –>|Allies| D[Ellie]
    A –>|Allies| E[Katia]
    A –>|Enemy| F[The System]
    B –>|Rival| G[Bea]
    D –>|Friend| E
    E –>|Friend| A

  • Post Author
    MarcelOlsz
    Posted April 9, 2025 at 5:48 pm

    https://gitdiagram.com/ does something similar.

  • Post Author
    wduquette
    Posted April 9, 2025 at 5:56 pm

    Are story relationship diagrams of this kind a common thing that the OP's tool produces automatically, or did he devise both the tool and the diagram?

  • Post Author
    memhole
    Posted April 9, 2025 at 6:02 pm

    For anyone vibe checking the results:

    https://novelchallenge.github.io/

    At best you’re looking at 60% or so accuracy

  • Post Author
    aardvark179
    Posted April 9, 2025 at 6:54 pm

    Tried Book of the New Sun. Apparently Terminus Est (a sword) is Severian’s companion, and it completely fails to mention Dorcas.

    Oh well.

  • Post Author
    herol3oy
    Posted April 9, 2025 at 7:55 pm

    Hi, I created the app. I appreciate all of your comments. I know some may find the result of a book not concise or accurate. One issue was that I couldn't afford the price of a better LM service. At first, I tried a free tier of Gemini, but its results were disappointing. Later, I switched to DeepSeek and got better results.

Leave a comment

In the Shadows of Innovation”

© 2025 HackTech.info. All Rights Reserved.

Sign Up to Our Newsletter

Be the first to know the latest updates

Whoops, you're not connected to Mailchimp. You need to enter a valid Mailchimp API key.