VOOZH about

URL: https://thenewstack.io/why-viable-uses-next-js-and-node-js-for-ai-applications/

⇱ Why Viable Uses Next.js and Node.js for AI Applications - The New Stack


TNS
SUBSCRIBE
Join our community of software engineering leaders and aspirational developers. Always stay in-the-know by getting the most important news and exclusive content delivered fresh to your inbox to learn more about at-scale software development.
REQUIRED
It seems that you've previously unsubscribed from our newsletter in the past. Click the button below to open the re-subscribe form in a new tab. When you're done, simply close that tab and continue with this form to complete your subscription.
The New Stack does not sell your information or share it with unaffiliated third parties. By continuing, you agree to our Terms of Use and Privacy Policy.
Welcome and thank you for joining The New Stack community!
Please answer a few simple questions to help us deliver the news and resources you are interested in.
REQUIRED
REQUIRED
REQUIRED
REQUIRED
REQUIRED
Great to meet you!
Tell us a bit about your job so we can cover the topics you find most relevant.
REQUIRED
REQUIRED
REQUIRED
REQUIRED
REQUIRED
Welcome!

We’re so glad you’re here. You can expect all the best TNS content to arrive Monday through Friday to keep you on top of the news and at the top of your game.

What’s next?

Check your inbox for a confirmation email where you can adjust your preferences and even join additional groups.

Follow TNS on your favorite social media networks.

Become a TNS follower on LinkedIn.

Check out the latest featured and trending stories while you wait for your first TNS newsletter.

PREV
1 of 2
NEXT
VOXPOP
As a JavaScript developer, what non-React tools do you use most often?
Angular
0%
Astro
0%
Svelte
0%
Vue.js
0%
Other
0%
I only use React
0%
I don't use JavaScript
0%
Thanks for your opinion! Subscribe below to get the final results, published exclusively in our TNS Update newsletter:
NEW! Try Stackie AI
From clobbered drafts to real-time sync
Apr 14th 2026 10:00am, by David Moore
TypeScript 6.0 RC arrives as a bridge to a faster future
Mar 14th 2026 9:00am, by Darryl K. Taft
Mastra empowers web devs to build AI agents in TypeScript
Jan 28th 2026 11:00am, by Loraine Lawson
2023-12-08 09:56:26
Why Viable Uses Next.js and Node.js for AI Applications
AI / API Management / Frontend Development / JavaScript

Why Viable Uses Next.js and Node.js for AI Applications

Viable, a customer analysis startup, combines AI with JavaScript on the frontend. The CEO explains why he used Next.js and Node.js.
Dec 8th, 2023 9:56am by Loraine Lawson
👁 Featued image for: Why Viable Uses Next.js and Node.js for AI Applications
Photo by RealToughCandy.com via Pexels.

While most generative artificial intelligence bots are accessed by a chat interface, that’s not the only user interface AI can have. Viable is one example of a company that uses AI without resorting to a chatbot interface.

The startup aggregates and analyzes customer feedback for companies. That data can come from online reviews, survey responses, social media and customer service platforms such as ZenDesk or Intercom — basically anywhere where customers are talking to the company about its service. Viable then uses AI to combine that customer feedback with AI analysis to create reports instead of a chat, said founder and CEO Daniel Erickson.

“The data comes in, it processes that data, it digs in to find topics and identifies themes within that data set, then analyzes those themes for you, and puts out about 10 paragraphs per theme that we analyze, and it reads like a report,” Erickson, who is also a software engineer, told The New Stack. “When you’re actually looking at at the Viable app, what you’re doing is you’re actually reading reports, and they read like a human analyst would have written them.”

It was among the first companies to leverage OpenAI‘s GPT API, he added.

AI without the Chat

Honeycomb is another example of an AI deployment that doesn’t leverage chat, Erickson noted. Honeycomb uses a natural language interface that allows users to create queries in plain language. The AI then outputs a more technical, SQL-like query, he said. He also foresees other uses for natural language models beyond chatbots.

