mirror of
https://github.com/bitbaum/orangecat.git
synced 2026-12-04 04:37:14 +01:00
* feat(deck): presentations as data — @bitbaum/deckkit, and a deck in every investor room George: "generate a beautiful presentation, remember the tools and package them — people should generate whatever presentation they want and change it." Built from first principles and from a study of evig's hand-written decks (public/presentations/*): good design language, but only a developer could edit them, the engine was copied into every deck and drifted, the PDF was a raster, numbers were typed, nothing linked to one slide. packages/deckkit (@bitbaum/deckkit 0.1.0, workspace package): - A deck is data: 9 layouts (cover, statement, points, numbers, chart, compare, columns, image, closing), stable slide ids, notes, sources. - normalizeDeck: anything stored → a deck that renders; https-only links; enforced LIMITS keep slides short. - generateDeck: drafts the investor arc from a source — nothing invented; bindDeck fills `bind: facts | pace | roadmap` slides from live data. - /react: Slide (one frame, identical at any size via container units) and DeckPresenter (keys, swipe, #3 deep links, notes on S, print to PDF). - styles.css: evig's design language as --dk-* tokens, dark + light. - README: the writing rules (claim titles, one accent, no fabrication). OrangeCat: - project_rooms.deck (migration, expand-only). - /projects/<id>/room/deck: generate a first draft, edit every slide (layout, words, figures, order), theme + accent, present with notes. - /room/<token>/deck: the reader's presenter, live-bound; counts as a deck open by the one rule (countsAsOpen). "Open the deck" goes there. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix(deckkit): linear text scans, not backtracking patterns, over slide text CodeQL js/polynomial-redos flagged the sentence splitter and the "Lead: rest" parser: user text through /[^.!?]+[.!?]+(?=\s|$)/ runs in polynomial time on a crafted string. Replaced with plain linear scans (sentences, squash, an indexOf for the lead, a loop for trailing punctuation); a test feeds 50k-character hostile strings and requires under 500ms. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
45 lines
1.1 KiB
JSON
45 lines
1.1 KiB
JSON
{
|
|
"name": "@bitbaum/deckkit",
|
|
"version": "0.1.0",
|
|
"description": "Presentations as data: a deck model, a generator that drafts one from what a project already says, live-bound numbers, and one renderer — 16:9 at any size, keyboard/swipe, deep links, print to PDF.",
|
|
"license": "MIT",
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "git+https://github.com/bitbaum/orangecat.git",
|
|
"directory": "packages/deckkit"
|
|
},
|
|
"type": "module",
|
|
"main": "./src/index.ts",
|
|
"types": "./src/index.ts",
|
|
"exports": {
|
|
".": {
|
|
"types": "./src/index.ts",
|
|
"import": "./src/index.ts",
|
|
"default": "./src/index.ts"
|
|
},
|
|
"./react": {
|
|
"types": "./src/react/index.ts",
|
|
"import": "./src/react/index.ts",
|
|
"default": "./src/react/index.ts"
|
|
},
|
|
"./styles.css": "./styles.css"
|
|
},
|
|
"files": [
|
|
"src",
|
|
"styles.css",
|
|
"README.md"
|
|
],
|
|
"sideEffects": [
|
|
"*.css"
|
|
],
|
|
"peerDependencies": {
|
|
"react": ">=18"
|
|
},
|
|
"scripts": {
|
|
"type-check": "tsc --noEmit -p tsconfig.json"
|
|
},
|
|
"engines": {
|
|
"node": ">=20"
|
|
}
|
|
}
|