MCPcopy Index your code
hub / github.com/CrystallizeAPI/crystallize-nextjs-boilerplate

github.com/CrystallizeAPI/crystallize-nextjs-boilerplate @3.1.0

Chat with this repo
repository ↗ · DeepWiki ↗ · release 3.1.0 ↗ · + Follow
82 symbols 222 edges 68 files 1 documented · 1%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

Crystallize React ecommerce frontend boilerplate

The bare minimum skeleton you need to get a frontend up and running on the headless ecommerce & GraphQL based product Information Management service Crystallize. React commerce with Next.js SSR.

This frontend boilerplate is a great startingpoing when building React ecommerce experiences with frontend performance in focus. You can have rich ecommerce content with the super structured PIM engine in Crystallize powering your product catalogue.

Fast frontend performance delivers a better ecommerce experience and is a key ingredient in the ecommerce SEO checklist. Rich content driven ecommerce experiences builds the foundation for a content strategy for exponential growth marketing.

Check it out, the boilerplate is Open Source and MIT licensed.

React: latest

Next: latest

code style: prettier

code linter: Eslint

Getting started

App structure

./pages

Put all your entry pages here

./components

All your shared components

./ui

UI related components live her. Color variables and simple shared components

./server

This is where the ultra-light frontend server lives. Its primary function is to render the React app in response to a request

./lib

Library code to enable GraphQL and REST API communication and more

./static

Resources server statically by the web server. Including translation files

Deploy

There are multiple alternatives for deployments, however for the easiest hosting of a Node application, one option is Now.

Deploying with Now

  • Register a Now account
  • Run npm run global add now
  • Navigate to your project folder
  • Run now

Core symbols most depended-on inside this repo

sendError
called by 3
server/checkout.js
render
called by 2
pages/_app.js
create
called by 2
lib/init-apollo.js
doPost
called by 2
lib/rest-api/helpers.js
callApi
called by 2
server/lib/crystallize.js
getInitialProps
called by 1
pages/_error.js
empty
called by 1
pages/checkout/confirmation.js
normalizeContentFields
called by 1
lib/normalizers.js

Shape

Function 38
Class 25
Method 19

Languages

TypeScript100%

Modules by API surface

pages/checkout/confirmation.js9 symbols
ui/screen.js7 symbols
lib/with-data.js5 symbols
server/lib/crystallize.js4 symbols
pages/login/index.js4 symbols
pages/index/index.js4 symbols
pages/checkout/index.js4 symbols
pages/_error.js4 symbols
components/auth-context.js4 symbols
ui/icons.js3 symbols
pages/product/index.js3 symbols
pages/_app.js3 symbols

For agents

$ claude mcp add crystallize-nextjs-boilerplate \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact