arielle-js
v0.1.1
Published
CLI for ArielleJS - Your OpenAPI companion
Maintainers
Readme
ArielleJS
ArielleJS is a powerful CLI tool that helps you understand and work with OpenAPI specifications using natural language processing.
Features
- Parse OpenAPI specifications
- Interactive command-line interface
- Natural language processing for API documentation
- Vector-based search for API endpoints
- Multi-intent query processing
- Support for various LLM providers (Gemini, more coming soon!)
Installation
# Install globally
npm install -g arielle-js
# Or use with npx
npx arielle-jsQuick Start
Start ArielleJS:
arielle startChoose your preferred LLM provider (currently Gemini is the most tested option)
Enter your LLM API key when prompted
Provide the path to your OpenAPI specification file (YAML format)
Wait for the OpenAPI spec to be processed and inserted into the local ChromaDB database
Start asking questions about your API in natural language!
Example Usage with Stripe API
Here are some examples of how you can interact with the Stripe API using Arielle:
Basic Queries
How do I create a new customer?
What are the available payment methods?
Show me how to process a refund.Complex Workflows
How do I create a subscription with a trial period?
What's the process for handling a disputed charge?
Show me how to set up a webhook for payment failures.Multi-Intent Queries
How do I fetch all customers, then add a one-off charge for each?
List all active subscriptions and then cancel the most expensive one.Schema Exploration
What fields are available when creating a charge?
Show me the schema for the Customer object.
What are the possible values for a payment intent status?Tips
- Be as specific as possible with your questions
- You can ask follow-up questions based on previous answers
- The system understands context, so you can refer to previous parts of the conversation
- For complex operations, the system will break them down into multiple steps automatically
Development
Prerequisites
- Node.js 20+
- npm 9+
Setup
- Clone the repository
- Install dependencies:
npm install - Build the project:
npm run build - Link the package for local development:
npm link
Scripts
npm run build- Compile TypeScript to JavaScriptnpm run dev- Run in development mode using ts-nodenpm run lint- Run ESLintnpm run format- Format code with Prettier
License
ISC
