Giter VIP home page Giter VIP logo

bookmetadatapoc's Introduction

POC BookMetaData

Problem

When reading LitRPG, I often found myself wondering what the current stats blocks of the characters looked like. The more I thought about the feature the more I realized I liked the problem.

Objective

Create a solution that takes in the readers current page and providers metadata to the reader. I wanted the solution to be generalized so that the solution would work for any metadata not just metadata for LitRPG.

Notes

cinnamonBun was the first pass. The JSON structure is more rudimentary than threadBare. When I went to create a real example, I realized that I would need every key to have a display value. This is turn created display/value structure.

"display": ""
"value": 

Solution

There are two assumptions made.

  1. No arrays are used in the JSON. This is to prevent two problems.
    1. Arrays in json are just maps with default keys that are the index of the elements. This creates a problem when those elements move around.
    2. There is no way to update elements in an array which creates much worse data entry.
  2. keys are present in the root json. Current implementation has static set keys, but I believe this can be modified to by dynamic in future interations.

In a full implementation a template system would also be necessary for rendering the output. To enable this functionality to be integrated into other software it will need to be wrapped in a service.

bookmetadatapoc's People

Contributors

chrisdcarpenter avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.