svelte-sharepoint-starter Svelte Themes

Svelte Sharepoint Starter

Svelte + SharePoint starter codebase

Svelte + SharePoint Starter

Version: Alpha 1.0.0
Status: In Active Development

A production-ready Svelte 5 meta-framework for building web applications on SharePoint 2013 on-premises. Accelerate development with battle-tested patterns, offline-first development, and type-safe SharePoint integration.


✨ Key Features

  • šŸš€ Offline-first development - Build on localhost with mock data, deploy to SharePoint seamlessly
  • šŸ”’ 100% type-safe - TypeScript + Zod schemas from database to UI
  • šŸŽÆ Provider pattern - Abstract data layer switches between mock/SharePoint automatically
  • šŸ“¦ Batteries included - Error handling, analytics, routing, state management built-in
  • šŸ”§ SharePoint expertise - Handles FormDigest, LookUp columns, pagination, quirks
  • šŸ“š Comprehensive docs - 13 detailed guides covering every aspect
  • ⚔ Modern stack - Svelte 5 (runes), Vite, TailwindCSS v4, shadcn-svelte

šŸš€ Quick Start

# Install dependencies
pnpm install

# Start development server
pnpm dev

# Build for production
pnpm build

# Type check
pnpm check

First time? Read the Getting Started Guide


šŸ“š Documentation

Comprehensive guides available in public/assets/docs/:

Essential Reading

Development Guides

šŸ“– Full Documentation Index


šŸ—ļø Project Structure

src/
ā”œā”€ā”€ lib/
│   ā”œā”€ā”€ common-library/          # ⭐ Reusable across projects
│   │   ā”œā”€ā”€ integrations/        # SharePoint, analytics, errors, router
│   │   └── utils/               # String, date, file helpers
│   ā”œā”€ā”€ data/                    # šŸŽÆ App-specific
│   │   ā”œā”€ā”€ schemas.ts           # Zod schemas
│   │   ā”œā”€ā”€ types.ts             # TypeScript types
│   │   ā”œā”€ā”€ local-data.ts        # Mock data
│   │   └── data-providers/      # Provider factory
│   ā”œā”€ā”€ env/                     # āš™ļø Configuration
│   │   └── sharepoint-config.ts # Lists, paths, schemas
│   └── components/ui/           # šŸ“¦ Third-party UI (shadcn)
└── routes/                      # šŸ“„ Application pages
    ā”œā”€ā”€ index.svelte             # Home
    ā”œā”€ā”€ stories/                 # Story list & detail
    ā”œā”€ā”€ admin/                   # Dashboard with charts
    └── docs/                    # Documentation viewer

šŸŽÆ Use Cases

Perfect for teams that need to:

āœ… Build multiple SharePoint-hosted applications with consistent patterns
āœ… Develop offline without SharePoint connection
āœ… Onboard new developers quickly with working examples
āœ… Maintain type safety from database to UI
āœ… Share common utilities across projects
āœ… Deliver high-quality apps faster


šŸ› ļø Tech Stack

  • Framework: Svelte 5 (runes-only)
  • Build: Vite (Rolldown)
  • Styling: TailwindCSS v4
  • UI Components: shadcn-svelte, bits-ui
  • Validation: Zod
  • Charts: LayerChart
  • Backend: SharePoint 2013 REST API
  • Development: Mock data provider with session persistence

šŸ¤ Contributing

This is a simple starter codebase. When making improvements:

  1. Maintain layer separation - common-library stays generic
  2. Update docs - Keep guides in sync with code changes
  3. Add JSDoc comments - Help others understand your patterns
  4. Test with mock data - Verify changes work offline
  5. Run pnpm check - Ensure type safety before committing

šŸ“ž Support

Contact: sateesh.modukuru@gmail.com


Ready to build? Start with the Getting Started Guide →

Top categories

Loading Svelte Themes