VOOZH about

URL: https://thenewstack.io/a-nue-ux-web-framework-plus-anthropic-openai-boost-ai-apis/

⇱ A ‘Nue’ UX Web Framework; Plus Anthropic, OpenAI Boost AI APIs - 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
2024-08-17 03:52:41
A ‘Nue’ UX Web Framework; Plus Anthropic, OpenAI Boost AI APIs
AI / Frontend Development / Open Source

A ‘Nue’ UX Web Framework; Plus Anthropic, OpenAI Boost AI APIs

Nue 1.0, a web framework for UX designers, those with React fatigue and non-developers, debuted this week. Also, news on AI API updates.
Aug 17th, 2024 3:52am by Loraine Lawson
👁 Featued image for: A ‘Nue’ UX Web Framework; Plus Anthropic, OpenAI Boost AI APIs

Nue is an open source web framework for UX developers by frontend/UX developer Tero Piirainen. It’s now available in beta and is designed to be a “ridiculously simpler alternative” to Next.js, Gatsby and Astro, writes its creator.

“What used to take a React specialist and an absurd amount of JavaScript can now be done by a UX developer and a small amount of CSS,” Piirainen stated in an announcement Thursday.

It’s designed for UX developers, obviously, but he listed other potential users as beginner web developers, experienced JS developers that are frustrated with the React stack, designers, teachers and parents.

Nue 1.0 includes a global design system, which lets UX developers quickly create different designs by using exactly the same markup between projects, according to the documentation.

It also has an improved CSS stack with a CSS theming system that supports hot-reloading, CSS inlining, error reporting and automatic decency management.

It also includes Lightening CSS enabled by default, library folders that can be included on pages with a new include property and there’s an exclude property that strips unneeded assets from the request to lighten the payload.

The Nue site includes a three-step installation guide and a tutorial.

Antropic’s Claude Introduces Prompt Caching

Anthropic’s AI API now supports prompt caching. This capability allows developers to cache frequently used context between API calls. This is an issue where developers have a large amount of prompt context that they want to refer to repeatedly and long-term over requests.

“With prompt caching, customers can provide Claude with more background knowledge and example outputs — all while reducing costs by up to 90% and latency by up to 85% for long prompts,” the company stated.

The Anthropic documentation explains how prompt caching works. When a request is sent with prompt caching enabled, the system first checks if the prompt prefix is already cached from a recent query. If it’s found, then the system uses the cached version; if it’s not, then the full prompt is processed and the prefix cached for future use.

As it turns out, it also reduces costs.

As for uses, prompt caching makes it possible to “talk” to books or other long documents, which happens to be my personal favorite AI use case. With prompt caching, developers can bring books into the knowledge base by embedding the document into the prompt and letting users ask questions related to it.

But there are other uses as well, including creating conversational agents, coding assistants, large document processing or when there’s a detailed instruction set.

The blog post includes tables that show the latency improvements early customers saw with prompt content. It’s available in public beta for Claude 3.5 Sonnett and Claude 3 Haiku.

OpenAI Adds Structured Outputs in the API

This week, OpenAI added Structure Outputs to its API, which is designed to ensure model-generated outputs will exactly match JSON schemas provided by developers, the company stated. It’s now generally available in the API.

This resolves a problem with the JSON mode introduced last year to improve model reliability. JSON mode generated valid JSON outputs but did not guarantee that the models’ response would conform to a particular schema.

“Generating structured data from unstructured inputs is one of the core use cases for AI in today’s applications,” OpenAI noted, but developers have had to use open source tools, prompting and retry requests to work with LLM limitations in this area. “Structured Outputs solves this problem by constraining OpenAI models to match developer-supplied schemas and by training our models to better understand complicated schemas.”

The new model was able to score a perfect 100 in complex JSON schemas, compared to less than 40% with the GPT that did not have Structured Outputs, the company stated.

This capability is available in two forms: As a function call and as a new option for the response_format parameter. The Python and Node SDKs have been updated with native support for Structured Outputs as well.

Some use cases for this cited by OpenAI are:

  • Dynamically generating user interfaces based on the user’s intent;
  • Separating a final answer from supporting reasoning or additional commentary;
  • Extracting structured data from unstructured data.

The blog post outlines how OpenAI achieved this and explains alternative approaches to the problem. It also lists the limitations of Structured Outputs, including that it allows only a subset of JSON schema. There’s also documentation for implementing Structured Outputs.

Survey Respondent: AI Like ‘Auto Complete’

“It’s like having a really eager, fast intern as an assistant, who’s really good at looking stuff up, but has no wisdom or awareness.”
Anonymous survey respondent

While we’re on the topic of AI, the Pragmatic Engineer published the results of an AI survey on how software engineers are using large language models. The site shared the results in their newsletter and blog. The survey was completed by 211 tech professionals, which is not a lot, but the results are fun to read. It turns out, developers are not that impressed with AI, with respondents comparing it to autocomplete or being paired with a junior programmer.

One respondent even compared it to an intern.

“It’s like having a really eager, fast intern as an assistant, who’s really good at looking stuff up, but has no wisdom or awareness,” the anonymous respondent wrote.

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: Anthropic, OpenAI.
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.