Template Marketplace
Community-built templates for algorithms, system design, interviews, and full-stack starters. Fork for free or buy premium bundles.
Premium bundles
// Consistent Hashing Ring
class HashRing {
private nodes = new Map<number, string>();
add(node: string, replicas = 150) {
for (let i = 0; i < replicas; i++) {
const hash = this.hash(`${node}:${i}`);
this.nodes.set(hash, node);
}
}
}$10Distributed Systems Interview Kit
10-room bundle: consistent hashing, Raft consensus, vector clocks, Paxos, CRDTs, sharding, replication, CAP theorem, and two full mock interviews.
// app/layout.tsx
export default function RootLayout({ children }) {
return (
<AuthProvider>
<StripeProvider>
<AnalyticsProvider>
{children}
</AnalyticsProvider>
</StripeProvider>
</AuthProvider>
);
}$20Full-Stack SaaS Starter
Production-ready SaaS template: Next.js 15, Supabase auth, Stripe billing, admin dashboard, and feature flags. 2,400 lines of opinionated scaffolding.
def two_sum(nums, target):
seen = {}
for i, n in enumerate(nums):
if target - n in seen:
return [seen[target-n], i]
seen[n] = i$10Two Sum
Classic array hashing problem. O(n) time, O(n) space. Great for interview warm-ups.
// STAR Template // Situation: What was the context? // Task: What were you responsible for? // Action: What steps did you take? // Result: What was the outcome?$10
Behavioral Interview Kit
STAR method templates, common behavioral questions, and a structured note-taking workspace for interviewers.
// API Design
POST /shorten { url: string } -> { short: string }
GET /:code -> 301 redirect
// Capacity
// 100M URLs/day, 500B reads/day$10URL Shortener Design
Full system design workspace: API spec, database schema, caching layer, and load balancing notes.
export function Dashboard() {
return (
<Layout>
<Sidebar />
<main>
<StatsGrid />
<DataTable />
</main>
</Layout>
);
}$10React Dashboard Starter
Component structure for a SaaS dashboard — sidebar, topbar, stats cards, and data table.
class LRUCache:
def __init__(self, cap):
self.cap = cap
self.cache = {}
self.head = Node()
self.tail = Node()$10LRU Cache
Doubly-linked list + hash map combo. O(1) get/put. Core data structure interview question.
type Node struct {
Val int
Left *Node
Right *Node
}
func Insert(root *Node, val int) *Node {$10Binary Search Tree
Full BST with insert, delete, search, in-order traversal. Covers recursive and iterative approaches.
class TokenBucket {
constructor(
private capacity: number,
private refillRate: number
) {}
consume(tokens = 1): boolean {$10Rate Limiter
Token bucket and sliding window algorithms. Redis-backed implementation for distributed systems.
FROM golang:1.22-alpine AS builder WORKDIR /app COPY go.mod go.sum ./ RUN go mod download COPY . . RUN CGO_ENABLED=0 go build -o /bin/app$10
Dockerfile Best Practices
Multi-stage build, layer caching, non-root user, health checks, and security scanning patterns.
Featured
// Consistent Hashing Ring
class HashRing {
private nodes = new Map<number, string>();
add(node: string, replicas = 150) {
for (let i = 0; i < replicas; i++) {
const hash = this.hash(`${node}:${i}`);
this.nodes.set(hash, node);
}
}
}$10Distributed Systems Interview Kit
10-room bundle: consistent hashing, Raft consensus, vector clocks, Paxos, CRDTs, sharding, replication, CAP theorem, and two full mock interviews.
// app/layout.tsx
export default function RootLayout({ children }) {
return (
<AuthProvider>
<StripeProvider>
<AnalyticsProvider>
{children}
</AnalyticsProvider>
</StripeProvider>
</AuthProvider>
);
}$20Full-Stack SaaS Starter
Production-ready SaaS template: Next.js 15, Supabase auth, Stripe billing, admin dashboard, and feature flags. 2,400 lines of opinionated scaffolding.
def two_sum(nums, target):
seen = {}
for i, n in enumerate(nums):
if target - n in seen:
return [seen[target-n], i]
seen[n] = i$10Two Sum
Classic array hashing problem. O(n) time, O(n) space. Great for interview warm-ups.
// STAR Template // Situation: What was the context? // Task: What were you responsible for? // Action: What steps did you take? // Result: What was the outcome?$10
Behavioral Interview Kit
STAR method templates, common behavioral questions, and a structured note-taking workspace for interviewers.
// API Design
POST /shorten { url: string } -> { short: string }
GET /:code -> 301 redirect
// Capacity
// 100M URLs/day, 500B reads/day$10URL Shortener Design
Full system design workspace: API spec, database schema, caching layer, and load balancing notes.
class TokenBucket {
constructor(
private capacity: number,
private refillRate: number
) {}
consume(tokens = 1): boolean {$10Rate Limiter
Token bucket and sliding window algorithms. Redis-backed implementation for distributed systems.
Top creators
12 templates · 8,400 ★
8 templates · 5,200 ★
6 templates · 3,100 ★
5 templates · 2,800 ★
4 templates · 1,400 ★