Nº 002 · Sole engineer and designer

alias

Two partners run a group of print-on-demand shops on Etsy and split the profit 50/50. alias is the private, login-only command center I built to work out true profit and each partner's payout without ever calling the marketplace's API. It reads the shops' own order emails, the print provider's costs and the fee statements, and every number on screen can explain itself.

Role
Engineer and designer
Users
Two partners, login only
Data in
Emails, print API, CSVs
Tests
187 app · 124 database
Money
Integer cents
Next.js 16React 19TypeScriptzod 4Supabase PostgresRow-level securitypgTAPPlaywrightVercel cronHand-written CSS
alias
14:32LocalPA
Company · All time

Company

SalesCurrentProduction costsCurrentOctoberSettlingDaily sync06:00
MonthQuarterYearAll timeDemo data
Revenueⓘ
$412,860.25
All time · 5 shops
Operating profitⓘ
$148,204.60
▲ 9.5% October vs September
Profit marginⓘ
35.9%
Based on: revenue after tax
Each partner took homeⓘ
$48,200.00
of $70,650.00 earned · 1/2 each
01Where the money went

All time · cash · both partners together

2 scales
Shop profit, settled months$141,300.00
  • Taken home$96,400.0068.2%
  • Reinvested in venture two$31,500.0022.3%
  • Still in the marketplace$13,400.009.5%
Reinvested in venture two, enlarged
Venture two money in: $31,500.00 from shop payouts, $4,000.00 personal$35,500.00
  • Launch spending$18,250.0051.4%
  • Running expenses$6,120.0017.2%
  • Supplier advances$5,400.0015.2%
  • Not yet spent$5,730.0016.1%
02Shops

Operating · 5 stores · all time

Open Shops →
StoreRevenueStore profitMargin
Paper Finch$141,220.10$54,310.2038.5%
Quiet Harbor$103,480.55$37,902.1536.6%
Moss & Ink$79,905.30$28,140.7535.2%
Lantern Lane$53,144.20$18,204.3034.3%
Tin Robin$35,110.10$9,647.2027.5%
03By month

Newest first · operating profit · shop months in US Pacific

MonthShop profitVenture twoGroup profitReinvestedTaken homeShops
October$17,422.34−$1,240.00$16,182.34$4,000.00$0.00Settling
September$15,906.10−$980.50$14,925.60$3,500.00$11,200.00Settled
August$14,212.88−$2,310.00$11,902.88$5,000.00$9,000.00Settled
July$12,870.42−$640.25$12,230.17$2,000.00$10,400.00Settled
alias
14:32LocalPA
Shops · October · All stores

Shops

What the shops sell, what it costs to run them, and what is left for the partners.

OctoberQuarterYearAll stores ▾Demo data
OverviewProfit & lossStoresProductsOrdersCostsPartnersData
Paper Finchⓘ
$6,420.10
$16,480.20 revenue · 39.0%
Quiet Harborⓘ
$4,388.52
$12,105.75 revenue · 36.3%
Moss & Inkⓘ
$3,301.40
$9,340.10 revenue · 35.3%
Lantern Laneⓘ
$2,190.12
$6,212.35 revenue · 35.3%
Tin Robinⓘ
$1,122.20
$4,072.00 revenue · 27.6%
01Profit bridge

October · all stores · from revenue down to operating profit · 1,604 orders

RecordedPartial: some source rows missingSettling
Revenue
$48,210.40ⓘ
Marketplace fees
−$6,412.18ⓘ
Production cost
−$19,884.62ⓘ
What
What the print provider charged to make and ship these orders.
Exact value
−$19,884.62
Dates and stores
October · all 5 stores
Formula
Production + provider shipping, per matched order · Based on: 1,604 orders
Source
Print provider API, synced daily
Status
Partial · 1,562 of 1,604 matched (97.4%)
See calculationClose explanation
Advertising
−$2,950.00ⓘ
Refunds
−$1,128.35ⓘ
Software and other
−$412.91ⓘ
Operating profit
$17,422.34ⓘ
Explain this bridgeMargin 36.1% · $30.06 average order · each partner $8,711.17
alias
14:32LocalPA
Engine · Q4 · Week 45

