Skip to content

Commit a3a04f4

Browse files
perf: add bun support for faster development
- Add bun.lock for fast installs (~5s) - Use bun dev for direct TypeScript execution (<70ms startup) - Keep node for tests (better-sqlite3 native bindings) - Update README with bun-first instructions Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent 1b1d003 commit a3a04f4

File tree

3 files changed

+392
-13
lines changed

3 files changed

+392
-13
lines changed

README.md

Lines changed: 15 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -5,17 +5,18 @@
55
## Quick Start
66

77
```bash
8-
# Install
8+
# Install (bun recommended for speed)
99
git clone https://github.com/robotlearning123/nano-opencode.git
10-
cd nano-opencode && npm install && npm run build
10+
cd nano-opencode && bun install
1111

1212
# Set API key (choose one)
1313
export ANTHROPIC_API_KEY=your_key
1414
export OPENAI_API_KEY=your_key
1515
export GEMINI_API_KEY=your_key
1616

1717
# Run
18-
npm start
18+
bun dev # Development (fastest, no build)
19+
bun run build && bun start # Production
1920
```
2021

2122
## Features
@@ -135,18 +136,21 @@ src/
135136
## Development
136137

137138
```bash
138-
npm run dev # Development mode with hot reload
139-
npm test # Run tests (74 passing)
140-
npm run build # Build TypeScript
141-
npm run typecheck # Type check only
139+
bun dev # Run directly (no build needed)
140+
bun run test # Run tests (74 passing)
141+
bun run build # Build TypeScript
142+
bun run typecheck # Type check only
142143
```
143144

144145
## Stats
145146

146-
- **~7,000 lines** of TypeScript
147-
- **51 source files**
148-
- **74 tests** passing
149-
- **< 100ms** startup time
147+
| Metric | Value |
148+
|--------|-------|
149+
| Lines | ~7,000 TypeScript |
150+
| Files | 51 source files |
151+
| Tests | 74 passing |
152+
| Startup | <70ms (bun) |
153+
| Install | ~5s (bun) |
150154

151155
## License
152156

0 commit comments

Comments
 (0)