wabe-resend
TypeScript icon, indicating that this package has built-in type declarations

0.5.1 • Public • Published

Wabe logo

What is Wabe?

Wabe is an open-source backend that allows you to create your own fully customizable backend in just a few minutes. It handles database access, automatic GraphQL API generation, authentication with various methods (classic or OAuth), permissions, security, and more for you.

Install for wabe-resend

bun install wabe # On bun
npm install wabe # On npm
yarn add wabe # On yarn

bun install wabe-resend # On bun
npm install wabe-resend # On npm
yarn add wabe-resend # On yarn

Basic example of wabe-resend usage

import { DatabaseEnum, Wabe } from "wabe";
import { ResendAdapter } from "wabe-resend";

const run = async () => {
  // Ensure your database is running before run the file

  const wabe = new Wabe({
    // Root key example (must be long minimal 64 characters, you can generate it online)
    rootKey:
      "0uwFvUxM$ceFuF1aEtTtZMa7DUN2NZudqgY5ve5W*QCyb58cwMj9JeoaV@d#%29v&aJzswuudVU1%nAT+rxS0Bh&OkgBYc0PH18*",
    database: {
      type: DatabaseEnum.Mongo,
      url: "mongodb://127.0.0.1:27045",
      name: "WabeApp",
    },
    email: {
      adapter : new ResendAdapter("YOUR_RESEND_API_KEY"),
    }
    port: 3000,
  });

  await wabe.start();

  await wabe.controllers.email.send({
    from : "test@test.com",
    to: ["target@gmail.com"],
    subject: "Test",
    text: "Test",
  });
};

await run();

Package Sidebar

Install

npm i wabe-resend

Homepage

wabe.dev

Weekly Downloads

5

Version

0.5.1

License

Apache-2.0

Unpacked Size

3.79 kB

Total Files

4

Last publish

Collaborators

  • palixir