Lars Grammel

Lars Grammel @lgrammel

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

Joined:
Dec 9, 2020

Lars Grammel
articles - 46 total

Vercel AI SDK 3.3

Introducing tracing, multi-modal attachments, JSON streaming to clients, and more. The...

Learn More 16 1Aug 15 '24

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

Streaming UIs with AI-generated on-demand content can unlock new user experiences. Until now, most...

Learn More 14 0Jan 25 '24

Effortlessly Generate Structured Information with Ollama, Zod, and ModelFusion

Have you ever wondered how to turn a simple text prompt into structured, typed information...

Learn More 12 0Jan 18 '24

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

In this blog post, we'll build a Next.js chatbot that runs on your computer. We'll use Llama.cpp to...

Learn More 9 0Jan 13 '24

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

In this blog post, we'll build a Next.js chatbot that runs on your computer. We'll use Ollama to...

Learn More 10 2Dec 2 '23

PDF Chat with Node.js, OpenAI and ModelFusion

Have you ever wondered how a chatbot that can answer questions about a PDF works? In this blog post,...

Learn More 54 6Sep 3 '23

Introducing ModelFusion: Build AI apps with JavaScript and TypeScript

If you're a JavaScript or TypeScript developer, you've likely noticed the skyrocketing interest in...

Learn More 52 8Aug 8 '23

Tutorial: Create an AI agent that reads Wikipedia for you

In this tutorial, you'll learn how to create an agent that answers questions by searching and reading...

Learn More 37 1Apr 26 '23

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

As a JavaScript developer, having efficient tools and frameworks at our disposal is crucial,...

Learn More 8 1Apr 10 '23

Introducing Rubberduck 1.0: AI Chat in Visual Studio Code

Rubberduck adds a chat interface to Visual Studio Code. You can edit code, get explanations, generate...

Learn More 5 0Feb 1 '23

Looking for feedback on opensource VS Code AI extension

I'm developing Rubberduck, an opensource AI chatbot and tool for Visual Studio Code. It can edit...

Learn More 3 0Jan 30 '23

Introducing Rubberduck, the chat assistant that makes coding easier!

Get help with code explanations, error diagnosis, and more, all within your IDE. Here are some...

Learn More 4 0Jan 6 '23

AI-generated explanations and documentation for JavaScript code

As a JavaScript developer, you know how challenging it can be to work with existing codebases. Often,...

Learn More 191 16Dec 8 '22

6 VS Code Extensions for Productive Javascript and TypeScript Editing

Code editing is an essential part of the development workflow. It includes all your actions in the...

Learn More 13 1Nov 1 '22

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

The touch bar on the MacBook has the potential to provide quick access to commonly used commands in...

Learn More 7 1Oct 20 '22

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

export class TennisGame { constructor(p1N, p2N) { this.p2 = 0; this.p1 = 0; this.p1N...

Learn More 4 0Aug 18 '22

What's new in P42? Summer 2022

Since February, the P42 JavaScript Assistant for Visual Studio Code has grown considerably and...

Learn More 7 0Jun 21 '22

JS Refactoring Combo: Introduce Object Destructuring

Destructuring is a way to access array values or object properties. It can be used in variable...

Learn More 13 2Jun 8 '22

85 JavaScript Code Assists for Visual Studio Code

JavaScript programming in an editor such as Visual Studio Code typically involves a lot of manual...

Learn More 20 2May 30 '22

JS Refactoring Combo: Inline Function as Method

Sometimes functions are only used as property values. In such cases, you can convert the functions...

Learn More 6 1May 28 '22

You don't need void 0 in JavaScript

In JavaScript code, especially in older legacy code, you sometimes find the expression void 0. The...

Learn More 12 0May 10 '22

JS Refactoring Combo: Extract Array Constant From String Comparison Chain

When a variable is compared against a string value, the easiest way to start is with a variable ===...

Learn More 8 0May 6 '22

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

The optional chaining operator .? returns the value of an object property when the object is...

Learn More 23 0May 4 '22

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

If-statements can contain duplicated statements with minimal differences. For example, copy-paste...

Learn More 20 9Apr 29 '22

JS Refactoring Combo: Simplify If-Else Variable Initialization

If-statements are often used to initialize variables with different values depending on a condition....

Learn More 10 1Apr 27 '22

What's new in P42? Winter 2022 Summary

There have been many changes to the P42 JavaScript Assistant for Visual Studio Code in January...

Learn More 7 0Feb 1 '22

WTF JavaScript: A Variable with Side Effects

JavaScript has many quirks and difficult-to-understand behaviors. There are hilarious talks such as...

Learn More 10 0Jan 16 '22

Turn Visual Studio Code Into A Top-Notch JavaScript IDE With These 25 Extensions

Visual Studio Code is a great code editor that comes with JavaScript and TypeScript features like...

Learn More 119 14Jan 9 '22

ES2022 Preview: 10 Exciting JavaScript Language Features From 2021

JavaScript evolves quickly. In 2021, several proposals have moved to Stage 4 of the TC39 process and...

Learn More 37 2Dec 30 '21

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

When programming, we often edit text directly to achieve our goals. Such manual editing can be slow...

Learn More 96 7Dec 21 '21