self-hosting बिना PocketBase चाहिए? hosted JSON store plus auth

अगर आपने PocketBase alternative without self-hosting खोजा है, तो आपको काम करते कोड से सार्वजनिक URL तक का सबसे छोटा और भरोसेमंद रास्ता चाहिए — सर्वर खड़े किए बिना, विशाल क्लाउड डैशबोर्ड सीखे बिना, या एक भी उपयोगकर्ता मिलने से पहले क्रेडिट कार्ड दर्ज किए बिना। यह गाइड बताती है कि jsdeck के साथ ठीक यही कैसे करें, trade-offs क्या हैं, और कब कोई दूसरा टूल वास्तव में बेहतर विकल्प है। हम इसे व्यावहारिक रखेंगे: असली कदम, असली कमांड, और ईमानदार चेतावनियाँ।
jsdeck datastore वास्तव में क्या है
यह per-app JSON key-value store है। हर record में string key, arbitrary JSON value, filtering के लिए तीन optional string index columns (idx1–idx3), और updatedAt timestamp होता है। आप static frontend से सीधे छोटे REST API पर, या @jsdeck/toolkit npm client से read/write करते हैं। आपको run, patch, या scale करने के लिए server नहीं।
PocketBase alternative without self-hosting के लिए यह क्यों मायने रखता है
ज़्यादातर prototypes को Postgres नहीं चाहिए। उन्हें settings object save, high score persist, submissions list store, या user का last action याद रखना होता है। JSON store sweet spot hit करता है: data app state जैसा shape रखता है, full database के schema, migration, या connection-pool ceremony के बिना।
modes और access control
datastore दो modes में चलता है। public_read में anyone records read कर सकता है लेकिन writes के लिए store_ key चाहिए। private में reads और writes दोनों key चाहिए। PUT requests per IP rate-limited हैं। key non-sensitive app data के लिए shared secret है — client-side code में real secrets कभी न रखें।
Example: JSON save और load
// Save
await fetch('https://jsdeck.com/api/v1/public/data/YOUR-SLUG/records/settings', {
method: 'PUT',
headers: {
'Authorization': 'Bearer store_YOUR_KEY',
'Content-Type': 'application/json',
},
body: JSON.stringify({ value: { theme: 'dark', lang: 'en' } }),
});
// Load
const res = await fetch('https://jsdeck.com/api/v1/public/data/YOUR-SLUG/records/settings');
const { value } = await res.json();
owner rows के साथ per-user data
हर visitor का अपना private data चाहिए? datastore को visitor auth के साथ combine करें। visitor login के बाद session token मिलता है; visibility: "owner" के साथ record write करें और वह row सिर्फ उस user readable/writable हो जाती है। store_ key alone read नहीं कर सकती। gated demos और simple per-user apps full backend बिना possible बनाता है।
कब fit नहीं
data model के बारे में ईमानदार रहें। datastore relational data joins, schema migrations, या transactions के लिए सही tool नहीं; realtime subscriptions, server-side functions/triggers, full-text search, या file/blob storage नहीं देता। query model "key plus up to three string indexes (AND-combined)" है, arbitrary SQL नहीं। वे चाहिए तो Postgres/Supabase या full backend लें।
यह किसके लिए है, और jsdeck कब न उपयोग करें
अच्छा fit: static frontends, single-page apps, demos, portfolios, MVPs, AI-generated exports, और ऐप्स जिन्हें थोड़ी JSON persistence या lightweight visitor login चाहिए।
fit नहीं: ऐप्स जिन्हें long-running Node server, request time पर server-side rendering, WebSocket backends, private server-side secrets, background jobs, या full relational database चाहिए। उनके लिए हमारे comparisons hub में चर्चा किए गए विकल्प बेहतर काम करेंगे — और यह जानबूझकर चुनने की विशेषता है, compromise नहीं।
अक्सर पूछे जाने वाले प्रश्न
क्या PocketBase alternative without self-hosting वास्तव में मुफ़्त है?
हाँ। jsdeck इस तरह के प्रोजेक्ट्स के लिए HTTPS के साथ मुफ़्त static hosting देता है, शुरू करने के लिए क्रेडिट कार्ड की ज़रूरत नहीं। datastore और visitor auth जैसी वैकल्पिक सुविधाएँ जब चाहिए तब उपलब्ध हैं।
क्या datastore use करने के लिए server चाहिए?
नहीं। datastore hosted REST API है जिसे static frontend से directly call करते हैं। run, scale, या patch करने के लिए कुछ नहीं।
हर user का data private कैसे रखूँ?
visitor auth use करें और visibility: "owner" records write करें। वे rows सिर्फ owner token से accessible हैं, shared datastore key से नहीं।
अगले कदम
- datastore hub में और गाइड देखें
- अपना पहला ऐप deploy करने के लिए getting started guide अपनाएँ
- datastore, secure accounts (auth API), और CLI deploy details के लिए developer docs पढ़ें