@feltdb/core 0.4.6 → 0.4.7

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.
@@ -125,7 +125,51 @@ async function promptForOptions(defaults) {
125
125
  async function main() {
126
126
  const args = process.argv.slice(2);
127
127
  if (args.includes('--help') || args.includes('-h')) {
128
- console.log(`create-feltdb ${FELTDB_PACKAGE_VERSION}\n\nUsage: create-feltdb [project-name] [options]\n\nOptions:\n --runtime <browser|node|self-hosted>\n --framework <react|vanilla>\n --no-distributed\n --no-agents\n --capabilities <list>\n --no-install\n --no-start\n -y, --yes\n -h, --help\n --version`);
128
+ console.log(`create-feltdb ${FELTDB_PACKAGE_VERSION}
129
+
130
+ Create a new FeltDB application with one command.
131
+
132
+ Usage:
133
+ create-feltdb [project-name] [options]
134
+
135
+ Examples:
136
+ create-feltdb my-app
137
+ create-feltdb my-app --runtime browser --framework react
138
+ create-feltdb my-app --yes --no-start
139
+
140
+ Runtime Options:
141
+ --runtime browser Local-first with durable browser storage (OPFS)
142
+ Best for: Client-side apps, offline-first experiences
143
+
144
+ --runtime node Node.js application server or worker
145
+ Best for: Server-side applications, API servers
146
+
147
+ --runtime self-hosted Dedicated FeltDB server instance
148
+ Best for: Production deployments, multi-user systems
149
+ Note: Requires Docker (image: ghcr.io/rkendel1/feltdb)
150
+
151
+ Options:
152
+ --runtime <runtime> Set application runtime (default: browser)
153
+ --framework <framework> Choose framework: react or vanilla (default: react)
154
+ --no-distributed Disable distributed operation
155
+ --no-agents Exclude agent examples
156
+ --capabilities <list> Choose capabilities: search, vector, or search,vector
157
+ --no-install Skip npm install
158
+ --no-start Skip npm run dev
159
+ -y, --yes Use all defaults (non-interactive mode)
160
+ -h, --help Show this help message
161
+ --version Show version number
162
+
163
+ Vector Search:
164
+ Vector search requires additional dependencies and setup. If you choose
165
+ "Search + vector search" during setup, make sure to review the documentation
166
+ for configuring your vector database connection.
167
+
168
+ Environment Variables:
169
+ FELTDB_IMAGE Override the default self-hosted container image
170
+ NODE_ENV Set to 'development' or 'production'
171
+
172
+ Learn more: https://github.com/rkendel1/feltdb`);
129
173
  return;
130
174
  }
131
175
  if (args.includes('--version')) {
@@ -152,8 +196,13 @@ async function main() {
152
196
  console.log('\n✨ Creating FeltDB Application\n');
153
197
  if (!shouldAutoYes) {
154
198
  options = await promptForOptions(options);
199
+ const runtimeDescriptions = {
200
+ 'browser': 'Local-first with browser storage',
201
+ 'node': 'Node.js server runtime',
202
+ 'self-hosted': 'Dedicated FeltDB server',
203
+ };
155
204
  console.log('\nConfiguration:');
156
- console.log(` Runtime: ${options.runtime}`);
205
+ console.log(` Runtime: ${options.runtime} (${runtimeDescriptions[options.runtime]})`);
157
206
  console.log(` Framework: ${options.framework}`);
158
207
  console.log(` Distributed: ${options.distributed ? 'yes' : 'no'}`);
159
208
  console.log(` Agents: ${options.agents ? 'yes' : 'no'}`);