Our great sponsors
-
next-connect
The TypeScript-ready, minimal router and middleware layer for Next.js, Micro, Vercel, or Node.js http/http2
-
SurveyJS
Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App. With SurveyJS form UI libraries, you can build and style forms in a fully-integrated drag & drop form builder, render them in your JS app, and store form submission data in any backend, inc. PHP, ASP.NET Core, and Node.js.
-
react-query
Discontinued 🤖 Powerful asynchronous state management, server-state utilities and data fetching for TS/JS, React, Solid, Svelte and Vue. [Moved to: https://github.com/TanStack/query]
-
InfluxDB
Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
I use next-connect to use connect-like middlewares. A traditional API route handler in Next.js is like:
The widget source code
Then on the server side, we use dayjs to handle this offset:
The SDK should be bundle in a single JS file. I choose Vite because it's fast, and it has a built in PostCSS support. In other words, I don't need to care about the bundler, the only plugin I use is rollup-plugin-svelte for compiling Svelte component:
Svetle is the best choice in this case. It doesn't come with a runtime and compiles the component into vanilla JavaScript.
react-query to handle HTTP request
next-auth is a authentication solution for Next.js. I follow the Prisma Adapter guide and integrate GitHub providers just in a minute! All I need to do is create a GitHub OAuth application and set up the next-auth provider in src/pages/api/[...nextauth].ts.
chakra-ui to write usable and beautiful UI
Related posts
- Million 3.0: All You Need To Know
- New client-side hooks coming to React 19
- The importance of having native apps on Windows. Having an OS relying on a web browser solely is unacceptable. To all those devs still believing in UWPs apps. Thank you.
- Next.js vs. Angular: Comparing key features and use cases
- Any framework recommendations for 2023? Does React still has good demand?