5 ms·
Jschema.js is a framework for modeling data in JavaScript
- eoincathal 9y agoI can see a use case in my current work. We're building a dashboard visualisation for our product. I'm writing the REST API backend for it - and trying to make that API as easy to easy to use for the front end (inhouse customer) as I can. However, I'm finding that I'm writing a lot of endpoints that are variations on the same data. We will circle around, identify the common patterns/variations and consolidate a bunch of the code. But something like this, that facilitates sorting, grouping and filtering on the front end, could be useful.
- souenzzo 9y agoreminded me of https://github.com/tonsky/datascript https://github.com/tonsky/datascript
- ignoreintuition 9y agoIt shares some ideas.
- ztratar 9y agoI don't understand why I need this -- think about selling it more clearly on the Github page.
- ignoreintuition 9y agoI'll work on that. Sometimes it is tough to convey it since it is clear in my head that it may not be as clear to others.
- deleted 9y ago[deleted]
- systematical 9y agoIs there a demo?
- ignoreintuition 9y agoI'll be working on one. Probably after I get through building out the mocha scripts and getting in a few modifications to the functions.
- code-is-code 9y agoMaybe an example schema on the readme would help
- ignoreintuition 9y agoWorking on some examples.
- Lazare 9y agoI feel like this was written because it solved someone's problem, but I can't quite figure out what, or if it would solve any of my problems. What is this for? Talking to a REST API? Serializing and de-serializing data? Acting as an in-memory DB? What library does it compete with?
- cpayne624 9y agoThey have a "How to Use" in the README. Needs a "Why to Use" too.
- ignoreintuition 9y agoReading through some of these comments I agree: It is probably a good idea to add in a 'why to use' section on the repo. The purpose behind this was that I found it cumbersome to work with dataets in JavaScript so this framework lets you pull them into a schema that has metadata to handle relationships between tables, aggregation methods, sorting and filtering. As for competing frameworks: I have seen some of this in other larger frameworks but I build this out so I can work with data in JS without pulling in monolithic data visualization libraries.
- sqlexists 9y agoIf only there were some kind of... structured query language of sorts... maybe call it SQL. And there will be relations... with data... and the data will have schemata, so you can make certain inferences and assumptions... oh, if only someone would create this!
- zumu 9y agoI initially thought this had something to do with JSON schema -- I'd consider making the name more descriptive / less generic