DEV Community

Lars Grammel profile picture

Lars Grammel

AI Engineering consulting & contract work. Building the ModelFusion AI library for TypeScript.

Next.js and GPT-4: A Guide to Streaming Generated Content as UI Components

Next.js and GPT-4: A Guide to Streaming Generated Content as UI Components

14
Comments
12 min read

Want to connect with Lars Grammel?

Create an account to connect with Lars Grammel. You can also sign in below to proceed if you already have an account.

Already have an account? Sign in
Effortlessly Generate Structured Information with Ollama, Zod, and ModelFusion

Effortlessly Generate Structured Information with Ollama, Zod, and ModelFusion

12
Comments
7 min read
Create Your Own Local Chatbot with Next.js, Llama.cpp, and ModelFusion

Create Your Own Local Chatbot with Next.js, Llama.cpp, and ModelFusion

8
Comments
7 min read
Create Your Own Local Chatbot with Next.js, Ollama, and ModelFusion

Create Your Own Local Chatbot with Next.js, Ollama, and ModelFusion

12
Comments 1
7 min read
Tutorial: Create an AI agent that reads Wikipedia for you

Tutorial: Create an AI agent that reads Wikipedia for you

16
Comments 1
10 min read
GPTAgent.js: Build your own AI Agents with TypeScript and JavaScript!

GPTAgent.js: Build your own AI Agents with TypeScript and JavaScript!

1
Comments
2 min read
Introducing Rubberduck 1.0: AI Chat in Visual Studio Code

Introducing Rubberduck 1.0: AI Chat in Visual Studio Code

5
Comments
2 min read
Looking for feedback on opensource VS Code AI extension

Looking for feedback on opensource VS Code AI extension

3
Comments
1 min read
Introducing Rubberduck, the chat assistant that makes coding easier!

Introducing Rubberduck, the chat assistant that makes coding easier!

4
Comments
1 min read
6 VS Code Extensions for Productive Javascript and TypeScript Editing

6 VS Code Extensions for Productive Javascript and TypeScript Editing

13
Comments 1
5 min read
How to Configure the Touch Bar in Visual Studio Code in Under 5 Minutes

How to Configure the Touch Bar in Visual Studio Code in Under 5 Minutes

7
Comments 1
2 min read
How would you refactor this code? (tennis-3-modern)

How would you refactor this code? (tennis-3-modern)

3
Comments
1 min read
What's new in P42? Summer 2022

What's new in P42? Summer 2022

7
Comments
5 min read
JS Refactoring Combo: Introduce Object Destructuring

JS Refactoring Combo: Introduce Object Destructuring

13
Comments 2
1 min read
85 JavaScript Code Assists for Visual Studio Code

85 JavaScript Code Assists for Visual Studio Code

19
Comments 2
17 min read
JS Refactoring Combo: Inline Function as Method

JS Refactoring Combo: Inline Function as Method

6
Comments 1
1 min read
You don't need void 0 in JavaScript

You don't need void 0 in JavaScript

11
Comments
3 min read
JS Refactoring Combo: Extract Array Constant From String Comparison Chain

JS Refactoring Combo: Extract Array Constant From String Comparison Chain

8
Comments
1 min read
JS Refactoring Gotchas: 5 Ways Converting to Optional Chaining Can Break Your Code

JS Refactoring Gotchas: 5 Ways Converting to Optional Chaining Can Break Your Code

22
Comments
3 min read
JS Refactoring Combo: Simplify Duplicated Function Call Inside If-Else Statement

JS Refactoring Combo: Simplify Duplicated Function Call Inside If-Else Statement

20
Comments 9
1 min read
JS Refactoring Combo: Simplify If-Else Variable Initialization

JS Refactoring Combo: Simplify If-Else Variable Initialization

10
Comments 1
1 min read
What's new in P42? Winter 2022 Summary

What's new in P42? Winter 2022 Summary

7
Comments
4 min read
WTF JavaScript: A Variable with Side Effects

WTF JavaScript: A Variable with Side Effects

10
Comments
2 min read
ES2022 Preview: 10 Exciting JavaScript Language Features From 2021

ES2022 Preview: 10 Exciting JavaScript Language Features From 2021

37
Comments 2
7 min read
Level Up Your JavaScript With These 60 Quick Fixes for VS Code

Level Up Your JavaScript With These 60 Quick Fixes for VS Code

96
Comments 7
7 min read
What are your favorite VS Code extensions for working with JS & TS?

What are your favorite VS Code extensions for working with JS & TS?

112
Comments 19
1 min read
Simplifying a JavaScript Function With 12 Automated Refactorings

Simplifying a JavaScript Function With 12 Automated Refactorings

25
Comments 1
4 min read
Short-Circuiting in JavaScript

Short-Circuiting in JavaScript

27
Comments
3 min read
P42 Code Review: Inline Comments and Hints

P42 Code Review: Inline Comments and Hints

5
Comments
2 min read
Can You Refactor JavaScript Safely Without Test Coverage?

Can You Refactor JavaScript Safely Without Test Coverage?

27
Comments 7
3 min read
How would you refactor this JS function?

How would you refactor this JS function?

81
Comments 94
1 min read
JS Refactoring Combo: Replace Nested If-Else with Guards

JS Refactoring Combo: Replace Nested If-Else with Guards

75
Comments 18
2 min read
Supercharge VS Code with 32 JavaScript Refactorings

Supercharge VS Code with 32 JavaScript Refactorings

76
Comments
6 min read
P42 for Visual Studio Code

P42 for Visual Studio Code

12
Comments 7
1 min read
Optional Chaining (?.) Refactoring

Optional Chaining (?.) Refactoring

10
Comments 1
2 min read
Nullish Coalescing Operator Refactoring

Nullish Coalescing Operator Refactoring

6
Comments
1 min read
For...of Loop Refactoring

For...of Loop Refactoring

7
Comments
1 min read
GitHub Pull Request Review with P42 Checks

GitHub Pull Request Review with P42 Checks

2
Comments
1 min read
Check Your GitHub Commits with P42

Check Your GitHub Commits with P42

Comments
1 min read
3 JavaScript Features From 2020 That Will Make Your Life Easier

3 JavaScript Features From 2020 That Will Make Your Life Easier

54
Comments 3
2 min read
loading...