December 2025 Summaries
4 posts from Upstash
Filter
Month:
Year:
Post Summaries
Back to Blog
Upstash Redis SDK now supports Redis Functions, allowing users to write and store custom Lua scripts directly in Redis, enabling more efficient execution by loading a function once and calling it by name rather than using EVAL each time. Redis Functions are managed server-side and persist until explicitly removed, providing a more streamlined way to handle reusable logic. The SDK introduces a new namespace, redis.functions, with methods such as load(), call(), callRo(), list(), stats(), delete(), and flush(), which facilitate function management and interaction. For functions that only read data, adding a no-writes flag improves performance by enabling execution in read-only contexts and using callRo(), which is optimized for such operations. This new approach offers a cleaner, more organized method for implementing and reusing Lua script logic within Redis.
Dec 26, 2025
442 words in the original blog post.
TanStack's new AI library facilitates the integration of AI features into applications by providing a clean, type-safe API compatible with various AI providers like OpenAI and Anthropic. The blog post explores how TanStack AI can be paired with Upstash services to enhance app functionality, such as using Upstash Redis for caching tool results and persisting chat histories, Upstash Ratelimit for protecting API endpoints, and Upstash Search for building a smart knowledge base. While TanStack AI offers full control over caching and persistence, the AI SDK provides a more straightforward approach with built-in features like caching wrappers and onFinish hooks. The post emphasizes the importance of caching, rate limiting, search accuracy, and data persistence in making AI applications production-ready, advocating for Upstash's serverless solutions as efficient tools for developers. Despite some features being more refined in the AI SDK, TanStack AI shows promise with its type-safe tools and TypeScript inference, making it a valuable option for developers.
Dec 17, 2025
2,460 words in the original blog post.
A detailed guide explains how to create real-time, Figma-style live cursors for a web application using Next.js, Upstash Realtime, and TypeScript. The process involves setting up a Realtime instance to batch cursor positions, which reduces network overhead and memory usage. A custom `useCursors` hook handles the batching of outgoing cursor positions and animates other users' cursors using `requestAnimationFrame` for smooth 60-FPS animations. Cursor components are developed to display other users' cursors and replace the current user's default cursor with a custom one. Utility functions are used for generating random usernames and consistent colors. The implementation includes setting up API routes to manage real-time events and integrating all components on the main page. The batching strategy is highlighted as an efficient and cost-effective method, with a suggestion to test the feature by opening the app in two browser windows to observe the live cursor interactions.
Dec 16, 2025
2,082 words in the original blog post.
Context7 provides developers with up-to-date documentation context for large language models (LLMs) and AI coding assistants by organizing context by libraries and ensuring the selection of high-quality sources through mechanisms like source reputation scores and benchmark scores. Source reputation is determined by evaluating the organization behind a library based on factors such as age, number of repositories, stars, followers, and contributors, while benchmark scores assess how well a library answers common questions about a product or technology. To prevent code injection attacks, Context7 employs an injection detection model to scan and block suspicious code snippets, maintaining a secure vector database. User feedback is actively sought to report missing or fraudulent content, leading to the frequent review and update of repositories, and a new initiative is underway to allow library owners to manage parsing configurations to ensure the continued relevance and quality of context data. These systems collectively aim to deliver reliable context to LLMs, with ongoing improvements and user engagement encouraged through platforms like GitHub.
Dec 08, 2025
764 words in the original blog post.