AI Decision System
Replayable, offline-verifiable records for AI-assisted go/no-go decisions: experiment promotions, typed model answers and human-approved actions.
Type-safe, zero-dependency data structure implementations for TypeScript/JavaScript
Translation pending
Developer toolsTypeScript · CSSGitHub @mandy8055OnlineOwner unconfirmed
Have you tried it? One tap is enough. No sign-in needed.
List of type-safe and commonly used Data structures which are not provided natively by Javascript/Typescript.
Translation pending
Taken from the repository README
Loading the full README. The saved excerpt is shown below.
A comprehensive collection of type-safe, zero-dependency data structure implementations for TypeScript/JavaScript.
Visit our comprehensive documentation site for detailed guides, API references, and examples.
• Queues: Queue, Deque, PriorityQueue
• Lists: LinkedList, DoublyLinkedList
• Heaps: BinaryHeap (MinHeap, MaxHeap)
• Trees: Trie, RedBlackTree
• Maps & Caches: SortedMap, BiDirectionalMap, LRUCacheRead the full README ↗A comprehensive collection of type-safe, zero-dependency data structure implementations for TypeScript/JavaScript.
Visit our comprehensive documentation site for detailed guides, API references, and examples.
npm:
npm install @dstoolkit/data-structures
Deno (JSR):
import { Queue, LRUCache } from 'jsr:@dstoolkit/data-structures';
import { Queue, LRUCache } from '@dstoolkit/data-structures';
// FIFO Queue
const queue = new Queue<number>();
queue.enqueue(1);
queue.enqueue(2);
console.log(queue.dequeue()); // 1
// LRU Cache
const cache = new LRUCache<string, number>({ capacity: 100 });
cache.put('key', 42);
console.log(cache.get('key')); // 42
MIT License - feel free to use this in your own projects!