# @corejam/base

> A scaffolding for building progressive GraphQL powered jamstack applications

Latest version **0.0.14** (published 2021-02-16) · 0 weekly downloads

## Install

```sh
npm install @corejam/base
pnpm add @corejam/base
yarn add @corejam/base
bun add @corejam/base
```

## Health

**Score 25/100 (F)** — status: abandoned.

Positive: has types; esm support; no vulnerabilities.

Warnings: low downloads; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.14 |
| Published | 2021-02-16 |
| First published | 2020-09-15 |
| Weekly downloads | 0 |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 6 |
| Unpacked size | 126.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 24 |
| Maintainers | mattvb91, patrickhaug |
| Keywords | serverless, stenciljs, stencil-components, graphql, graqhql-server, jamstack, pwa, ssr, ssg, typescript, web-components, static-site-generator |

## Links

- npm: https://www.npmjs.com/package/@corejam/base
- Repository: https://github.com/Corejam/Corejam
- Homepage: https://corejam.io/
- Issues: https://github.com/corejam/corejam/issues
- npm.io page: https://npm.io/package/@corejam/base

## Dependencies (6)

- [faker](https://npm.io/package/faker.md) 5.1.0
- [faunadb](https://npm.io/package/faunadb.md) 4.0.0
- [graphql](https://npm.io/package/graphql.md) 15.4.0
- [apollo-server-micro](https://npm.io/package/apollo-server-micro.md) 2.19.2
- [apollo-cache-inmemory](https://npm.io/package/apollo-cache-inmemory.md) 1.6.6
- [apollo-server-caching](https://npm.io/package/apollo-server-caching.md) 0.5.2

## Alternatives

- [apollo-link-http-common](https://npm.io/package/apollo-link-http-common.md) — 879.0K weekly downloads
- [react-relay](https://npm.io/package/react-relay.md) — 336.8K weekly downloads
- [relay-test-utils](https://npm.io/package/relay-test-utils.md) — 181.6K weekly downloads
- [@vendure/core](https://npm.io/package/@vendure/core.md) — 14.8K weekly downloads
- [@pnpm/deps.graph-sequencer](https://npm.io/package/@pnpm/deps.graph-sequencer.md) — 13.4K weekly downloads

## Recent versions

- 0.0.14 (latest) — 2021-02-16
- 0.0.13-alpha.96 (next) — 2021-01-29
- 0.0.13 — 2021-01-29
- 0.0.12 — 2021-01-13
- 0.0.12-alpha.36 — 2021-01-04
- 0.0.12-alpha.26 — 2021-01-02
- 0.0.12-alpha.25 — 2020-12-28
- 0.0.12-alpha.7 — 2020-12-19
- 0.0.11 — 2020-11-27
- 0.0.10 — 2020-11-03
- 0.0.9 — 2020-11-02
- 0.0.8 — 2020-10-20
- 0.0.7 — 2020-10-16
- 0.0.6 — 2020-10-09
- 0.0.5 — 2020-10-09
- … 4 more at https://npm.io/package/@corejam/base/versions

## README

# @corejam/base

This package provides bootstraping functionality to Corejam applications.

Usage: 

```bash
npm install @corejam/base
```

### Bootstrap process

In order to bootstrap corejam apps we go through the dependancies defined in your project `package.json` in order to find corejam packages. 

After finding relevant packages we iterate over them & their dependancies recursively in order to find all corejam schemas / server resolvers that need to be loaded in the correct order.

For example your project has the following dependancies

```json
dependancies: {
    "next": "latest",
    "@corejam/plugin-dershop": "latest",
    "some-other-package: "latest"
}
```

First we iterate over all packages and extract `@corejam/plugin-dershop` by its `corejam` identifier in its package.json

Then in turn we need to look at the dependancies of `@corejam/plugin-dershop` recursively and do the exact same thing if we can identify any more corejam apps.

Once we have the correct order to load schemas and resolvers we can go ahead and merge the context together into one bootstrapped app.

---
_Source: https://npm.io/package/@corejam/base · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
