---
title: "The Dino 🦕, the Llama 🦙, and the Whale 🐋"
description: "Deno's built-in Jupyter kernel, Ollama and LangChain.js combine into a low-friction environment for experimenting with a locally hosted DeepSeek R1 8B model in TypeScript."
url: "https://swe.quest/articles/the-dino-the-llama-and-the-whale-cd4c526a1cc60614"
canonical: "https://deno.com/blog/the-dino-llama-and-whale"
source: "Deno"
published: "2025-02-27"
difficulty: "medium"
kind: "How-to"
reading_minutes: 5
tags: ["llms","typescript","javascript","developer-tools"]
---

# The Dino 🦕, the Llama 🦙, and the Whale 🐋

A post on [Deno](https://swe.quest/sources/deno.md), published 2025-02-27, 5 min read, How-to. Original: [https://deno.com/blog/the-dino-llama-and-whale](https://deno.com/blog/the-dino-llama-and-whale)

## Summary

Deno's built-in Jupyter kernel, Ollama and LangChain.js combine into a low-friction environment for experimenting with a locally hosted DeepSeek R1 8B model in TypeScript. The walkthrough covers pulling the model with Ollama, creating a Deno-kernel notebook in VSCode, and building a LangChain RunnableSequence that pairs a prompt template with a zod-backed StructuredOutputParser so responses come back as validated JSON. It also renders the chain as a Mermaid diagram inside the notebook. Most of the setup effort goes into running the model locally, and the same chain could point at a hosted API like OpenAI or Anthropic instead.

Written by swe.quest, not by the author.

**Difficulty:** Medium: assumes a working developer; shows how it is built or done

## Topics

- [LLMs](https://swe.quest/tags/llms.md) (AI & ML)
- [TypeScript](https://swe.quest/tags/typescript.md) (Languages)
- [JavaScript](https://swe.quest/tags/javascript.md) (Languages)
- [Developer tools](https://swe.quest/tags/developer-tools.md) (Engineering practices)

## Prerequisites

- TypeScript basics ([easy posts on TypeScript](https://swe.quest/tags/typescript.md?difficulty=easy))
- JSON Schema

## Keywords

Deno, Ollama, DeepSeek R1, LangChain.js, Jupyter, zod

## Related posts

- [Build a custom RAG AI agent in TypeScript and Jupyter](https://swe.quest/articles/build-a-custom-rag-ai-agent-in-typescript-and-jupyter-fc00c37173b8b56a.md): Deno · 2025-03-18 · Medium · 11 min read · RAG & retrieval, AI agents, TypeScript, LLMs
  A local agentic RAG pipeline built in TypeScript inside a Deno Jupyter notebook, using LangChain and LangGraph with Ollama models.
- [Getting Started with the OpenAI SDK for Deno](https://swe.quest/articles/getting-started-with-the-openai-sdk-for-deno-c6fcd6c76fd10286.md): Deno · 2023-12-15 · Medium · 7 min read · TypeScript, LLMs, JavaScript
  OpenAI's official Deno SDK on deno.land/x is a TypeScript-first module loaded over HTTPS, which makes loading more efficient on edge platforms like Deno Deploy, Netlify and Supabase and gives VS Code type support without extra configuration.
- [Local LLM Messenger: Chat with GenAI on Your iPhone](https://swe.quest/articles/local-llm-messenger-chat-with-genai-on-your-iphone-7541b86ddf4d704e.md): Docker · 2024-07-23 · Medium · 13 min read · LLMs, Python, Containers
  Local LLM Messenger (LoLLMM), an honorable-mention project from Docker's AI/ML Hackathon by Justin Garrison, lets you send iMessages to LLMs running on your own machine.
- [How to Make an AI Chatbot from Scratch using Docker Model Runner](https://swe.quest/articles/how-to-make-an-ai-chatbot-from-scratch-using-docker-model-runner-48eab58e2814218f.md): Docker · 2025-06-03 · Medium · 17 min read · Inference & serving, Observability, LLMs, Go, Containers
  A local GenAI chatbot built on Docker Model Runner, which runs llama.cpp models natively on the host and exposes an OpenAI-compatible API to containers.
- [Run Gemma 3 with Docker Model Runner: Fully Local GenAI Developer Experience](https://swe.quest/articles/run-gemma-3-with-docker-model-runner-fully-local-genai-developer-experience-c005339b3915484f.md): Docker · 2025-04-09 · Medium · 7 min read · LLMs, Inference & serving, Containers, JavaScript
  Docker Model Runner (in Docker Desktop for macOS 4.40.0+) exposes an OpenAI-compatible API on localhost, so Gemma 3 can be pulled with \`docker model pull ai/gemma3\` and called through the standard OpenAI SDK by pointing baseURL at http://localhost:12434/engines/v1.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
