
Research
Security News
The Growing Risk of Malicious Browser Extensions
Socket researchers uncover how browser extensions in trusted stores are used to hijack sessions, redirect traffic, and manipulate user behavior.
ng-flexbot is an open-source Angular UI library designed to create chatbots with just a few lines of code. It allows you to select from various models, such as GPT and Google Gemini, and customize the chatbot’s behavior using a prompt context.
Welcome to ng-flexbot
! 🚀
ng-flexbot is an open-source Angular UI library designed to create chatbots with just a few lines of code. It allows you to select from various models, such as GPT and Google Gemini, and customize the chatbot’s behavior using a prompt context.
Are you looking for a streamlined way to integrate chatbots into your Angular applications? ng-flexbot simplifies this process by providing an easy-to-use UI component that integrates with popular language models. With ng-flexbot, you can:
And that’s not all! We’re continuously improving ng-flexbot and have exciting plans for future updates.
To get started with ng-flexbot
, install it as an npm package:
npm install ng-flexbot
Here’s a quick example of how to use ng-flexbot
in your Angular project:
write this configuration on your app.config.ts
file
import { provideHttpClient, withFetch } from '@angular/common/http';
import { provideMarkdown } from 'ngx-markdown';
export const appConfig: ApplicationConfig = {
providers: [provideHttpClient(withFetch()), provideMarkdown()],
};
<div class="container">
<lib-ng-flexbot
[googleApikey]="googleApikey"
[openaiApikey]="openaiApikey"
[promptContext]="promptContext"
[textModel]="textModel"
[imageModel]="imageModel"
[title]="title"
[welcomeMessage]="welcomeMessage"
/>
</div>
import { Component } from '@angular/core';
import { FlexbotCurrentImageModel, FlexbotCurrentTextModel } from '@ng-flexbot/ng-flexbot/models/flexbot-current-llm.enum';
@Component({
standalone: true,
imports: [NgFlexbotComponent],
selector: 'app-root',
styles: [
`
.container {
height: 100vh;
}
`,
],
})
export class AppComponent {
title = 'flexbot-demo';
googleApikey = "[YOUR_GOOGLE_API_KEY]";
openaiApikey = "[YOUR_OPENAI_API_KEY]";
promptContext = "you only know questions about Angular"
textModel = FlexbotCurrentTextModel.GOOGLE_GEMINI_PRO;
imageModel = FlexbotCurrentImageModel.OPEN_AI_GPT_4o_MINI;
welcomeMessage = "Welcome to Flexbot!";
}
To use ng-flexbot
, you need API keys for the selected language models. You can obtain these keys from the following platforms:
ng-flexbot supports the following models:
Google Models
GOOGLE_GEMINI_PRO
(google/gemini-pro
)GOOGLE_MEDULLA_2
(google/medulla-2
)OpenAI models
OPEN_AI_GPT_3
(openai/gpt-3
)OPEN_AI_GPT_3_CHAT
(openai/gpt-3-chat
)OPEN_AI_GPT_4
(openai/gpt-4
)OPEN_AI_GPT_4_TURBO
(openai/gpt-4-turbo
)OPEN_AI_GPT_3_5_TURBO
(openai/gpt-3.5-turbo
)OPEN_AI_TEXT_DAVINCI_003
(openai/text-davinci-003
)Google Models
GOOGLE_GEMINI_1_5_FLASH
(google/gemini-1.5-flash
)OpenAI Models
OPEN_AI_DALL_E_3
(openai/dall-e-3
)OPEN_AI_DALL_E_2
(openai/dall-e-2
)We welcome contributions from the community! Since ng-flexbot
is a monorepo created with Nx, please follow these steps to contribute:
ng-flexbot
directory:
git clone https://github.com/your-username/ng-flexbot.git
cd ng-flexbot
npm install
npx nx install
git checkout -b feature/your-feature-name
npx nx test
npx nx build
git commit -m 'Adding a new feature'
git push origin feature/your-feature-name
We appreciate all contributions, big or small!
This project is licensed under the MIT License. For more details, see the LICENSE.md file or visit the MIT License Website.
If you have any feedback, please reach out to us at arolleaguekeng@gmail.com.
#Angular #Chatbot #OpenSource #UI #JavaScript #Innovation #gemini #chatgpt #AngularLibrary #ChatbotUI #AngularComponents #DeveloperTools #AI #MachineLearning #GPT #GoogleGemini
[0.0.1-beta.5] - 2023-10-07
FAQs
ng-flexbot is an open-source Angular UI library designed to create chatbots with just a few lines of code. It allows you to select from various models, such as GPT and Google Gemini, and customize the chatbot’s behavior using a prompt context.
The npm package ng-flexbot receives a total of 1 weekly downloads. As such, ng-flexbot popularity was classified as not popular.
We found that ng-flexbot demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers 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.
Research
Security News
Socket researchers uncover how browser extensions in trusted stores are used to hijack sessions, redirect traffic, and manipulate user behavior.
Research
Security News
An in-depth analysis of credential stealers, crypto drainers, cryptojackers, and clipboard hijackers abusing open source package registries to compromise Web3 development environments.
Security News
pnpm 10.12.1 introduces a global virtual store for faster installs and new options for managing dependencies with version catalogs.