For SaaS founders, churn is the silent killer. For developers, building in-house NPS tools is a time sink. Meet NPS-Hero: the developer-first Net Promoter Score platform that integrates via npm, API, or JS in minutes—not weeks. Used by 1,200+ SaaS teams, it turns passive users into promoters and cuts churn by 30%. Here’s how to embed it into your stack today.
“We replaced our custom NPS system with NPS-Hero and saved 200+ engineering hours.”
— CTO, B2B SaaS Startup
npm install --save nps-hero
import NPSInput from 'nps-hero';
function App() {
return (
<NPSInput
npsHeroApiKey="YOUR_API_KEY"
npsHeroCustomerId="CUSTOMER_ID"
npsHeroQuestionnaireId="QUESTIONNAIRE_ID"
customOrUserIdentifier={user.id} // Optional
paramScoreThresholdForFeedback={7}
/>
);
}
Pro Tip: Use loadDataDynamically=true
to fetch survey text from your CMS.
<script src="https://nps-hero.com/js/nps-widget.js"
data-nps-hero-api-key="YOUR_API_KEY"
data-questionnaire-id="QUESTIONNAIRE_ID"
async>
</script>
Customize It: Override CSS to match your brand’s theme.
curl -X POST https://nps-hero.com/api/v1/webhooks/{questionnaireId}/send-email \
-H 'Authorization: Bearer YOUR_API_KEY' \
-d '{
"email": "user@saas.com",
"reference": "subscription_123",
"customIdentifier": "user_456"
}'
Stripe Integration: Guide: Stripe + NPS-Hero
curl -X GET https://nps-hero.com/api/v1/responses \
-H 'Authorization: Bearer YOUR_API_KEY' \
-G --data-urlencode 'minScore=9'
Get started with NPS-Hero’s free trial and create an NPS survey on your website. Discover how likely your customers are to recommend you, and take actionable steps to enhance their experience – and your business results.
Register now