frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Show HN: JamCrew – 868 tests, 91% coverage on a pre-revenue crew management SaaS

https://jamcrew.io
1•madebyjam•1h ago

Comments

madebyjam•1h ago
Building a multi-tenant SaaS for live event crew management (subdomain per company, Clerk auth, Convex backend). Just finished an 8-phase testing sprint that took the suite from ~30 tests to 868 across 65 files. 91.7% line coverage.

The most interesting part was the middleware. Next.js middleware handles subdomain resolution, custom domain mapping (CNAME verification against Vercel API), subscription gating (expired/inactive/domain_removed), and CORS preflight. Writing tests for it surfaced real gaps: permissions arrays not being injected when non-empty, custom font URLs not propagating to downstream server components, inactive subscriptions getting a different redirect param than expired ones.

Test infrastructure: Vitest with JSDOM environment, ConvexHttpClient mocked at the module level, Clerk auth mocked to return configurable userId, vi.useFakeTimers for date-dependent cron tests. Each server action test follows the same pattern: mock getConvexClient, mock revalidatePath, verify mutation args and revalidation paths.

The cron job tests were tricky. The weekly digest only runs on Mondays, so fake timers were essential. The gig reminders cron does three passes (today's reminders, urgency nudges for pending assignments, streak-at-risk warnings) with rate formatting that changes based on whether the assignment has a rate set.

Coverage report shows every previously-below-70% file is now above 85%. Middleware: 99%. Crew actions (was 18%): 100%. SSO config (was 35%): 100%.

Stack: Next.js 15, Convex, Clerk, Vitest, Vercel.

https://jamcrew.io

Follow the Science: Science, Uncertainty and Values in the Pandemic

https://markthegraph.blogspot.com/2026/03/follow-science-science-uncertainty-and.html
1•Khaine•50s ago•0 comments

Billy bookshelves as a retro motherboard "rack"

https://rubenerd.com/billy-bookcase-as-a-retro-motherboard-rack/
1•ingve•7m ago•0 comments

The Week the Dreaded AI Jobs Wipeout Got Real

https://www.wsj.com/tech/ai/the-week-the-dreaded-ai-jobs-wipeout-got-real-3ba5057b
1•Brajeshwar•8m ago•0 comments

What Are Your Guilty Displeasures?

https://www.hopefulmons.com/p/what-are-your-guilty-displeasures
1•aregue•10m ago•0 comments

The MySQL-to-Postgres Migration That Saved $480K/Year: A Step-by-Step Guide

https://medium.com/@dusan.stanojevic.cs/the-mysql-to-postgres-migration-that-saved-480k-year-a-st...
1•taubek•16m ago•0 comments

What's in a Name?..

https://sailsandcommas.com/2014/02/03/whats-in-a-name/
1•Curiositry•16m ago•0 comments

Byte-Pair Encoding

https://en.wikipedia.org/wiki/Byte-pair_encoding
1•tosh•17m ago•0 comments

Polymarket 5min market Trading Bot

1•Benjamin-Cup•18m ago•0 comments

Dr Pirker Bioimplant

https://news.ycombinator.com
1•ahuva•23m ago•0 comments

Apple Eats AI for Breakfast [video]

https://www.youtube.com/watch?v=9VZaI44odyg
1•mgh2•26m ago•0 comments

Finding value with AI and Industry 5.0 transformation

https://www.technologyreview.com/2026/02/26/1133707/finding-value-with-ai-and-industry-5-0-transf...
1•joozio•28m ago•0 comments

Fair shifts focus away from WordPress

https://coywolf.com/news/content-marketing/fair-quits-wordpress-but-one-of-its-best-features-rema...
1•taubek•31m ago•0 comments

Show HN: Ghostty Pane Splitter – Split terminal panes for AI coding agents

https://github.com/rikeda71/ghostty-pane-splitter
2•rikeda71•33m ago•0 comments

Spike – lazy-loading MCP tools for better context usage

https://spike.land
1•johnny_reilly•34m ago•0 comments

For bar duty at his hockey club, he built a fair schedule generator

https://medium.com/@bavo.bruylandt/building-a-bar-scheduler-for-our-hockey-club-f3800b7fe078
2•ge0ffrey•35m ago•0 comments

Latent-Space Communication in Heterogeneous Multi-Agent Systems

https://arxiv.org/abs/2602.15382
2•ekaesmem•37m ago•0 comments

I built an AI tool that designs kitchen layouts

https://aikitchendesign.io/
1•cby821555203•47m ago•0 comments

Show HN: AutoTable – One-Click Spreadsheet Cleaner Built with Gemini

https://www.auto-table.com/
1•voxdroid•47m ago•0 comments

Pathways to a fair technological future [pdf]

https://storage02.forbrukerradet.no/media/2026/02/breaking-free-pathways-to-a-fair-technological-...
2•jmartinpetersen•53m ago•0 comments

How SiriusXM Ignored Pandora's Innovation and Is Killing Itself

https://pandora-sxm-news.blogspot.com/2026/01/how-siriusxm-ignored-pandoras.html
3•Aloha•53m ago•0 comments

Update: Making VeriContext Enforce Citations Across Sub-Agents

https://github.com/amsminn/vericontext/blob/main/CHANGELOG.md
1•amsminn•55m ago•1 comments

Switch to Claude Without Starting Over

https://claude.com/import-memory
41•doener•55m ago•22 comments

Show HN: React-Kino – Cinematic scroll storytelling for React (1KB core)

https://github.com/btahir/react-kino
1•bilater•55m ago•0 comments

10-202: Introduction to Modern AI (CMU)

https://modernaicourse.org
15•vismit2000•57m ago•1 comments

You're Not Addicted to Porn. You're Addicted to Staying Smaller Than You Could B

https://cpleveragingai.substack.com/p/youre-not-addicted-to-porn
2•cp18101985•57m ago•0 comments

Worlds First AI-OS

https://github.com/siresorose/ai-os
1•siresorose•58m ago•1 comments

Peergos: An EE2E P2P solution for sync and storage

https://peergos.org/
2•volemo•58m ago•1 comments

Is Rust Still Surging in 2025? Usage and Ecosystem Insights

https://medium.com/@datajournal/is-rust-still-surging-in-2025-49bfc6d1ce5d
1•adgnaf•59m ago•0 comments

Show HN: MemLineage: governed writes for AI agents

https://github.com/zhuamber370/memlineage
1•celastin•1h ago•1 comments

Do you validate before building or build and validate after?

https://www.founderspace.work
1•VladCovaci•1h ago•1 comments