graphstack
v0.0.14
Published
GraphQL Framework for TypeScript and JavaScript
Downloads
6
Readme
GraphStack
Work in progress and some links are broken!
GraphStack is a NodeJS framework that helps you to create scalable, maintainable, extensible, declarative and fast GraphQL-based server applications. It perfectly fits any architecture and scale you choose - from monoliths to microservices, from small to enterprise apps.
Using GraphStack your app's core components are:
- Controllers (root queries)
- Args (e.g. GraphQL resolver args or user input)
- Models
- Resolvers
- Services
- GraphQL schemas defined in
.graphql
format
GraphStack provides you following features:
- Controllers framework for your root queries
- Maintainable GraphQL resolvers framework with data loader out of the box
- User input validation framework with ability to use any validation library
- User authorization and access control framework
- Modules framework for large and scalable applications
- Integration with TypeORM and ability to use any other ORM or database source
- Automatic database relations resolver
- Automatic transaction wrapper for your mutations
- Powerful service container for code organization and seamless testing
- Ability to use model interfaces across backend and frontend
- Uses Express and Apollo Server and you have all power of these tools
And more...
Quick Start
To create a new JavaScript project using GraphStack install it globally and use init
command
with --javascript
flag:
npm i graphstack -g
graphstack init --name my-project --javascript
To create a new TypeScript project using GraphStack install it globally and use init
command
with --typescript
flag:
npm i graphstack -g
graphstack init --name my-project --typescript
Documentation
Links
- JavaScript simple example project
- JavaScript advanced example project
- TypeScript simple example project
- TypeScript advanced example project
Contributing
Want to contribute? GraphStack is opened for any contributions, just create a new github issue!