Skip to content

roadtocode4u/yt-toon-experiment

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TOON Experiment

This repository contains source code and resources of the YouTube video: Let's Talk About TOON(Token-Oriented Object Notation)

TOON Experiment

Overview

TOON: Token-Oriented Object Notation

TOON is a compact, human-readable, schema-aware JSON for LLM prompts. Spec, benchmarks, TypeScript SDK.

It saves the token usage for LLMs by reducing the verbosity of traditional JSON while maintaining structure and readability.

Example:

Traditional JSON:

{
  "fruits": [
    { "id": 1, "name": "Apple", "color": "red" },
    { "id": 2, "name": "Banana", "color": "yellow" },
    { "id": 3, "name": "Grapes", "color": "purple" }
  ]
}

TOON Representation:

fruits[3]{id,name,color}:
  1,Apple,red
  2,Banana,yellow
  3,Grapes,purple

Setps to run the code

  1. Clone the repository
  2. Install dependencies
  3. Add your OpenAI API key in the .env file
  4. Run npm run test to see TOON in action

To know more about TOON, please visit the official GitHub repository: https://github.com/toon-format/toon

About

This repository contains source code and resources of the YouTube video Let's Talk About TOON(Token-Oriented Object Notation)

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Contributors