Titanium is a sugaring layer above
graphql-js library that eases the pain to create deeply interconnected and complex GraphQL Schemas.
- Painless Schema declaration;
- Built-in access and write rules;
- Input validation and sanitization;
- DataLoader for query batching support.
But why Titanium and not just plain GraphQL?
This is one of the most frequently asked questions about it! GraphQL is an amazing tool created by Facebook. It provides one of the most understandable ways to build and use a rich web API. However, the amount of boilerplate to setup a complex schema is huge. Been there, trust me!
Titanium was born to make you focus on your product development instead of platform setup. It comes with Relay and DataLoader bundled on its core. Just set up a field with a
connection type and you are ready to go! It is really that simple, check out the Blog Example.
One of the biggest advantages is the
rules configuration for a defined type. Inspired by the amazing Firebase Rules, you can prevent access from individual fields and arguments to whole nodes and mutations per user context!
Titanium is still being forged!
Titanium was initally created as a helper tool inside a personal project, but one day I decided to open its source, given its power and ability to accelerate development. Since then, a heavy work has been done every day to make it mature to real world situations.
Because of that, its API is still unstable and might change. It is still not recommended for production. Please help us to complete the Spec! Fork it, add more metallic sugar and send us a pull request :)
- Severe lack of documentation. I am really sorry about that. It's my very first open source project.
- Connection of Union types are still under development. Using them now may cause undesired results.
Having a weird issue? Drop a message at our Issues section. We'd be happy to help!