Introduction to Arky
Welcome to Arky
Section titled βWelcome to ArkyβArky is a developer-first platform for building modern web applications. Power your storefronts, booking systems, content sites, and newsletters with one unified TypeScript SDK.
What You Can Build
Section titled βWhat You Can BuildβWith Arky, you can quickly integrate:
π E-commerce Storefronts
Section titled βπ E-commerce StorefrontsβFetch products, build carts, process payments, and manage orders
const { items: products } = await sdk.eshop.getProducts({ status: 'ACTIVE', limit: 20 });const product = await sdk.eshop.getProduct({ id: 'prod_123' });const quote = await sdk.eshop.getQuote({ items: cartItems, currency: 'usd' });const result = await sdk.eshop.checkout({ items: cartItems, paymentMethod: 'CREDIT_CARD' });β See E-commerce Integration Guide
π Booking & Reservation Systems
Section titled βπ Booking & Reservation SystemsβList services, show availability, accept bookings with payments
const { items: services } = await sdk.reservation.getServices({ limit: 50 });const { items: providers } = await sdk.reservation.getProviders({ limit: 50 });const slots = await sdk.reservation.getAvailableSlots({ serviceId: 'svc_123', providerId: 'prov_456', from, to });const result = await sdk.reservation.checkout({ parts: [{ serviceId, providerId, startTime, endTime }] });β See Reservation Booking Guide
π Content-Driven Websites
Section titled βπ Content-Driven WebsitesβPull CMS content for blogs, pages, and multilingual sites
const collection = await sdk.cms.getCollection({ id: 'blog' });const { items: posts } = await sdk.cms.getCollectionEntries({ collectionId: 'blog', limit: 20 });const title = sdk.utils.getBlockTextValue(post.blocks.find(b => b.key === 'title'), 'en');β See CMS Content Integration Guide
π§ Newsletter Subscriptions
Section titled βπ§ Newsletter SubscriptionsβManage free and paid newsletter subscriptions with Stripe payments
const { items: newsletters } = await sdk.cms.getCollections({ type: 'NEWSLETTER' });await sdk.cms.subscribeToCollection({ collectionId, email, planId: 'plan_free' });β See Newsletter Integration Guide
Features Built-In
Section titled βFeatures Built-Inβ- π Authentication: Guest tokens, email/password, OAuth (Google), API keys
- π³ Payments: Stripe integration with multi-currency support
- π Multi-Market: Different pricing and taxes per region
- π¦ Media Management: S3-backed with automatic image optimization
- π Real-time: WebSocket support for live updates
Developer-First Documentation
Section titled βDeveloper-First DocumentationβThis documentation focuses on integration patterns - showing you exactly how to fetch data, build features, and integrate Arky into your applications.
Quick Navigation
Section titled βQuick NavigationβGetting Started
- Quick Start - SDK setup and first API calls
- SDK Usage Guide - Tokens, SSR/CSR, error handling
Integration Guides (Learn by building)
API Reference (When you need details)
Supported Frameworks
Section titled βSupported FrameworksβArky is fully headless and works with any JavaScript/TypeScript framework:
- Astro (SSR) - See arky.io for examples
- React / Next.js
- Vue / Nuxt
- Svelte / SvelteKit
- Vanilla JavaScript
How It Works
Section titled βHow It Worksβββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ Your Frontend ββ (Astro, React, Vue, Svelte, Next.js...) βββββββββββββββββββββββββββ¬βββββββββββββββββββββββββββββββββββββ β β TypeScript SDK (arky-sdk) β or REST API βββββββββββββββββββββββββββΌββββββββββββββββββββββββββββββββββββββ Arky Platform ββ ββ CMS β E-commerce β Reservations β Newsletter ββ ββ Auth β Payments β Media β Analytics β Search βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββYour app connects to Arky via:
- TypeScript SDK (
arky-sdk) for frontend apps - REST API (
api.arky.io) for any language/framework - Webhooks for real-time event notifications
Key Concepts
Section titled βKey ConceptsβBefore diving into the API reference, familiarize yourself with these core concepts:
- Business: Top-level tenant. Each business has its own data, users, roles, and configurations.
- Markets & Zones: Multi-region pricing and tax/shipping rules.
- Blocks: Typed fields for dynamic forms and structured content (think Notion-style blocks).
- Collections & Entries: CMS content is organized into collections (like content types) and entries (like posts/pages).
- Products & Variants: E-commerce catalog with multi-attribute variants and market-based pricing.
- Services & Providers: Reservation system entities (e.g., βHaircutβ service with multiple stylists as providers).
- Quotes & Checkout: Unified payment flow across e-shop and reservations with promo codes, shipping, and tax calculation.
Next Steps
Section titled βNext Stepsβ- Quick Start: Set up your first Arky project
- Core Concepts: Deep dive into key abstractions
- API Reference: Explore all endpoints
- SDK Usage Guide: Learn to use the TypeScript SDK