velt-self-hosting-data-best-practices

Implement self-hosted storage of Velt collaboration data on your own infrastructure.

1|Updated Jan 23, 2026
One-click install
npx skills add https://github.com/velt-js/agent-skills --skill velt-self-hosting-data-best-practices-velt-js
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: velt-self-hosting-data-best-practices
Source: https://github.com/velt-js/agent-skills/tree/main/skills/velt-self-hosting-data-best-practices
Command: npx skills add https://github.com/velt-js/agent-skills --skill velt-self-hosting-data-best-practices-velt-js

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires velt-py, @veltdev/react, @aws-sdk/client-s3, and includes references (resource) components.

What problem does it solve? Teams using the Velt collaboration SDK often need to keep sensitive user-generated content (comments, attachments, reactions, recordings, user PII) on their own infrastructure instead of Velt servers, and misconfigured data providers cause silent failures, lost PII, or data leaking to the wrong destination. ## Core Features & Use Cases - Data Provider Configuration: Rules for wiring endpoint-based and function-based data providers on VeltProvider, with correct initialization ordering before authentication. - Backend Implementation Patterns: API route structure, MongoDB/PostgreSQL upsert and indexing patterns, and S3-compatible object storage for multipart attachment uploads. - Python SDK Integration: velt-py patterns for comments, attachments, users, reactions, token generation, and FastAPI/Flask/Django backends. - Use Case: A Next.js team must store comment text and file attachments in their own PostgreSQL and S3 for compliance; the skill guides them through VeltProvider dataProviders setup, multipart upload handling, and the required { data, success, statusCode } response contract. ## Quick Start Ask the agent to configure Velt self-hosting data providers so comments and attachments are stored in your own database and S3 bucket.

Frequently Asked Questions about velt-self-hosting-data-best-practices

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I self-host Velt comments data on my own server?▼

Configure a comment data provider on VeltProvider using either endpoint-based config (URLs the SDK calls automatically) or function-based resolvers (get, save, delete callbacks). Your backend must return the standard { data, success, statusCode } response format for every operation.

Endpoint-based vs function-based Velt data providers: which should I use?▼

Use endpoint-based config when you have standard REST endpoints and want the SDK to handle HTTP requests and retries. Use function-based resolvers when you need custom transformations, multi-system writes, conditional routing, or non-REST backends.

Why are my Velt attachment uploads failing silently?▼

Attachment saves use multipart/form-data encoding, not JSON like other providers, so a backend expecting JSON receives an undefined file. Do not set the Content-Type header manually, and ensure the save response includes { data: { url } } pointing to the stored file.

Can I use the Velt Python SDK without a database?▼

Yes. Initialize VeltSDK with only apiKey and authToken to use sdk.api.* services, which call Velt REST APIs directly with no MongoDB required. The database config is only needed for sdk.selfHosting.* operations.

Why does Velt self-hosting not work with setDocument?▼

Self-hosting only works with setDocuments (plural), not setDocument (singular). Data providers must also be registered on VeltProvider via the dataProviders prop before authentication, otherwise data flows to Velt servers instead of your infrastructure.

What response format do Velt data provider handlers require?▼

Every handler must return { data, success, statusCode }. Missing fields or wrong names like 'status' instead of 'statusCode' cause the SDK to treat the response as a failure and trigger retries.