All Projects â†’ Yolk-HQ â†’ next-utils

Yolk-HQ / next-utils

Licence: MIT License
ðŸĨĐ ðŸģ A set of Next.js HoC utilities to make your life easier

Programming Languages

typescript
32286 projects
javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to next-utils

Sentry Javascript
Official Sentry SDKs for JavaScript. We're hiring https://grnh.se/ca81c1701us
Stars: ✭ 6,012 (+19940%)
Mutual labels:  sentry, sentry-client, nextjs
boilerplate
Fullstack boilerplate using Typescript, React, Node & GraphQL
Stars: ✭ 738 (+2360%)
Mutual labels:  sentry, nextjs
Next Graphql Blog
🖊 A Blog including a server and a client. Server is built with Node, Express & a customized GraphQL-yoga server. Client is built with React, Next js & Apollo client.
Stars: ✭ 152 (+406.67%)
Mutual labels:  apollo-client, nextjs
Sentry Php
The official PHP SDK for Sentry (sentry.io)
Stars: ✭ 1,591 (+5203.33%)
Mutual labels:  sentry, sentry-client
Nextjs Wordpress Starter
WebDevStudios Next.js WordPress Starter
Stars: ✭ 104 (+246.67%)
Mutual labels:  apollo-client, nextjs
Nextjs Headless Wordpress
ðŸ”Ĩ Nextjs Headless WordPress
Stars: ✭ 110 (+266.67%)
Mutual labels:  apollo-client, nextjs
Vscodethemes
Preview themes from the VSCode marketplace.
Stars: ✭ 374 (+1146.67%)
Mutual labels:  sentry, nextjs
shici
ä―ŋį”Ļ next.js äļŽ graphql 做äļ€äļŠčŊ—čŊå°įŦ™
Stars: ✭ 79 (+163.33%)
Mutual labels:  apollo-client, nextjs
good-sentry
Sentry broadcasting for good process monitor
Stars: ✭ 15 (-50%)
Mutual labels:  sentry, sentry-client
aiohttp-sentry
An aiohttp server middleware for reporting failed requests to Sentry
Stars: ✭ 35 (+16.67%)
Mutual labels:  sentry, sentry-client
crow
Crow - a C++ client for Sentry
Stars: ✭ 119 (+296.67%)
Mutual labels:  sentry, sentry-client
Graphql Apollo Next.js
A server-rendering GraphQL client with Apollo Client and Next.js
Stars: ✭ 59 (+96.67%)
Mutual labels:  apollo-client, nextjs
Crypto Grommet
Crypto and equities app
Stars: ✭ 39 (+30%)
Mutual labels:  apollo-client, nextjs
Reactql
Universal React+GraphQL starter kit: React 16, Apollo 2, MobX, Emotion, Webpack 4, GraphQL Code Generator, React Router 4, PostCSS, SSR
Stars: ✭ 1,833 (+6010%)
Mutual labels:  apollo-client, server-side-rendering
Universal React Apollo Registration
Open Source Universal User Registration System – NodeJS React Apollo GraphQL JWT MongoDB
Stars: ✭ 495 (+1550%)
Mutual labels:  apollo-client, server-side-rendering
server-authentication-next.js
No description or website provided.
Stars: ✭ 103 (+243.33%)
Mutual labels:  nextjs, server-side-rendering
Nextjs Jwt Authentication
A proof of concept app for demonstrating authentication of Next.js app with JWT.
Stars: ✭ 191 (+536.67%)
Mutual labels:  nextjs, server-side-rendering
Next Ga
Next.js HOC to integrate Google Analytics on every page change
Stars: ✭ 228 (+660%)
Mutual labels:  nextjs, hoc
Raven Python
Raven is the legacy Python client for Sentry (getsentry.com) — replaced by sentry-python
Stars: ✭ 1,677 (+5490%)
Mutual labels:  sentry, sentry-client
nextcloud sentry
Sentry integration for Nextcloud
Stars: ✭ 26 (-13.33%)
Mutual labels:  sentry, sentry-client

next-utils

A set of Next.js utilities to make your life easier.

ATTENTION: This project is no longer maintained.


Actions Status version downloads MIT License

All Contributors PRs Welcome Code of Conduct

Tweet


Overview

React Higher-Order Components for use with Next.js, enabling simple, server-side-render-compatible configuration of functionality such as:

Table of Contents

Installation

This module is distributed via npm which is bundled with node and should be installed as one of your project's dependencies:

npm install @yolkai/next-utils

Note

NOTE: Using any of these Higher-Order-Components will disable Automatic Static Optimization (statically built pages), since the Higher-Order-Component forces every page to implement getInitialProps.

ðŸ”Ū Apollo Client

appWithApolloClient

Example Usage

Code

React higher-order component (HoC) which wraps the App component and:

  • Performs the page's initial GraphQL request on the server, and serializes the result to be used as the initial Apollo state once the client mounts.
  • Passes the Apollo client to the wrapped App component.

🔭 Sentry

Example Usage

appWithSentry

Code

React higher-order component (HoC) which wraps the App component and captures any exceptions thrown in getInitialProps and emits them to Sentry.

initSentry

Code

Initializes Sentry and creates a captureException function which can be used with appWithSentry. This function is unique and adds extra Next.js information to captured exceptions.

📚 LinguiJS

appWithLingui

Example Usage

Code

React higher-order component (HoC) that wraps the App component in LinguiJs's I18nProvider component.

It will then detect:

  1. The best language to use based on the incoming request
  2. Load the catalog for that language, and supply it to the I18nProvider

🍊 React Cookies

appWithCookies

Example Usage

Code

React higher-order component (HoC) which wraps the App component and passes a cookies access object to the App component.

🔏 Authentication

makeRedirectPage

Example Usage

Code

Next.js Page Component which redirects to the given URL using the given HTTP status code.

redirect

Example Usage

Code

A small utility function helpful when redirecting users both on the server and the client.

Testing

RouterContext

Example Usage

Code

A React Context object which is very helpful when using Next.js with preview tools such as Storybook. Allows for components to use <Link> / Router provided by an ancestor component without errors.

Other Solutions

Some of these solutions are based on the examples found the official Next.js examples repo.

If you see an improvment please make a pull request.

Used in Production By

Yolk AI

Contributors

!!TO BE FILLED!!

This project follows the all-contributors specification. Contributions of any kind welcome!

LICENSE

MIT

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].