“I think people are going to do a lot less toggling filters and drop downs and more just typing out what they want to find and they’re going to get that stuff back,” he said. “The other thing that I’ve seen is people often struggle with interacting with these AIs, because there’s a little bit of a learning curve to understand how — I’m not going to claim they think necessarily — but how they ‘think.’”

That’s why it’s really important to provide feedback to customers about the things they’re asking AI to do, he added. To that end, Viable created a prompt coach to aid customers with their queries.

“We built basically this sort of coach thing that goes in and looks at that prompt and says, ‘Here’s how you can improve that prompt to make it easier for the AI to understand and get better output for it,’” he said.

Why Next.js and Node.js

Viable uses the Next.js framework hosted on Vercel to create its user interface and APIs. Next.js makes it easy to spin up new API endpoints in new pages in the UI, Erickson said. That’s because in Next.js, creating a new route requires just a new file in a folder, which is much easier than other open source options like Express, he added.

“It basically just does it,” he said. “So many other frameworks out there, you have to go in and say like, ‘I want my API route to look like this, only accept these things, and really just go in and do the nitty gritty there. Next.js, all I have to do is create a new file, drop the pages [in] /API directory, and all of a sudden I have a new API route.”

Another benefit of Next.js for Erickson is the ecosystem, which he noted is larger than any other framework out there except maybe React itself. And Next.js uses React under the hood anyway, he added.

“Basically if it’s compatible with React […] and then there’s a bunch of extra libraries that are open source that build around authentication, around different data sources, around different components — like UI components — and libraries,” he said. “There’s just a ton there that the ecosystem is really easy to plug into and it has a lot of tools for me that I don’t have to build myself.”

One of the challenges Viable faced was that its data ingestion pipeline needs to be able to support everything from a stream of data to a monsoon, since customer feedback can be “spiky,” he explained.

“You don’t know if that’s going to be five messages a day or if it’s going to be 500,000 messages a day. It all depends on what your company is doing and what people are talking about,” he said. “Vercel’s serverless architecture and edge functions really help us scale to meet those demands.”

He opted for JavaScript because, as a JavaScript engineer, he’d worked with the Node.js runtime environment since 2009, so it was part of his go-to toolbox for writing code. It’s also very good at dealing with asynchronous data processing, he added. What makes it good is that it runs in an asynchronous manner, meaning it basically has a runtime loop that happens when the code runs.

“It can pause the execution of a process,” he said. “It’s pulling in more data, meaning it can actually multitask a lot better than a lot of other programming languages out there. You have to think about multitasking less with Node than you do when you deal with other things.”

Caveats When Developing with AI

One thing developers should be aware of before they dive into developing with AI is that most AI requires support for real-time streaming, Erickson said.

“If you’ve chatted with ChatGPT or anything when you do that, you can actually see the text streaming in,” He said. “It doesn’t like having a little loading indicator and then typing all the text in at once. You need to see the text coming in as if the computer was typing into you, and that is because of the latency.”

The models take “forever” to generate text, so it’s important to get that first bit of text to the user as fast as possible, he added. Next.js, and Vercel’s AI tools have made that easier than manually coding to support the streaming, he added.

TRENDING STORIES
Loraine Lawson is a veteran technology reporter who has covered technology issues from data integration to security for 25 years. Before joining The New Stack, she served as the editor of the banking technology site Bank Automation News. She has...
Read more from Loraine Lawson
SHARE THIS STORY
TRENDING STORIES
TNS owner Insight Partners is an investor in: OpenAI, Honeycomb.
SHARE THIS STORY
TRENDING STORIES
TNS DAILY NEWSLETTER Receive a free roundup of the most recent TNS articles in your inbox each day.
The New Stack does not sell your information or share it with unaffiliated third parties. By continuing, you agree to our Terms of Use and Privacy Policy.