create-hybrid 1.2.5 → 1.2.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.
Files changed (2) hide show
  1. package/README.md +39 -71
  2. package/package.json +3 -3
package/README.md CHANGED
@@ -1,98 +1,66 @@
1
- # create-hybrid
1
+ # Hybrid - Typescript Framework for building commerce-connected AI Agents.
2
2
 
3
- Create a new Hybrid XMTP agent project with a single command.
3
+ An open-source agent framework for building conversational AI agents on XMTP.
4
4
 
5
- ## Usage
5
+ Hybrid makes it easy for developers to create intelligent agents that can understand natural language, process messages, and respond through XMTP's decentralized messaging protocol.
6
6
 
7
- ```bash
8
- # Create a new project
9
- npx create hybrid my-agent
7
+ See [http://hybriddev.com](http://hybrid.dev) for more information.
8
+
9
+ ## 📦 Quickstart
10
+
11
+ Getting started with Hybrid is simple:
10
12
 
11
- # Create in current directory
12
- npx create hybrid .
13
+ ### 1. Initialize your project
13
14
 
14
- # Interactive mode (will prompt for name)
15
- npx create hybrid
15
+ ```bash
16
+ npm create hybrid my-agent
17
+ cd my-agent
16
18
  ```
17
19
 
18
- ## What it creates
20
+ This creates all the necessary files and configuration for your agent.
19
21
 
20
- This package creates a new Hybrid XMTP agent project with:
22
+ ### 2. Get your OpenRouter API key
23
+
24
+ Visit [OpenRouter](https://openrouter.ai/keys), create an account and generate an API key
21
25
 
22
- - **TypeScript configuration** - Ready-to-use TypeScript setup
23
- - **Agent template** - Pre-configured agent with OpenRouter integration
24
- - **Development scripts** - Build, dev, test, and lint commands
25
- - **Environment setup** - Template `.env` file with required variables:
26
+ Add it to your `.env` file:
26
27
 
27
28
  ```env
28
- # OpenRouter Configuration
29
- # Get your OpenRouter API key from https://openrouter.ai/keys
30
29
  OPENROUTER_API_KEY=your_openrouter_api_key_here
31
-
32
- # XMTP Wallet and Encryption Keys
33
- # Run 'npx hybrid keys' to generate these values
34
- XMTP_WALLET_KEY=your_wallet_key_here
35
- XMTP_ENCRYPTION_KEY=your_encryption_key_here
36
-
37
- # XMTP Environment (dev, production)
38
- XMTP_ENV=production
39
-
40
- # Server Configuration
41
- # PORT=8454
42
30
  ```
43
- - **Testing framework** - Vitest configuration for unit tests
44
31
 
45
- ## Project structure
32
+ ### 3. Generate XMTP keys
46
33
 
47
- ```
48
- my-agent/
49
- ├── src/
50
- │ ├── agent.ts # Main agent implementation
51
- │ └── agent.test.ts # Example tests
52
- ├── .env # Environment variables
53
- ├── .gitignore # Git ignore rules
54
- ├── package.json # Dependencies and scripts
55
- ├── tsconfig.json # TypeScript configuration
56
- ├── vitest.config.ts # Test configuration
57
- └── README.md # Project documentation
34
+ ```bash
35
+ hybrid keys
58
36
  ```
59
37
 
60
- ## Next steps
38
+ or automatically add it to your `.env` file:
61
39
 
62
- After creating your project:
63
-
64
- 1. **Install dependencies**
65
- ```bash
66
- cd my-agent
67
- npm install
68
- ```
40
+ ```bash
41
+ hybrid keys --write
42
+ ```
69
43
 
70
- 2. **Get your OpenRouter API key**
71
- - Visit [OpenRouter](https://openrouter.ai/keys)
72
- - Create an account and generate an API key
73
- - Add it to your `.env` file
44
+ ### 4. Register your wallet with XMTP
74
45
 
75
- 3. **Generate XMTP keys**
76
- ```bash
77
- npm run keys
78
- ```
46
+ ```bash
47
+ hybrid register
48
+ ```
79
49
 
80
- 4. **Start development**
81
- ```bash
82
- npm run dev
83
- ```
50
+ This generates secure wallet and encryption keys for your XMTP agent.
84
51
 
85
- ## Requirements
52
+ ### 5. Register your wallet with XMTP
86
53
 
87
- - Node.js 20 or higher
88
- - npm, yarn, or pnpm
54
+ ```bash
55
+ hybrid register
56
+ ```
89
57
 
90
- ## Related packages
58
+ ### 6. Start developing
91
59
 
92
- - [`hybrid`](../core) - The main Hybrid framework
93
- - [`@hybrd/cli`](../cli) - CLI tools for Hybrid development
94
- - [`@hybrd/xmtp`](../xmtp) - XMTP client integration
60
+ ```bash
61
+ hybrid dev
62
+ ```
95
63
 
96
- ## License
64
+ Your agent will start listening for XMTP messages and you're ready to build!
97
65
 
98
- MIT
66
+ Go to [https://xmtp.chat/dm/](https://xmtp.chat/dm/) and send a message to your agent.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-hybrid",
3
- "version": "1.2.5",
3
+ "version": "1.2.7",
4
4
  "description": "Create a new Hybrid XMTP agent project",
5
5
  "type": "module",
6
6
  "bin": {
@@ -24,8 +24,8 @@
24
24
  "@types/node": "22.8.6",
25
25
  "@types/prompts": "^2.4.9",
26
26
  "tsup": "^8.5.0",
27
- "@config/tsconfig": "0.0.0",
28
- "@config/biome": "0.0.0"
27
+ "@config/biome": "0.0.0",
28
+ "@config/tsconfig": "0.0.0"
29
29
  },
30
30
  "engines": {
31
31
  "node": ">=20"