I shipped my first npm package with AI — and it's already in production
Description and use
The daterly package was successfully published and adopted internally, providing a seamless date picker that integrates cleanly with react‑hook‑form and adheres to the company’s styling conventions. AI accelerated the development of core logic and boilerplate, while manual review ensured correctness and fit.
Problem
Existing React date picker (react-datepicker) conflicted with the company’s styling system and react‑hook‑form integration, causing repetitive friction across projects.
Outcome
The daterly package was successfully published and adopted internally, providing a seamless date picker that integrates cleanly with react‑hook‑form and adheres to the company’s styling conventions. AI accelerated the development of core logic and boilerplate, while manual review ensured correctness and fit.
Workflow
- Identify the need for a custom date picker
- Design component API and integration points
- Use Claude AI to generate core logic (mask, build config, type declarations)
- Manually review and refine AI output
- Implement react‑hook‑form wrapper and styling via CSS variables
- Set up dual ESM/CJS build with tsup
- Configure versioning with Changesets
- Add CI, code coverage, size‑limit budget, and component tests with Playwright and Vitest
- Publish to npm and document usage
Evidence
The input mask is the best example.
The packaging is the real work.
- Record date: 2026-09-06T07:37:06.351Z