Skip to content

Commit a9494e5

Browse files
committed
add readme
1 parent aa2c3e6 commit a9494e5

File tree

1 file changed

+48
-0
lines changed

1 file changed

+48
-0
lines changed

README.md

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
# @beekeeperstudio/plugin
2+
3+
A TypeScript wrapper library for building Beekeeper Studio plugins that enables communication between your plugin and the main application.
4+
5+
## Installation
6+
7+
```bash
8+
npm install @beekeeperstudio/plugin
9+
```
10+
11+
## Quick Start
12+
13+
```typescript
14+
import { request, notify } from '@beekeeperstudio/plugin';
15+
16+
// Get all tables in the current database
17+
const tables = await request('getTables');
18+
19+
// Run a SQL query
20+
const result = await request('runQuery', { query: 'SELECT * FROM users LIMIT 10' });
21+
```
22+
23+
## TypeScript Support
24+
25+
The library includes comprehensive TypeScript definitions:
26+
27+
```typescript
28+
import type {
29+
QueryResult,
30+
ThemeType,
31+
GetTablesResponse
32+
} from '@beekeeperstudio/plugin';
33+
```
34+
35+
## Development
36+
37+
```bash
38+
# Build the library
39+
npm run build
40+
41+
# Prepare for publishing
42+
npm run prepublishOnly
43+
```
44+
45+
## License
46+
47+
MIT - see [LICENSE](LICENSE) file for details.
48+

0 commit comments

Comments
 (0)