Equity Boxwood
v1.0A cap table app for a Series A startup: ownership fully diluted, stakeholders, option grants and vesting, and a round modeler that reshapes the ownership bar as you drag, in ivory and bottle green.
ที่อยู่หน้า: /
มีในตัว
สิ่งที่คุณได้รับ- สว่างและมืดใช้สีของธีมคุณ
- เดสก์ท็อป แท็บเล็ต และโทรศัพท์หน้าจอที่สร้างมารองรับ
- แพ็กเกจ…
- ขนาดโค้ด…
- ประหยัดแบตเตอรี่30 fps หยุดพักเมื่อนิ่ง
- หยุดเมื่อซ่อนอยู่นอกหน้าจอหรืออยู่แท็บอื่น
- ลดการเคลื่อนไหวสงบสำหรับผู้ที่ตั้งค่าไว้
ตรวจสอบทุกครั้งที่มีการเปลี่ยนแปลง
ตรวจสอบความปลอดภัย 3 ธ.ค.- ตรวจสอบไทป์TypeScript แบบ strict
- Lint และฟอร์แมตESLint · Prettier
- ทดสอบและบิลด์ภาพหน้าจอโหมดสว่างและมืด
- ตรวจสอบความปลอดภัยไม่มีคำเตือนระดับสูงหรือวิกฤต
- อายุแพ็กเกจทุกเวอร์ชันเผยแพร่มาแล้วอย่างน้อย 7 วัน
- CPU ขณะว่างต่ำกว่าครึ่งคอร์ขณะพัก ≤ 30 fps
โค้ด
equity-boxwoodReact
- equity-boxwood.tsxThe page: the sections in order.
- content.tsEvery word and number: brand, nav links, each section's copy and lists.
- theme.tsThe colors as CSS variables, and the shared class strings.
- README.mdHow to install it, and where to change the text, colors and form.
- pagesOne file per page: the sections it shows, in order.
- cap-table.tsxThe cap table: by share class (shares, price, holders, ownership and what each round raised, then options and the pool, adding up to fully diluted) or by holder (each person's or fund's shares in every class, options and ownership), sortable and searchable.
- documents.tsxDocuments: the company's equity paperwork by folder and status, a page at a time; send a draft for signature, mark one signed, rename or delete it. Beside it, the signature ring and the folders as quick filters.
- grants.tsxGrants: every option grant by state (waiting on a signature, vesting, fully vested, cancelled), searchable and sortable, with its shares, strike and how much has vested; a row opens the grant's sheet.
- modeling.tsxRound modeling: drag the pre-money, the raise and the pool the new investors ask for, and the ownership bar reshapes as you drag, every holder's slice easing to its diluted size. The table shows each group before and after; save the terms as a scenario, or apply the round to the cap table.
- overview.tsxOverview: the KPI strip, who owns the company (the ownership bar), the cliffs coming up, options vested month by month and the live activity feed.
- settings.tsxSettings: the company's details, the equity plan's defaults for new grants, the 409A valuations, the team, notifications and appearance, one tab at a time (?tab=team).
- sign-in.tsxThe sign-in page (#/sign-in): the form on its card and, on wide screens, a quiet preview of the cap table it opens (the ownership bar and three numbers), without the sidebar and top bar.
- stakeholders.tsxStakeholders: everyone on the cap table by type (founders, investors, employees, advisors), searchable and sortable, with what each holds. Pick rows to change their type or remove them together; a row opens the person's sheet.
- vesting.tsxVesting: everyone with options, a page of them at a time, and the picked person's timeline (?person=SH-031): cumulative vested across their grants, the cliffs and today, what vests in the coming months and each grant.
- sectionsOne file per page section.
- account-menu.tsxThe account menu under the avatar in the top bar: who is signed in, Settings and Sign out; the arrow keys move through it, Escape, Tab or a click outside closes it.
- appearance.tsxSettings → Appearance: the theme (System, Dark or Light), each choice shown as a small preview, and the language (System or one of locales/list.ts).
- bottom-tabs.tsxThe phone's tab bar: the four pages used most, and More for the rest (the sidebar in a sheet). It sticks to the bottom of the screen under the page.
- doc-form.tsxThe upload form (?new=doc: a name, its folder and who it is for; it lands as a draft) and the rename dialog (?rename=DOC-012), with their own errors, never the browser's.
- feed.tsxThe activity feed: who signed, exercised or was granted what, newest first, each row linking to what it is about. A row that arrives live slides in with a short wash.
- grant-form.tsxThe grant form (?new=grant, or ?edit=ES-041 while it waits on a signature) and the exercise dialog (?exercise=ES-041): checked on Save with their own errors under each field, never the browser's. A new grant starts at the plan's defaults and today's 409A price.
- grant-sheet.tsxA grant's sheet (?grant=ES-041): its state, shares, what has vested and what can be exercised, then tabs for its terms, its vesting schedule and its exercises; mark it signed, exercise, cancel, edit or delete it.
- holder-form.tsxThe stakeholder form (?new=holder, or ?edit=SH-012 to change one) and the issue-shares form (?new=issue&to=SH-012): checked on Save with their own errors under each field, never the browser's.
- holder-sheet.tsxA stakeholder's sheet (?holder=SH-012): what they own and their ownership, then tabs for their share holdings (issue more, remove one), their option grants and their contact details; edit or remove them.
- kpi-strip.tsxThe KPI strip: four numbers in one bordered box split by hairlines, each with its line under it and a smooth sparkline; a changed number rolls to its new value.
- ownership-bar.tsxThe ownership bar: who owns the company, fully diluted, as one stacked bar (founders, each preferred class, the team, the free pool), with its legend of shares and percents. When the numbers change (a round dragged in the modeler, a grant signed) every segment eases to its new width, so dilution reads as a move.
- scenarios.tsxThe saved round scenarios under the modeler: each one's terms and the price they give today; load one into the sliders (?scenario=SC-1) or delete it. The top bar's Save scenario (?new=scenario) saves the sliders as one.
- settings-lists.tsxSettings lists: the 409A valuations (the latest sets new grants' strike; add or delete one) and the team who can see the cap table (change a role, remove someone, invite with ?new=member).
- sidebar.tsxThe sidebar: the workspace, search with the ⌘K shortcut, the pages in two groups with their counts and a pill that glides to the current one, Settings, and the live strap with its pause.
- sign-in-form.tsxThe sign-in form: email and password with their errors under them, show or hide the password, keep me signed in, and the demo account to fill in; a wrong pair says so above the fields.
- top-bar.tsxThe top bar: the menu button on mid screens, where you are, the live dot, search on narrow screens, the theme switch, the page's one main action and the account menu. It frosts only once the page scrolls under it.
- vest-chart.tsxA vesting timeline: cumulative shares vested month by month as a line with a soft area, the part already vested in the accent, a dashed mark at each cliff and today's mark with its dot.
- partsWhat several sections share.
- buildWhat several sections share.
- cardsWhat several sections share.
- text.tsThe text card style: cards fade in while titles, labels and numbers (data-build="text") slide up from behind a mask; numbers show their final text.
- rowsWhat several sections share.
- odo.tsxThe odo row motion: each row on screen rises 6px from faint while every number rolls digit by digit to its value.
- core.tsxThe page's build-in: on first load and on every page switch the cards arrive in the app's card style and their contents build: bars grow, lines draw, rings fill, the list rows on screen ripple in in the app's row motion, numbers count. The two picks are wired in ./index.ts.
- index.tsThe app's two build-in picks, wired here and nowhere else: its card style (cards/) and its row motion (rows/). npm run new-app copies only the two it is given (--cards, --rows).
- appearance.tsHow the app looks right now: dark or light, Glass or Solid, from Settings → Appearance, the page around it and the Style setting.
- avatar.tsxA person's initials in a round badge, tinted with the primary.
- backdrop.tsxThe Glass style's backdrop: what shows through the see-through panels, faded out in Solid; with followBackground it paints your background instead.
- bar-chart.tsxA bar chart: bars grow in, and the picked bar (in the primary), its guide line and tooltip glide to the bar you point at or pick with the arrow keys; a new range morphs the bars instead of drawing them again.
- command-palette.tsxThe command palette (⌘K or Ctrl K): type to find a page or an action, then Enter.
- dialog.tsxA centered modal dialog (a form, a confirm): rises in, plays its way out, Escape or a tap outside closes it, and the focus goes back where it was.
- equity.tsxThe small pieces every equity page shares: a grant's state glyph with its word, a holder's type chip, a person cell, the ownership colours and which rows just arrived.
- field.tsxA labeled form field (a text input or a select) with its error line under it, tied together for screen readers.
- flip.tsFLIP for a list that re-sorts or filters: after each change every row that stayed glides from where it was to where it is now. Rows carry data-flip="<id>"; positions are measured inside the list, so a page scroll never reads as a move, and measured again when the list resizes, so a new width never reads as one either.
- format.tsHow numbers and dates are written: by Intl, the current language's way ("1,240", "1.240"; "Nov 19", "19 nov."), money in US dollars.
- icons.tsxThe logo and the line icons, drawn on a 24-unit grid with round ends.
- language.tsThe app's language: the words every page reads (useWords), how dates and numbers are written (parts/format.ts) and the reading direction. Picked in Settings → Appearance (or System: the page's own language) and kept in this browser; English is built in, any other language loads only when it shows (locales/list.ts).
- live-clock.tsxOne shared clock for everything live: it ticks only while something on screen listens, the tab is visible and live isn't paused, and the bare button that pauses it. What a tick does (move the demo's time, bring in an event, reload) is the app's, passed to liveClock.
- live.tsThe app's one live clock: every 9 seconds a grant is signed, an option exercised or a new grant drafted (data/live.ts) and every page reloads in place; every 20 the due dates redraw. It rests while nothing live is on screen, the app is off screen, the tab is hidden or live is paused.
- moments.tsThe animations the sidebar, the sign-in card, menus, dialogs, the phone sheet and toasts play, timed by their moments in theme.ts.
- motion.tsMotion helpers: the reduced-motion check, once and kept live.
- overlays.tsxEverything that opens over the page from the address: a stakeholder or grant in the side sheet, and the forms (new or edit stakeholder, issue shares, new or edit grant, exercise, upload or rename a document). Any page can open one by adding its query (?grant=ES-041).
- read.tsOne read of the fake API by its key, through useApi: useRead("overview"), useRead<"grant">(`grant:${id}`). Each key keeps one load function, so a page that mounts again finds its answer.
- router.tsThe page switcher: reads the app's page from the address hash (#/settings, #/?status=open).
- scroll-to-view.tsScrolls an element into view moving only its own scroll container, never the page around it.
- select-box.tsxA native select dressed to match the app: no browser arrow, a drawn chevron instead.
- session.tsWhether someone is signed in: a first visit is signed in as the demo account; Sign out holds until the next sign-in, and a sign-in without Keep me signed in lasts only this tab.
- sheet.tsxThe phone sheet: a modal panel that springs in from the left with the sidebar; Escape, a tap outside or its close button slides it away.
- side-sheet.tsxThe detail sheet: a modal panel that slides in from the end edge over the page (a stakeholder, a grant), with tabs whose underline glides to the one picked. Escape, a tap outside or its close button slides it away; the address keeps what it shows (?grant=ES-041&dtab=schedule).
- states.tsxThe data states every page shares: a calm skeleton while loading, an error with Try again, and an empty note with a way out.
- store.tsThe app-wide state several parts share: the theme mode and style (kept in the browser) and the toasts.
- table.tsxSortable table heads: each is a link that sorts by its column (?sort=total&dir=asc), so a sort survives Back and a reload; the arrow shows which way. And the pager under a paged list.
- ticker.tsxA number that counts up while its page builds in, and rolls to its new value whenever it changes.
- toasts.tsxThe toasts: short notes that confirm what just happened, at the bottom end.
- use-api.tsLoads data through the fake API with loading, error and retry, remembering each answer so a page you come back to shows at once.
- use-dialog.tsOpens and closes a native <dialog> as a modal; on close it plays its way out first (data-closing), so dialogs, sheets and the palette never vanish in one frame.
- dataThe pretend data and the fake API: swap it for your backend.
- account.tsThe demo account: who is signed in (the account menu shows them) and the email and password the sign-in page takes.
- api.tsThe fake API: every page loads and saves through these functions, so wiring a real backend happens here only.
- db.tsThe pretend database: the seeded cap table held in memory, and every change the app can make to it.
- live.tsWhat happens live in the demo: a grant signed, options exercised or a promotion grant drafted, in turn.
- now.tsThe demo's "now": today at 10:40 plus the real time since the app loaded, so today is busy at any hour; every seeded date is set from it. Wire your backend and use the real time.
- round.tsThe round math the modeler and Apply round share.
- seed-equity.tsThe pretend equity of Fernhill Robotics: share classes, holdings, about seventy-five option grants and the rest.
- seed-people.tsThe pretend stakeholders of Fernhill Robotics, a Series A startup.
- types.tsThe shapes of the pretend cap table.
- vesting.tsVesting math for an option grant: nothing before the cliff, then monthly slices until it is all vested.
- views.tsWhat each page shows, worked out from the pretend database.
- localesEvery word the app shows, one JSON file a language; list.ts names them.
- en.jsonOne language's words, with the keys of en.json.
- es.jsonOne language's words, with the keys of en.json.
- list.tsThe languages the app offers, in the picker's order: one JSON file each, en.json the source. To remove one, delete its file and its line; to add one, copy es.json, translate it and add a line. English is built in; the rest load only when picked. TypeScript checks each file has en.json's keys, scripts/check/check-locales.mjs the rest (no extra keys, plural forms, {slots}).
equity-boxwood.tsx
The page: the sections in order.
กำลังโหลด…
- เหมาะสำหรับ
- Founders and finance leads who keep their own cap table, option pool and 409A strike prices.
- ทำงานอย่างไร
- Drag the pre-money and the raise and the ownership bar dilutes smoothly; grant signatures and exercises arrive live.
- วิธีใช้
- Edit words in locales/ and colors in theme.ts, and swap the bodies in data/api.ts for calls to your backend.