Example Request: integrate perspective into a next.js 15 app #2947
-
Example RequestDescription of Problem:next.js version 15 is arguably the most popular framework for web apps these days. It provides both client-side and server-side functionality. Code snippets like https://github.com/finos/perspective/blob/master/docs/md/how_to/javascript/nodejs_server.md and the code in https://github.com/finos/perspective/blob/master/rust/perspective-js/src/ts/perspective.node.ts give clues as to what needs to be done to integrate perspective into next.js, but leave a lot to be desired. A basic example of perspective in next.js, leveraging next.js' server-side for a client/server replicated table, would go a long way for adoption of perspective. Potential Solutions:Use the integrated server-side capabilities of next.js to obviate the need for a standalone perspecitve web socket server. Don't use next.js' default bundler |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 8 replies
-
Community contributed next.js example on prospective.co. There is also a
This is not possible. You can either use Perspective client-only as in the example above, or you can use a WebSocket server (perhaps by integrating Perspective's node.js server as a Next.js Custom Server). |
Beta Was this translation helpful? Give feedback.
-
![]() |
Beta Was this translation helpful? Give feedback.
Community contributed next.js example on prospective.co. There is also a
react
example in the repo. I'm down to accept contributions of new/examples
projects if they are simple, maintainable and novel.This is not possible. You can either use Perspective client-only as in the example above, or you can use a WebSocket server (perhaps by integrating Perspective's node.js server as a Next.js Custom Server).