
Security News
Axios Supply Chain Attack Reaches OpenAI macOS Signing Pipeline, Forces Certificate Rotation
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.
@hellotrust/react
Advanced tools
React SDK for displaying HelloTrust testimonials on your website.
npm install @hellotrust/react
# or
yarn add @hellotrust/react
import { useTestimonials } from '@hellotrust/react';
function TestimonialList() {
const { testimonials, loading, error } = useTestimonials('your-showcase-id');
if (loading) return <div>Loading testimonials...</div>;
if (error) return <div>Error loading testimonials</div>;
return (
<div>
{testimonials.map((testimonial) => (
<div key={testimonial.id}>
<p>{testimonial.final_text}</p>
<p>- {testimonial.provider_name || testimonial.provider_email}</p>
</div>
))}
</div>
);
}
import { Testimonials } from '@hellotrust/react';
function TestimonialList() {
return (
<Testimonials showcaseId="your-showcase-id">
{({ testimonials, loading, error }) => {
if (loading) return <div>Loading testimonials...</div>;
if (error) return <div>Error loading testimonials</div>;
return (
<div>
{testimonials.map((testimonial) => (
<div key={testimonial.id}>
<p>{testimonial.final_text}</p>
<p>- {testimonial.provider_name || testimonial.provider_email}</p>
</div>
))}
</div>
);
}}
</Testimonials>
);
}
The package includes full TypeScript type definitions:
import type { Testimonial, UseTestimonialsResult } from '@hellotrust/react';
interface Testimonial {
id: string;
final_text: string;
provider_email: string;
provider_name?: string;
created_at: string;
}
interface UseTestimonialsResult {
testimonials: Testimonial[];
loading: boolean;
error: Error | null;
}
useTestimonials(showcaseId: string)React hook that fetches testimonials from a showcase.
Parameters:
showcaseId (string, required): The ID of the showcase to fetch testimonials fromReturns: UseTestimonialsResult
testimonials (Testimonial[]): Array of testimonials in the showcase orderloading (boolean): True while fetching testimonialserror (Error | null): Error object if request failed, null otherwise<Testimonials />React component using the render prop pattern.
Props:
showcaseId (string, required): The ID of the showcase to fetch testimonials fromchildren (function, required): Render function that receives UseTestimonialsResultThe SDK can be built in two modes:
Development (localhost):
yarn build:dev
Builds the SDK to connect to http://localhost:8080 for local development.
Production:
yarn build:prod
Builds the SDK to connect to https://api.hellotrust.io for production use.
The API URL is baked into the build at compile time for maximum reliability and performance.
MIT
FAQs
React SDK for displaying HelloTrust testimonials
The npm package @hellotrust/react receives a total of 1 weekly downloads. As such, @hellotrust/react popularity was classified as not popular.
We found that @hellotrust/react demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.

Security News
Open source is under attack because of how much value it creates. It has been the foundation of every major software innovation for the last three decades. This is not the time to walk away from it.

Security News
Socket CEO Feross Aboukhadijeh breaks down how North Korea hijacked Axios and what it means for the future of software supply chain security.