This repository contains a collection of various applications powered by the OpenAI API, with backend support from a Bun server. Built with libraries like React.js and Vue.js, these serverless applications allow for backend replacement with your preferred server application.
このリポジトリには、OpenAI APIを活用したさまざまなアプリケーションのコレクションが含まれています。バックエンドのサポートはBunサーバーが提供し、React.jsやVue.jsなどのライブラリを使用して構築されています。これらのサーバーレスアプリケーションは、バックエンドをお好みのサーバーアプリケーションに置き換えることが可能です。
The main purpose of this repository is to serve as a coding exercise to learn more about Bun, as an alternative to Node.js.
The second purpose is to use this as sandbox in exploring different project ideas primarily those using OpenAI APIs.
The Bun server is a just simple HTTP server. It is the main workhorse that serves all the sample applications. The server needs to be running to provide backend services for the applications.
All applications are powered by OpenAI APIs unless stated otherwise. You can refer to the README for each project for more detailed descriptions.
- react-chatbot, a sample chatbot application, with streaming.
First, make sure to install Bun
npm install -g bun
See Bun installation page for more details.
To clone the repository and install the dependencies
bun create github.com/supershaneski/bun-openai myproject
cd myproject
bun install
This should install all dependencies for each package within the workspace.
To run the server
cd server
bun start
To run an application, from root directory
cd app_dir # application directory
bun start