Skip to content

Nic13Gamer/00-node

Repository files navigation

00 Node.js SDK

Community made SDK for interacting with the 00 (short for DoubleZero) API.

This package is inspired by the official Resend Node.js SDK.

This package is not officially maintained by 00.

Install

npm install 00-js
# or
pnpm add 00-js
# or
yarn add 00-js

Setup

First, you need to deploy your 00 API. You can do this by following the instructions here.

Then, create an API token in your dashboard.

import { DoubleZero } from '00-js';

const doubleZero = new DoubleZero({
  baseUrl: 'https://double-zero.example.com',
  token: 'your_api_token',
});

Usage

Sending emails is very simple.

await doubleZero.emails.send({
  from: '[email protected]',
  to: '[email protected]',
  subject: 'Test email from Node.js!',
  html: '<h1>Hello world from 00!</h1>',
});

License

MIT License

About

JavaScript SDK for interacting with the 00 API.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •