Version 1.0.1
🚀 Version 1.0.1 - Release
We're excited to announce the first official release of the MakeImpact JavaScript SDK! This package allows developers to easily integrate environmental impact actions into web apps, servers, or any JavaScript-based workflows.
✨ Features
Environmental Impact Actions
- Plant Trees: Support reforestation efforts via simple API calls
- Clean Ocean: Remove ocean waste with automated contributions
- Capture Carbon: Offset carbon emissions seamlessly
- Donate Money: Fund causes with direct donations
Data Access & Reporting
- Retrieve Records: Query historical impact activity
- Customer Tracking: Link impact to individual users or accounts
- Impact Summaries: View total contributions across categories
Configuration & Integration
- Sandbox & Production Support: Test safely before going live
- Typed Parameters (TypeScript): Autocomplete & type safety out of the box
- Built-in Error Handling: Standardized error messages and codes
🔧 Technical Details
- ES Modules and CommonJS compatible
- Written in TypeScript, works in JavaScript too
- Tree-shakeable for optimized bundling
- Zero external dependencies
- Works in Node.js, Vite, Webpack, or modern frontend stacks
📚 Documentation
Refer to the README.md for full documentation and code examples covering all supported API features.
🎯 Getting Started
import { OneClickImpact, Environment } from "makeimpact";
// Initialize the SDK with your API key
const sdk = new OneClickImpact("your_api_key");
// Plant a tree
const response = await sdk.plantTree({ amount: 1 });
console.log(`Successfully planted ${response.treePlanted} tree(s)!`);