lucidchart-sdk-patterns
FeaturedSdk Patterns for Lucidchart. Trigger: "lucidchart sdk patterns".
AI & Automation 2,926 stars
433 forks Updated yesterday MIT
Install
Quality Score: 99/100
Stars 20%
Recency 20%
Frontmatter 20%
Documentation 15%
Issue Health 10%
License 10%
Description 5%
Skill Content
# Lucidchart SDK Patterns
## Overview
Lucid's REST API uses OAuth 2.0 with versioned `Lucid-Api-Version` headers to manage documents, pages, shapes, data-linked fields, and collaborative comments. A structured SDK client is essential because the API requires version negotiation on every request, returns deeply nested shape tree hierarchies, and enforces document-level locking for concurrent edits. These patterns provide OAuth token lifecycle management, typed shape and document models, fluent query building for filtered shape searches, and mock factories for diagramming test scenarios.
## Prerequisites
- Node.js 18+, TypeScript 5+
- `LUCID_CLIENT_ID` and `LUCID_CLIENT_SECRET` environment variables (OAuth 2.0 app credentials)
- `LUCID_ACCESS_TOKEN` or refresh token flow for per-user access
- `axios` or `node-fetch` for HTTP transport
## Singleton Client
```typescript
interface LucidConfig {
clientId: string;
clientSecret: string;
accessToken: string;
apiVersion?: string;
baseUrl?: string;
}
let client: LucidClient | null = null;
export function getLucidClient(overrides?: Partial<LucidConfig>): LucidClient {
if (!client) {
const config: LucidConfig = {
clientId: process.env.LUCID_CLIENT_ID ?? '',
clientSecret: process.env.LUCID_CLIENT_SECRET ?? '',
accessToken: process.env.LUCID_ACCESS_TOKEN ?? '',
apiVersion: '2',
baseUrl: 'https://api.lucid.co',
...overrides,
};
if (!config.accessToken) throw new Error('LUCID_AC...
Details
- Author
- jeremylongshore
- Repository
- jeremylongshore/claude-code-plugins-plus-skills
- Created
- 1 years ago
- Last Updated
- yesterday
- Language
- Python
- License
- MIT
Integrates with
Bundled in these plugins
Similar Skills
Semantically similar based on skill content — not just same category
AI & Automation Featured
lucidchart-security-basics
Security Basics for Lucidchart. Trigger: "lucidchart security basics".
2,926 Updated yesterday
jeremylongshore AI & Automation Featured
lucidchart-install-auth
Install and configure Lucidchart SDK/API authentication. Use when setting up a new Lucidchart integration. Trigger: "install lucidchart", "setup lucidchart", "lucidchart auth".
2,926 Updated yesterday
jeremylongshore AI & Automation Featured
lucidchart-reference-architecture
Reference Architecture for Lucidchart. Trigger: "lucidchart reference architecture".
2,926 Updated yesterday
jeremylongshore