
Security News
Package Maintainers Call for Improvements to GitHub’s New npm Security Plan
Maintainers back GitHub’s npm security overhaul but raise concerns about CI/CD workflows, enterprise support, and token management.
@dytesdk/api-client
Advanced tools
An ExpressJS backend sample to interact with Dyte's REST API. Can also be used as an executable.
Explore the docs »
View Demo
·
Report Bug
·
Request Feature
To get a local copy up and running follow these simple steps.
git clone https://github.com/dyte-io/express-backend-sample.git
npm install
.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>
npm run dev
To run the backend in production mode, run
npm run build
npm start
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:
Method | Route |
---|---|
POST | /meetings |
Creates a meeting in your organization.
Request body schema:
z.object({
title: z.string().optional(),
});
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(),
});
Method | Route |
---|---|
GET | /presets |
Fetches all preset names in your organization.
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.
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:.
Contributions, issues, and feature requests are welcome! Give a ⭐️ if you like this project!
Distributed under the Apache License, Version 2.0. See LICENSE
for more information.
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.
FAQs
An express backend sample for Dyte, also provided as an executable.
We found that @dytesdk/api-client demonstrated a not healthy version release cadence and project activity because the last version was released 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
Maintainers back GitHub’s npm security overhaul but raise concerns about CI/CD workflows, enterprise support, and token management.
Product
Socket Firewall is a free tool that blocks malicious packages at install time, giving developers proactive protection against rising supply chain attacks.
Research
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.