npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@dytesdk/api-client

v0.1.0

Published

An express backend sample for Dyte, also provided as an executable.

Downloads

12

Readme

Table of Contents

Getting Started

To get a local copy up and running follow these simple steps.

Prerequisites

  • npm
  • NodeJS

Installation

  1. Clone the repo
git clone https://github.com/dyte-io/express-backend-sample.git
  1. Install NPM packages
npm install
  1. Add a .env on the root of the repo, with the following variables:
DYTE_API_KEY=<Your dyte api key>
DYTE_ORG_ID=<Your dyte org id>
  1. To run the backend in dev mode (hot reload on changes), run:
npm run dev

To run the backend in production mode, run

npm run build
npm start

Usage

The APIs in this sample actually the v2 API route structure, and returns the response returned from the respective v2 API.

To proceed with this guide, make sure you've already created an account at https://dev.dyte.io and you've created a preset for participants you're going to be adding to meetings via the preset editor.

You can use the authToken you create from this sample in all our other SDKs, such as:

https://github.com/dyte-io/react-samples

Here are the APIs used in this sample:

Create a Meeting

| Method | Route | | ------ | ----------- | | POST | /meetings |

Creates a meeting in your organization.

Request body schema:

z.object({
  title: z.string().optional(),
});

Reference

Add a participant to a meeting

| Method | Route | | ------ | ----------------------------------- | | POST | /meetings/:meetingId/participants |

Adds a participant to a specific meeting.

Request body schema:

z.object({
  name: z.string(),
  picture: z.string().optional(),
  preset_name: z.string(),
});

Reference

Fetch all presets

| Method | Route | | ------ | ---------- | | GET | /presets |

Fetches all preset names in your organization.

Reference

Using as an executable

To make development easier, you can also use this sample as an npm executable!

Just make sure you have your environment variables in a .env file, and then simply run:

npx @dytesdk/api-client

This will start a development server without needing to clone this repository.

Contributing

Contributions are what make the open source community such an amazing place to be learn, inspire, and create. Any contributions you make are greatly appreciated. Sincere thanks to all our contributors. Thank you, contributors!

You are requested to follow the contribution guidelines specified in CONTRIBUTING.md and code of conduct at CODE_OF_CONDUCT.md while contributing to the project :smile:.

Support

Contributions, issues, and feature requests are welcome! Give a ⭐️ if you like this project!

License

Distributed under the Apache License, Version 2.0. See LICENSE for more information.

About

express-backend-sample is created & maintained by Dyte, Inc. You can find us on Twitter - @dyte_io or write to us at dev [at] dyte.io. The names and logos for Dyte are trademarks of Dyte, Inc. We love open source software! See our other projects and our products.