Skip to content

Instantly share code, notes, and snippets.

Artifact Market — Product Spec

A marketplace for hosting and viewing production-ready specs (PRDs, technical designs, research, memos). The new artifact type in the dev flow: comprehensive enough for agents, scannable for humans.


Core Concept

Problem: PRDs are now 1,000+ lines (for agent consumption), but humans need to grasp the product quickly. Current options (markdown, Notion, PDF) don't bridge this gap.

@C-E-Rios
C-E-Rios / manageReactState.js
Last active October 12, 2020 10:18
Managing state with hooks and context
function countReducer(state, action) {
switch (action.type) {
case "INCREMENT": {
return { count: state.count + 1 };
}
default: {
throw new Error(`Unsupported action type: ${action.type}`);
}
}
}