This documentation is actively being improved. You may encounter gaps or incomplete sections as we refine and expand the content. We appreciate your understanding and welcome any feedback to help us make this resource even better!

Most of Fonoster’s use cases require an account, the Command-line interface, and a virtual phone number. This guide will walk you through the steps to start with Fonoster quickly.

1

Request early access

To get started, you need to request early access to Fonoster. You can do this by visiting the GitHub Discussions and following the instructions.

2

Create a simple voice application

Voice applications in Fonoster require Node.js to run. If you don’t have Node.js installed, you can download it from the official website. Once you have Node.js installed, you can create a simple voice application by running the following commands:

mkdir voice-app
cd voice-app
npm init -y
npm install @fonoster/voice

Create a new script and add the following code:

index.js
  const VoiceServer = require("@fonoster/voice").default;

  new VoiceServer().listen(async (req, voice) => {
    await voice.answer();
    await voice.say("Hello from Fonoster!");
    await voice.hangup();
  });

Finally, run the application with the following command:

node index.js

Keep the application running for the next steps.

3

Publish your application

To make your application available to the public, you must expose it to the internet. One way to do this is by using a service like ngrok. You can install ngrok by running the following command:

npm install -g ngrok

Once you have ngrok installed, you can expose your application by running the following command:

ngrok tcp 50061

Your output should look like this:

This will give you a public endpoint that you can use to access your application.

4

Link a virtual phone number

Follow the next steps to link a virtual phone number to your application:

Now that you have created your first Application learn more about Fonoster’s advanced features and concepts.