Gathering detailed insights and metrics for 10xanswers
Gathering detailed insights and metrics for 10xanswers
Gathering detailed insights and metrics for 10xanswers
Gathering detailed insights and metrics for 10xanswers
The 10xAnswers Frontend is a React-based, fully customizable chatbot component designed for seamless integration into your projects. With features like a draggable interface, markdown support, and real-time backend communication. Customize, see in action, and retrieve the code directly for our website, link below.
npm install 10xanswers
Typescript
Module System
Node Version
NPM Version
JavaScript (69.27%)
CSS (29.8%)
HTML (0.94%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
13 Stars
30 Commits
2 Forks
1 Watchers
2 Branches
1 Contributors
Updated on Jun 01, 2025
Latest Version
1.1.16
Package Id
10xanswers@1.1.16
Unpacked Size
6.28 MB
Size
5.82 MB
File Count
7
NPM Version
10.9.2
Node Version
23.11.0
Published on
May 27, 2025
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
9
23
10xAnswers is an easy-to-integrate, fully customizable, and draggable chatbot component built with React and Recoil. It allows you to add an intelligent chatbot to your project with minimal effort—no need to build one from scratch. Simply configure the prompt and provide the backend URL (or use our hosted service if you don’t want to build the backend yourself).
With 10xAnswers, you get both the frontend component and a backend solution, streamlining the process of adding a chatbot to your project. Just provide the URL and you're good to go—whether you want to build your own backend or use our hosted solution.
You can see the 10xAnswers chatbot in action, customize its appearance, behavior, and features, and even get the exact code to integrate it into your own website!
Visit the demo and customization page at: https://10x-answers.vercel.app/ Try adjusting the settings to see how the chatbot reacts to different configurations. After customizing the chatbot, you can copy the generated code and implement it directly into your project to use the same customized bot on your website.
1npm install 10xanswers 2# or 3yarn add 10xanswers 4# or 5pnpm add 10xanswers
1import React from 'react'; 2import { ChatBot } from '10xanswers'; 3 4function App() { 5 return ( 6 <ChatBot 7 backendUrl="https://ask-10x-questions.vercel.app/" 8 prompt="Act as an artist and answer questions in a creative and stylistic manner." 9 /> 10 ); 11} 12 13export default App;
Important: The provided URL https://ask-10x-questions.vercel.app/
is a pre-configured backend that works seamlessly with the 10xAnswers component.
Prop | Type | Default | Description |
---|---|---|---|
backendUrl | string | - | Backend URL for chat processing, required |
geminiApi | string | - | Gemini API key for direct integration if no backend availaible(not recommended) |
title | string | "10xAnswers" | Chat window title |
draggable | boolean | false | Enable/disable dragging |
startOpen | boolean | false | Initial chat window state(open/colsed) |
Prop | Type | Default | Description |
---|---|---|---|
chatWindowStyle | object | {} | Inline styles for chat window |
chatBotIconStyle | object | {} | Inline styles for bot icon |
chatComponentStyle | object | {} | Inline styles for chat component |
1<ChatBot 2 backendUrl="https://ask-10x-questions.vercel.app/" 3 title="100xQuestions" 4 stylizeTitle={{emphasized:"100x",normal:"Questions"}}//this field is optional, but recommended 5 botIcon="./logoImg2.jpg" 6 userIcon="./logoImg.jpg" 7 draggable={true} 8 x={500} 9 y={625} 10 prompt="You're and artisted turned developer, not respond accordingly" 11 description="AI-powered conversational assistant" 12 cta="Start Asking" 13 startOpen={true} 14 chatWindowStyle={{backgroundColor: #090909}}//if you want to change the background color, you can simply do it in the window 15/>
Prop Name | Type | Description |
---|---|---|
chatWindowStyle | Object | Inline CSS for chat window styling. |
chatBotIconStyle | Object | Inline CSS for bot icon styling. |
chatComponentStyle | Object | Inline CSS for overall chat component styling. |
chatWindowClassName | String | Tailwind classes for chat window styling. |
chatBotIconClassName | String | Tailwind classes for bot icon styling. |
backendUrl | String | Required if no Gemini API is provided. URL for backend to process requests. |
title | String | Custom title for the chatbot window. |
botIcon | String | Path to the bot icon image. |
userIcon | String | Path to the user icon image. |
stylizeTitle | Object | Object with emphasized and normal strings to style the title. |
prompt | String | Custom prompt for the chatbot. Use "none" for no prompting. |
geminiApi | String | Required if no backendUrl is provided. |
theme | String | Theme for the chatbot (currently not implemented). |
draggable | Boolean | Enable or disable draggable functionality. |
x | Number | Initial x-position for draggable mode. |
y | Number | Initial y-position for draggable mode. |
description | String | Description text for the chatbot. |
cta | String | Call-to-action text for the chatbot button. |
startOpen | Boolean | Whether the chatbot window starts open (true ) or closed (false ). |
prompt
: If a custom prompt is provided, it will be sent along with the user question.prompt
: If prompt
is set to "none"
, only the user question with no prompt is sent to the ai model- not recommended.Default Prompt:
If no prompt is provided, default prompt will be sent to the model along with the questions asked by client
1You are 10xAnswers, an intelligent and highly versatile chatbot. Your purpose is to assist users with precision, accuracy, and clarity...
Custom Prompt: You can specify your custom prompts here, every question of client will be sentto model along with this prompt
1User is sending a custom prompt about behavior. Prompt: ${prompt}. Question: ${question}. History: ${chatHistory}.
If you don't have a working backend you can directly use Google's Gemini API and pass it in the props, and send requests to the gemini directly from frontend. Not recommended as this exposes the api key to the users of your web app.
POST requests are sent to backend with the following payload:
1{ 2 "method": "POST", 3 "body": { 4 "contents": [{ 5 "parts": [{"text": "User question"}] 6 }] 7 } 8}
Development Caution:
jsx <ChatBot chatComponentStyle={{zIndex:1}}/>
Rajveer Singh
Found an issue? Open a GitHub Issue
Enjoying 10xAnswers? Consider starring the repository! ⭐
Start building smarter projects with 10xAnswers today! 🚀
No vulnerabilities found.
No security vulnerabilities found.