From lark
Use when working with Lark.sh — a real-time serverless database platform. Covers the Lark CLI, data API, project management, security rules, and best practices.
How this skill is triggered — by the user, by Claude, or both
Slash command
/lark:larkThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Lark is a real-time serverless database. Data is stored as a JSON tree, accessed via REST or WebSocket, with security rules. It is drop-in compatible with Firebase Realtime Database, so you can apply your knowledge of working with Firebase to Lark as well for things like security rules, data patterns, etc. Each project gets a unique hostname (`{project}.larkdb.net`) for data operations.
Lark is a real-time serverless database. Data is stored as a JSON tree, accessed via REST or WebSocket, with security rules. It is drop-in compatible with Firebase Realtime Database, so you can apply your knowledge of working with Firebase to Lark as well for things like security rules, data patterns, etc. Each project gets a unique hostname ({project}.larkdb.net) for data operations.
Key concepts:
users, chat)/, /users/alice)The docs for Lark and the Lark JS SDK are located at https://docs.lark.sh.
An LLM-friendly summary of the docs is located at https://docs.larksh.com/llms.txt A full LLM-friendly dump of the docs is located at https://docs.larksh.com/llms-full.txt
If you are starting a new project in Lark and want to work with the SDK, start by reading the docs.
@lark-sh/cli)Install: npm install -g @lark-sh/cli
If the user hasn't yet created an account on Lark, they should do so on https://dashboard.lark.sh before proceeding with the CLI tool. After account creation, everything else can be done via the Lark CLI.
lark login # Authenticate via browser (Google OAuth)
lark config set-project my-app # Set default project
lark data get mydb / # Read the whole database
| Flag | Description |
|---|---|
--json | Machine-readable JSON output |
--project <id> | Override the default project |
lark login # Log in via browser, saves session to ~/.lark/config.json
lark logout # Clear session
lark whoami # Show current user (name + email)
lark config set-project <id> # Set default project (verified against API)
lark config show # Show current config
Config is stored at ~/.lark/config.json (mode 0600). Contains: session token, default project, cached admin tokens.
lark projects list # List all projects
lark projects create "My App" # Create (name -> slug ID)
lark projects show [id] # Show details + secret key
lark projects update [id] --name "New Name" # Update settings
lark projects update [id] --ephemeral true # Enable ephemeral mode
lark projects update [id] --auto-create true # Auto-create databases
lark projects update [id] --firebase-compat true # Firebase compatibility
lark projects delete [id] --confirm <id> # Delete (REQUIRES --confirm)
lark projects regenerate-secret [id] # New secret key (invalidates old)
Project settings:
ephemeral — databases are temporaryauto_create — databases created on first accessfirebase_compat_enabled — Firebase wire-protocol compatibilityfirebase_project_id — Firebase project ID for compat modelark databases list # List databases (alias: lark db list)
lark databases list --search "chat" # Filter by ID
lark databases list --limit 10 --offset 5 # Pagination
lark databases create <id> # Create a database
lark databases delete <id> # Delete a database
Data is a JSON tree. Paths start with /. The root / is the entire database.
# Read
lark data get <database> <path>
# Write (overwrite)
lark data set <database> <path> '<json>'
lark data set mydb / '{"key": "value"}' --confirm # Root requires --confirm!
# Merge (partial update)
lark data update <database> <path> '<json>'
# Append with auto-generated key
lark data push <database> <path> '<json>'
# Delete
lark data delete <database> <path>
# Stdin support (use "-" as value)
cat data.json | lark data set mydb /path -
# Export
lark data export <database> [path]
lark data export mydb / -o backup.json
# Import (overwrites)
lark data import <database> [path] -f <file>
lark data import mydb -f backup.json --confirm # Root requires --confirm!
# Real-time watch (SSE stream)
lark data watch <database> <path>
Safety: set and import to path / require --confirm because they replace the entire database.
lark rules get [id] # Print current rules
lark rules set [id] -f rules.json # Set rules from file
echo '{"rules":{".read":true}}' | lark rules set # Set via stdin
Rules use Firebase-style JSON5 syntax controlling .read and .write at each path.
lark dashboard [id] # Metrics overview
lark dashboard --start 2026-02-01 --end 2026-02-15 # Custom date range
lark events [id] # Database events log
lark events --limit 50 # Paginated
lark billing [id] # Current billing period
lark billing --period 2026-01 # Specific month
Dashboard shows: CCU, peak CCU, bandwidth in/out, reads/writes, permission denials, avg latency, recent events.
Direct HTTP access to database data at https://{project}.larkdb.net.
URL format: https://{project}.larkdb.net/{database}{path}.json?v=2&auth={token}
| Method | Operation |
|---|---|
GET | Read data at path |
PUT | Set (overwrite) data at path |
PATCH | Update (merge) data at path |
POST | Push (append with auto key) |
DELETE | Delete data at path |
Authentication: Pass an admin token via ?auth={token} query parameter. Tokens are JWTs signed with the project's admin secret (HS256), requested via POST /projects/{id}/admin-token.
SSE streaming: GET with Accept: text/event-stream header opens a real-time stream of changes.
lark data export mydb / -o backup.json
lark data import mydb -f backup.json --confirm
lark data set mydb /users/alice '{"name": "Alice", "role": "admin"}'
lark data set mydb /users/bob '{"name": "Bob", "role": "user"}'
lark data watch mydb /messages --json | while read -r line; do
echo "$line" | jq '.data'
done
PROJECT_ID=$(lark projects create "CI Test" --json | jq -r '.id')
lark --project "$PROJECT_ID" databases create test-db --json
lark --project "$PROJECT_ID" data set test-db / '{"ready": true}' --confirm --json
my-app)sk_live_ + 64 hex charactersnpx claudepluginhub lark-sh/lark-skill --plugin larkManages Databricks Lakebase Postgres: creates autoscaling projects, branching, compute scaling, PostgreSQL connectivity, Data API, and synced tables. For Lakebase databases, OLTP storage, or app connections to Databricks Postgres.
Manages InsForge backend and cloud infrastructure via CLI: projects, SQL, migrations, RLS policies, functions, storage, deployments, compute, secrets, config, schedules, logs, diagnostics, import/export, AI/OpenRouter setup, Stripe/Razorpay payments, and backend branches.
Guides raw HTTP API integration with CloudBase platform for Android, iOS, Flutter, React Native, non-Node backends, and admin scripts. Not for SDK or MCP flows.