rn-ai 0.0.8 → 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/README.md +3 -3
  2. package/cli.js +11 -9
  3. package/package.json +1 -1
package/README.md CHANGED
@@ -2,19 +2,19 @@
2
2
 
3
3
  Full stack mobile framework for building cross-platform mobile AI apps supporting image processing, real-time / streaming text and chat UIs, and image uploads with multiple service providers.
4
4
 
5
- ![React Native AI](rnaiheader.png)
5
+ ![React Native AI](https://raw.githubusercontent.com/dabit3/react-native-ai/main/rnaiheader.png?token=GHSAT0AAAAAACBYUBA6SWS42HLQGMVX6J7UZLDIQQQ)
6
6
 
7
7
  ## Features
8
8
 
9
9
  - LLM support for [OpenAI](https://openai.com/) ChatGPT, [Anthropic](https://anthropic.com) Claude, [Cohere](https://cohere.com/) and Cohere Web
10
+ - An array of image models provided by [Fal.ai](https://www.fal.ai/)
10
11
  - Image processing with [ByteScale](https://bytescale.com/)
11
12
  - Real-time / streaming responses from all providers
12
- - An array of image models provided by [Fal.ai](https://www.fal.ai/)
13
13
  - OpenAI Assistants including code interpreter and retrieval
14
14
  - Server proxy to easily enable authentication and authorization with auth provider of choice.
15
15
  - Theming (comes out of the box with 4 themes) - easily add additional themes with just a few lines of code.
16
16
 
17
- ![React Native AI Preview](screenzzz.png)
17
+ ![React Native AI Preview](https://raw.githubusercontent.com/dabit3/react-native-ai/main/screenzzz.png?token=GHSAT0AAAAAACBYUBA6Y53GTKQE3JVD4BK4ZLDIRHA)
18
18
 
19
19
  ## Usage
20
20
 
package/cli.js CHANGED
@@ -157,48 +157,50 @@ FAL_API_KEY="${fal_api_key}"
157
157
 
158
158
  process.chdir(path.join(process.cwd(), `${appName}/server`))
159
159
  spinner.text = ''
160
- let startCommand = ''
160
+ let serverStartCommand = ''
161
161
 
162
162
  if (isBunInstalled()) {
163
163
  spinner.text = 'Installing server dependencies'
164
164
  await execaCommand('bun install').pipeStdout(process.stdout)
165
165
  spinner.text = ''
166
- startCommand = 'bun dev'
166
+ serverStartCommand = 'bun dev'
167
167
  console.log('\n')
168
168
  } else if (isYarnInstalled()) {
169
169
  await execaCommand('yarn').pipeStdout(process.stdout)
170
- startCommand = 'yarn dev'
170
+ serverStartCommand = 'yarn dev'
171
171
  } else {
172
172
  spinner.text = 'Installing server dependencies'
173
173
  await execa('npm', ['install', '--verbose']).pipeStdout(process.stdout)
174
174
  spinner.text = ''
175
- startCommand = 'npm run dev'
175
+ serverStartCommand = 'npm run dev'
176
176
  }
177
177
 
178
178
  process.chdir('../')
179
179
  process.chdir(path.join(process.cwd(), `app`))
180
180
 
181
181
  spinner.text = ''
182
- startCommand = ''
182
+ let appStartCommand = ''
183
183
 
184
184
  if (isBunInstalled()) {
185
185
  spinner.text = 'Installing app dependencies'
186
186
  await execaCommand('bun install').pipeStdout(process.stdout)
187
187
  spinner.text = ''
188
- startCommand = 'bun dev'
188
+ appStartCommand = 'bun start'
189
189
  console.log('\n')
190
190
  } else if (isYarnInstalled()) {
191
191
  await execaCommand('yarn').pipeStdout(process.stdout)
192
- startCommand = 'yarn dev'
192
+ appStartCommand = 'yarn start'
193
193
  } else {
194
194
  spinner.text = 'Installing app dependencies'
195
195
  await execa('npm', ['install', '--verbose']).pipeStdout(process.stdout)
196
196
  spinner.text = ''
197
- startCommand = 'npm run dev'
197
+ appStartCommand = 'npm start'
198
198
  }
199
199
  spinner.stop()
200
+ process.chdir('../')
200
201
  log(`${green.bold('Success!')} Created ${appName} at ${process.cwd()} \n`)
201
- log(`To get started, change into the new directory and run ${chalk.cyan(startCommand)}`)
202
+ log(`To get started, change into the server directory and run ${chalk.cyan(serverStartCommand)}\n`)
203
+ log(`In a separate terminal, change into the app directory and run ${chalk.cyan(appStartCommand)}`)
202
204
  } catch (err) {
203
205
  console.log('eror:', err)
204
206
  log('\n')
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rn-ai",
3
- "version": "0.0.8",
3
+ "version": "0.1.0",
4
4
  "description": "Full stack mobile framework for building cross-platform mobile AI apps supporting image processing, real-time / streaming text and chat UIs, and image uploads with multiple service providers.",
5
5
  "type": "module",
6
6
  "bin": "cli.js",