Engine

Ideas in, sales out. Who owns each job, what's due today, and whether every number is on target this week and this quarter.

4due today1overdue7/9numbers on target this week13jobs open
TodayGoalsScorecardLineCrewBoardsDemo data
Q4 objectivesDay 40 of 92 · 2/4
List 120 new designs104%
Hold margin above 35%91%
Ship 95% of orders within 3 days72%
Open two new shops48%
01Scorecard

Weekly numbers against target · last 6 weeks

On targetCloseOff
MetricOwnerTargetW40W41W42W43W44W45
Ideas and design
Ideas loggedPA20221824211923
Designs finishedDS1212139111412
Approved first passPB80%83%79%71%85%88%82%
Listings and sales
New listings livePB101011861210
OrdersPA380362371390402398411
Conversion ratePA2.4%2.2%2.3%2.5%2.4%2.6%2.5%
Fulfilment and service
Shipped within 3 daysCS95%96%97%93%91%96%98%
First reply under 4 hoursCS90%92%88%94%90%85%93%
Review averageCS4.84.84.94.84.74.84.9
02Who owns what

Design line · each move is dated

13 open
Idea4

Mushroom field guidePA

Tide chart printsPA

Winter birds setPB

Design3

Constellation mugsDS

Fern alphabetDS

Lighthouse seriesDS

Review3

Kitchen herbs teePB

Map of small riversPB

Paper boats printPA

Listed3

Moth study totePB

Orchard calendarPA

Heron notebookPB

03Timing

Fulfilment and customer service · last 30 days

Order to shipped2.4 daysmedian · target 3.0
First reply3h 10mmedian · target 4h
alias
14:32LocalPA
Shops · Data · Daily sync 06:00

Data

Email readerRead-onlyPrint providerSyncedStatements3 of 5
Sync nowUpload statementDemo data
OverviewProfit & lossStoresProductsOrdersCostsPartnersData
01Order email

Gmail API · read-only scope

sale

