frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Feature gating patterns in a multi-tenant Next.js SaaS

1•madebyjam•2h ago
Building a multi-tenant crew management app (Next.js 15, Convex, Clerk). Just shipped the feature tiering system across Free/Pro/Business/Enterprise plans. 25+ gates across every module in two commits.

Three enforcement patterns emerged. Soft limits query the current count from Convex, compare against a tier-specific cap, and render a counter component ("3 of 15 used") that swaps to an upgrade prompt near the limit. Hard gates check planTier from the workspace record and render a full overlay with upgrade CTA when the feature is above the user's tier. Preview gates are a middle ground: the list/summary view renders normally, but clicking into a detail view hits the gate. Used this for scheduling report drill-downs where showing the summary is a better sales tool than hiding it entirely.

The TierBadge component renders tier-colored pills (Free gets smoke, Pro gets honey, Business gets violet, Enterprise gets honey with border). Placed it in the sidebar nav, workspace switcher, billing page, and settings header. The Convex `getUserWorkspaces` query was extended to return `planTier` per workspace so the badge renders without extra lookups.

Tier assignment was the interesting design problem. Crew ratings and achievements went to Free because they drive engagement. Gating engagement to upsell felt counterproductive. Soft limits were set high enough that Free users hit real value before the cap (client tags at 15, crew certifications at 10, venue photos at 10). Hard gates protect operational leverage features: bulk gig actions, labor budgets, overtime rules.

The first commit touched 55 files. Second pass wired the remaining gates I missed and corrected several tier assignments. Not glamorous but having the enforcement pattern standardized made per-module wiring mechanical.

https://jamcrew.io

Most AI agent demos won't survive enterprise security review

1•ibreakthecloud•1m ago•0 comments

Show HN Experiment: enforcing accessibility guardrails during AI UI generation

https://github.com/nadav-senseit/ai-accessibility-enforcement
1•nadav_senseit•1m ago•0 comments

Ask HN: Have you noticed how the number of 'Show HN' posts has skyrocketed?

1•nodivbyzero•1m ago•0 comments

CSUN Assistive Technology Conference 2026 files

https://daisy.org/news-events/articles/csun-conference-2026-files/
1•bryanrasmussen•2m ago•0 comments

Show HN: Chatddit.com Fresh off the vibe press

1•gitprolinux•2m ago•0 comments

I'm a Coin Boy, Too (2023)

https://taylor.town/coin-boys
1•surprisetalk•2m ago•0 comments

Formal Verification in the Age of AI

https://verse.systems/blog/post/2026-03-05-formal-verification-ai/
1•matt_d•2m ago•0 comments

I Love Email (2023)

https://blog.xoria.org/email/
1•surprisetalk•2m ago•0 comments

Case Study: lynnandtonic.com 2025 refresh

https://lynnandtonic.com/thoughts/entries/case-study-2025-refresh/
1•surprisetalk•2m ago•0 comments

A Day in the Life of an Enshittificator [video]

https://www.youtube.com/watch?v=T4Upf_B9RLQ
1•surprisetalk•2m ago•0 comments

Collabora at Embedded World 2026: Open-Source AI and Embedded Innovation

https://www.collabora.com/news-and-blog/news-and-events/bringing-the-ai-experience-to-embedded-wo...
1•losgehts•3m ago•0 comments

I built a real-time RER/train tracker for Paris commuters (PWA, no app store)

https://o-rer.com
2•raduvul•4m ago•1 comments

Arc Raiders – Discord SDK Data Exposure

https://timothymeadows.com/arc-raiders-discord-sdk-data-exposure/
2•esnard•6m ago•0 comments

Researchers discover Chickpeas can grow in moon dirt and make seeds

https://www.sciencenews.org/article/chickpeas-moon-dirt-seeds-space-farming
1•ck2•6m ago•0 comments

Asymmetric Goal Drift in Coding Agents Under Value Conflict

https://arxiv.org/abs/2603.03456
1•lrakster•7m ago•0 comments

Is Web Development Returning to PHP?

https://andreasyanaram.medium.com/is-web-development-quietly-returning-to-php-8dd5c3d47eee
1•ulrischa•8m ago•0 comments

Containers, but Without the Magic Part 1: Networking

https://www.nightshift.sh/blog/containers-without-magic-01
1•tensor_ninja•10m ago•0 comments

Show HN: ColdPitch – Find anyone, get a personalized cold email in seconds

https://www.coldpitch.ai
1•arishec•10m ago•0 comments

Why do elephants have such wrinkly skin?

https://www.sciencefocus.com/nature/why-do-elephants-have-such-wrinkly-skin
1•thunderbong•10m ago•0 comments

Left-handed people may have a psychological edge in competition

https://phys.org/news/2026-03-left-people-psychological-edge-competition.html
3•simonebrunozzi•10m ago•0 comments

The OpenAI Files

https://www.theverge.com/openai/688783/the-openai-files-will-help-you-understand-how-sam-altmans-...
2•MrBuddyCasino•11m ago•0 comments

Show HN: I trained a small local model to translate natural language to CLI

https://github.com/spicy-lemonade/zest-cli-infra
1•kiki_kuuki•11m ago•0 comments

How we fixed Postgres connection pooling on serverless with PgDog

https://circleback.ai/blog/how-we-fixed-postgres-connection-pooling-on-serverless-with-pgdog
2•alihaghani•12m ago•0 comments

No Cloud, No Waiting: Tool-Calling Agents on Consumer Hardware with LFM2-24B-A2B

https://www.liquid.ai/blog/no-cloud-tool-calling-agents-consumer-hardware-lfm2-24b-a2b
1•nimar•12m ago•0 comments

Kaoslabs – My Linux VPS and self-hosting experiments

https://kaoslabs.org
1•wilhart•12m ago•1 comments

Type-safe, K-sortable, globally unique identifier inspired by Stripe IDs

https://github.com/jetify-com/typeid
1•alcazar•15m ago•0 comments

Donald Trump insists there are no wind farms in China. Here are 20 in pictures

https://www.theguardian.com/us-news/gallery/2026/mar/05/pictures-china-wind-farms-trump
11•beardyw•16m ago•3 comments

Heuristics for lab robotics, and where its future may go

https://www.owlposting.com/p/heuristics-for-lab-robotics-and-where
1•abhishaike•16m ago•0 comments

.test

1•bengothard•17m ago•3 comments

AntScan – high-throughput phenomics of ant biodiversity via synchrotron

https://www.antscan.info
1•marojejian•17m ago•1 comments