Build |
with brightstack

Brightstack provides developers with the tools and cloud infrastructure to gather, store, and use data to power lightning-fast data products using Postgres-style SQL and their language of choice.

curl -fsSl https://get.brightstack.ai/install | bash
> curl -fsSl https://get.brightstack.ai/install | bash
bright CLI was installed successfully to ~/.brightstack/bin/bright!
> bright login
Opening your browser at: https://app.brightstack.ai/cli-auth?redirectUrl=http%3A%2F%2Flocalhost%3A3000%2Flogin
🚀 Successfully logged in!
> bright engine create --name dev --type medium
🚀 Engine created!
ID: eng_3Mc2WnRgKVw7D7Yb
name: dev
status: STOPPED
type: medium
enabled: true
> bright engine list
IDNameStatus
eng_3Mc2WnRgKVw7D7Ybdevrunning
> bright sql run --engine dev 'SELECT 1;'
1 (INTEGER)
1
> bright quickstart
We'll get you rock and rolling in no time! 💪
Opening Quickstart Guide...
Quick Start

Get Started in Minutes

Get your data pipeline up and running in minutes, not weeks.

> curl -fsSl https://get.brightstack.ai/install | bash
Lightning Fast
<1ms
Analytical Queries
High Performance
1,000+
Queries Per Second
Cost Efficient
50%+
less expensive than big name data platforms
Developer Experience

Code. Push. Load. Amaze 🤘

Code data-intensive applications as easy as any web app. Deploy to production in minutes. Scale to whatever.

npm i @brightstack/client
dw.ts
1
2
3
4
5
6
7
8
9
import { brightstack } from "@brightstack/client";

const dw = brightstack({
  apiKey: "MY_API_KEY",
  engine: "production",
  database: "myapp",
});

export default dw;
usage.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
import dw from "./dw";

// Create a new database
await dw.sql("CREATE DATABASE hits;");

// Use the database
await dw.sql("USE hits;");

// Simple query
const result = await dw.sql("SELECT * FROM users LIMIT 10;");
// Result: [{ id: 'usr_d78as6bg', name: 'Bob' }]

// Create a table and insert data
await dw.sql(` CREATE TABLE products ( id INTEGER PRIMARY KEY, name VARCHAR, price DECIMAL(10,2) ); `);

await dw.sql(` INSERT INTO products VALUES (1, 'Laptop', 999.99), (2, 'Mouse', 29.99), (3, 'Keyboard', 79.99); `);

// Query the data
const products = await dw.sql(` SELECT COUNT(*) as total FROM products; `);

console.log(products);
// [{ total: '3' }]

Questions? We've got answers

Answers to the most frequently asked questions.