shared-features — api project

`shared-features` is the NPM package that every other Ahsan/Zaions project imports. It exposes typed adapters for the cross-cutting product features that recur across projects: cross-promotion ad panels, broadcast banners, user profile data utilities, feature-flag helpers, analytics event contracts, and notification event types.

The package follows a strict reusable-infrastructure boundary — no app-specific business logic — and a deprecate-before-remove backwards-compatibility contract so consuming apps never break on minor bumps. Vite emits both ESM and TypeScript declarations; the build, typecheck, and lint must all pass before every publish.

The companion marketing website ships with full production observability: 4-platform telemetry (Firebase Analytics + Amplitude + Microsoft Clarity + Google Analytics), Sentry error tracking, and a React ErrorBoundary — all wired in one bundled commit on 2026-05-06.

Tech stack

  • TypeScript
  • Vite
  • ESLint
  • Vitest
  • NPM
  • Firebase Analytics
  • Amplitude
  • Microsoft Clarity
  • Sentry

Key features

  • Cross-promotion ad panel contracts
  • Broadcast banner contracts
  • User profile data utilities
  • Typed feature-flag helpers
  • Analytics event-type contracts
  • Push and in-app notification event types
  • Companion marketing site with 4-platform telemetry + Sentry + ErrorBoundary
  • Strict deprecate-before-remove backwards-compatibility

Category: api · Status: completed · Started: 2024-04 · Through: Present · Client: AOneAhsan

Links: https://www.npmjs.com/package/shared-features

Tags: npm-package · typescript · platform-engineering · feature-flags · analytics


Contact

Website: https://zaions.com
Email: aoneahsan@gmail.com
GitHub: github.com/aoneahsan
LinkedIn: linkedin.com/in/aoneahsan
RSS Feed: https://zaions.com/feed.xml
Sitemap: https://zaions.com/sitemap.xml
LLM Index: https://zaions.com/llms.txt