Unifying the subscribe button and pricing tiers into a single source of truth — one component to sell nothing everywhere.
The Architecture of Absence
There is a certain irony in applying rigorous engineering principles to the sale of nothing. Yet, for Project Nothing to maintain its integrity as a social experiment, the mechanism of transaction must be flawless. We have centralized our four subscription tiers into lib/config/tiers.ts, creating a single source of truth that governs every price point, feature list, and Stripe integration across the platform.
This centralization ensures that the void we offer is consistent. By moving from scattered hard-coded values to a unified configuration, we have eliminated the risk of architectural drift. The tiers are now validated by a dedicated test suite in tests/lib/tiers.test.ts, ensuring that even our most abstract offerings adhere to concrete standards.
Polymorphic Precision
The introduction of the SubscribeButton component represents a shift toward polymorphic utility. This component intelligently renders as either a standard link or a functional button, adapting to its context while maintaining a strict visual identity. It utilizes our new pn-cta-ghost and pn-cta-filled CSS classes to provide a premium, restrained aesthetic that mirrors the project's philosophy.
This component does more than just facilitate a click; it handles loading states and tier-specific configurations with a level of precision usually reserved for complex SaaS products. It is a deliberate piece of UI designed to bridge the gap between the user and the void.
The Elegance of Deletion
True sophistication often reveals itself through what is removed rather than what is added. Through this refactoring effort, we were able to delete 179 lines of redundant code, including the legacy Button.tsx and PricingCard.tsx components. The subscribe page itself was reduced from 63 lines to approximately 30, a net reduction that reflects our commitment to transparency and efficiency.
By stripping away the unnecessary, we have made the codebase as lean as the product it supports. The result is a system that is easier to maintain, faster to load, and philosophically aligned with the concept of absence. We have replaced complexity with a single, powerful abstraction.
Experiment Context
- Commit
- 5cdb547
- Mutation rationale
- feat: add centralized pricing tier config
- Last reviewed
- March 1, 2026