You made a sale on Etsy - Ship by Oct 13 - [$31.94, Order #3000000417]

Item: Fern study print

Size: 8 × 10 in

Quantity: 1

Item total: $28.00

Shipping: $1.99

Sales tax: $1.95

Order total: $31.94

Buyer:

Ship to:

Buyer name, address and email are never extracted.
02Parse and check

The email must agree with itself

4 of 4
  • Subject amount = order total3194 = 3194
  • Items + shipping + tax = total2800 + 199 + 195
  • Item total − discount = subtotal2800 − 0
  • Order number matches invoice link…0417

orderTotalCents3194

salesTaxCents195

shippingCents199

revenueCents2999

units1

03Production cost

Print-on-demand API · matched by order number

Matched

productionCents895

shippingCents247

cost−1142

04Fee lines

Monthly statement CSV · downloaded by hand

3 lines

Transaction fee 6.5%195

Payment processing121

Listing fee20

fees−336

05Ledger

Integer cents in the database · dollars only on screen

2999 − 336 − 1142 = 1521
OrderStoreRevenueFeesProductionProfitStatus
#…0417Paper Finch$29.99−$3.36−$11.42$15.21Complete
#…0416Quiet Harbor$24.50−$2.84−$9.18$12.48Complete
#…0415Moss & Ink$42.00−$4.57−$17.90$19.53Complete
#…0414Tin Robin$31.20Not recorded−$12.05PartialFees pending
06Coverage

October · what the numbers rest on

Sale emails parsed99.6%
1,604 of 1,611 · 7 rejected, listed by reason
Production cost matched97.4%
1,562 of 1,604 orders
Fee statements loaded60.0%
3 of 5 stores · month marked Settling

The problem

A shop dashboard shows sales. It does not show profit. Production costs sit with the print provider, fees arrive in monthly statements, and refunds and ad charges land weeks later. With several shops and two partners, the question "what can each of us take out this month?" meant an evening in spreadsheets, and the answer was still a guess.

What I built

A private web app with three sections. Company rolls everything up and shows where the money went. Shops has eight tabs covering profit and loss, stores, products, orders, costs, partner payouts and the data behind them. Engine tracks quarterly objectives, a weekly scorecard, who owns each job, and fulfilment and customer-service timing.

A scheduled sync runs once a day. I designed the interface and wrote all of it, including about 5,000 lines of CSS with no framework and three themes.

What made it hard

I chose to depend on nothing from the marketplace's API, so sales come from parsing order-notification emails. Layouts differ between shops and change without notice. A sale is accepted only when the email agrees with itself: the subject amount must equal the order total, and the lines must add up to it.

Anything that fails is counted and shown as missing coverage. Nothing is guessed, and money is held as integer cents everywhere so totals never drift.

Specimens

Live components. Touch them.
Move pointer · switch theme
CompanyDemo data
Revenue
$48,210.40
▲ 8.2% vs September
Operating profit
$17,422.34
October · 5 stores
Profit margin
36.1%
Revenue after tax
Stores by profit

October

Paper Finch
Quiet Harbor
Moss & Ink
Lantern Lane
Data health

What the numbers rest on

SalesCurrentProduction costsCurrentFee statementsSettlingDaily sync06:00
Each partner

1/2 each

Earned
$8,711.17
Paid out
$6,000.00
Available
$2,711.17

Spotlight panels and the theme switch

A radial gradient masked to each panel's one-pixel border follows the pointer, with a faint wash inside. Panels number themselves with a CSS counter. The switch repaints every specimen in this room in Dark, Light or Funky; the app keeps the choice in a cookie so the server renders the right theme on first paint.

Hover an arc · click to replay
Engine · Q4 objectives
2/4 ON TRACK
Day 40 of 92

Objective rings

Each ring is one quarterly objective, and a full ring means exactly on pace for today, so a goal at 48% reads as behind even early in the quarter. The white dot marks how far through the quarter we are.

Click a number
Shops · Profit & loss · October

Numbers that explain themselves

Every metric in the app is an object carrying what it is, its formula, its source and its coverage. The same object draws the value and this explanation, so the two cannot disagree. Partial values say what is missing.

Click a segment
Company · Where the money went
Shop profit, settled months$141,300.00
Reinvested, enlarged

    Money-flow zoom

    Two bars on two different scales would mislead if they simply sat next to each other. The trapezoid shows that the lower bar is one slice of the upper bar, enlarged. Slices too small to see still get a sliver of 0.8% so they can be followed.

    Under the floor

    How it works
    Scheduled synconce a day · 06:00 Pacific · also on demand
    Order emailsGmail API, read-only
    Classify, parsesale · refund · deposit
    Self-check4 sums must agree
    Print providerprint-on-demand API
    Cost plannerpure function, no IO
    Matchby order number
    Fee statementsCSV, uploaded by hand
    Line classifierunknown type refuses file
    Fee linesper order, per month
    Postgres ledgerinteger cents · row-level security · audit log
    Metric layerwhat · formula · source · coverage
    ScreensCompany · Shops · Engine
    No marketplace API anywhere in this picture.Rejected rows are counted, never dropped.

    An email has to agree with itself

    Before a sale is stored, four checks run: the subject amount equals the body's order total, the lines add up to that total, item total minus discount equals the subtotal, and the order number matches the invoice link. A failure is recorded under one of eight named reasons.

    Whole cents from the first parse

    A dollar string becomes an integer number of cents once, at the parser. Database columns, sums, margins and the 50/50 split all work on integers, and dollars are formatted only when drawn. Floating-point rounding never touches a payout.

    A number knows how complete it is

    Each metric has one of four states: known, partial, unknown or not applicable. A sum built from 1,562 of 1,604 source rows is marked partial and drawn hatched, with the count stated, so the screen cannot show a confident total it does not have.

    Tests at the database, the logic and the screen

    Row-level security in Postgres decides who can read each row, across 40+ migrations, and 124 pgTAP tests exercise those rules in the database itself. Another 187 app tests cover parsing and maths, and Playwright checks layouts from 320 to 1920 pixels in Chromium and WebKit.

    Sole engineer and designer · 2026Private · login only
    Next room · Gift cards for Ecuador remittances Papayal