Skip to main content

TypeScript/JavaScript Archetypes

Comprehensive collection of modern TypeScript and JavaScript archetypes for building scalable, performant, and maintainable web applications across all major frameworks.

Overview

Our TypeScript/JavaScript archetype ecosystem provides production-ready templates for every major frontend framework and architectural pattern. From single-page applications to micro-frontends, each archetype is designed with modern development practices, type safety, and enterprise requirements in mind.

Available Archetypes

Angular Basic

Modern Angular 17+ application with TypeScript, comprehensive tooling, and enterprise-ready architecture.

IntermediateAngularEnterpriseSPA

Svelte Basic

Modern Svelte application with TypeScript, reactive programming, and optimized build pipeline.

IntermediateSvelteReactivePerformance

Vue.js Basic

Modern Vue.js 3 application with TypeScript, Composition API, and comprehensive development tooling.

IntermediateVue.jsComposition APIPinia

Modern.js MFE App Static

Modern.js micro frontend application with Module Federation, TypeScript, and containerized deployment.

AdvancedMicro FrontendModule FederationModern.js

Modern.js MFE Shell

Modern.js shell application for orchestrating micro frontends with Module Federation and dynamic loading.

AdvancedShellOrchestrationDynamic Loading

Nuxt.js Basic

Modern Nuxt.js 3 application with TypeScript, server-side rendering, and full-stack capabilities.

IntermediateNuxt.jsSSRUniversal

JavaScript Front-End

NX-based monorepo for multiple frontend applications with React, Angular, Vue.js support and modern tooling.

AdvancedMonorepoNXMulti-Framework

Next.js Applications

Next.js Basic

Full-Stack React

Modern Next.js application with App Router, TypeScript, Tailwind CSS, and comprehensive tooling setup.

Next.js 14App RouterTypeScript

Perfect for full-stack applications with SSR/SSG requirements

Angular Applications

Angular Basic

Enterprise Framework

Enterprise Angular application with standalone components, signals, modern CLI, and comprehensive architecture.

Angular 17StandaloneSignals

Ideal for large-scale enterprise applications

Vue.js Applications

Vue.js Basic

Composition API

Modern Vue.js application with Composition API, TypeScript, Vite, and comprehensive development tooling.

Vue 3Composition APIVite

Great for progressive web applications and SPAs

Nuxt.js Applications

Nuxt.js Basic

Vue Meta-Framework

Full-stack Nuxt.js application with auto-imports, file-based routing, and server-side capabilities.

Nuxt 3NitroAuto-imports

Perfect for content sites and full-stack Vue applications

Svelte Applications

Svelte Basic

Compile-time Framework

Modern SvelteKit application with TypeScript, file-based routing, and optimized build output.

SvelteKitViteTypeScript

Excellent for performance-critical applications

Micro-Frontend Architecture

Micro-Frontend Shell

Module Federation

Modern.js-based micro-frontend shell with Module Federation for scalable distributed frontend architectures.

Modern.jsModule FederationReact

Essential for large-scale distributed frontend teams

NX Monorepo

Comprehensive NX monorepo with multiple apps, shared libraries, and advanced development tooling.

NXStorybookMultiple Apps

Perfect for organizations with multiple frontend applications

Framework Comparison

FeatureNext.jsAngularVue.jsNuxt.jsSvelteNX Monorepo
Learning CurveModerateHighLowModerateLowHigh
PerformanceExcellentGoodExcellentExcellentExcellentVaries
Enterprise ReadyYesExcellentGoodGoodGoodExcellent
SSR/SSGNativeLimitedPluginNativeNativeConfigurable
Type SafetyExcellentNativeGoodGoodGoodExcellent
CommunityLargeLargeLargeGrowingGrowingDeveloper Tools

Key Features

Modern Development Experience

  • TypeScript: First-class TypeScript support across all archetypes
  • Hot Reload: Fast development with instant feedback
  • ESLint & Prettier: Consistent code formatting and linting
  • Husky & lint-staged: Pre-commit hooks for quality control

Build & Deployment

  • Vite/Webpack: Modern build tools optimized for development and production
  • Tree Shaking: Automatic dead code elimination
  • Code Splitting: Automatic route-based and component-based splitting
  • Docker Ready: Container configurations for all archetypes

Testing & Quality

  • Jest/Vitest: Unit testing with excellent TypeScript support
  • Testing Library: Component testing with best practices
  • Playwright/Cypress: End-to-end testing capabilities
  • Coverage Reports: Comprehensive test coverage analysis

Production Features

  • Performance Monitoring: Built-in performance tracking
  • Bundle Analysis: Tools to analyze and optimize bundle size
  • Progressive Enhancement: Works without JavaScript when possible
  • Accessibility: WCAG compliance and screen reader support

Architecture Patterns

Development Workflow

Setup Process

  1. Generate Project: Use Archetect to generate from archetype
  2. Install Dependencies: Automatic dependency installation
  3. Development Server: Start with hot reload enabled
  4. Code & Test: Write code with immediate feedback

Quality Gates

  • Pre-commit: Lint, format, and type check
  • CI/CD: Automated testing and deployment
  • Code Review: Built-in review workflows
  • Performance: Bundle size and runtime monitoring

Getting Started

Prerequisites

  • Node.js 18+ (LTS recommended)
  • npm, yarn, or pnpm
  • Your preferred IDE with TypeScript support

Quick Start

# Install Archetect CLI
npm install -g @archetect/archetect

# Generate a Next.js application
archetect render git@github.com:p6m-archetypes/typescript-nextjs-basic.archetype.git my-app
cd my-app

# Install dependencies and start development
npm install
npm run dev

Framework-Specific Commands

# Angular
ng serve

# Vue.js
npm run dev

# Nuxt.js
npm run dev

# Svelte
npm run dev

# NX Monorepo
npx nx serve my-app

Best Practices

Code Organization

  • Use feature-based folder structure
  • Implement proper separation of concerns
  • Create reusable components and utilities
  • Follow framework-specific conventions

Performance

  • Implement lazy loading for routes and components
  • Optimize images and assets
  • Use proper caching strategies
  • Monitor Core Web Vitals

Accessibility

  • Use semantic HTML elements
  • Implement proper ARIA attributes
  • Test with screen readers
  • Ensure keyboard navigation

Security

  • Sanitize user inputs
  • Implement Content Security Policy
  • Use HTTPS everywhere
  • Regular dependency updates

Micro-Frontend Strategy

For large organizations, our micro-frontend archetypes provide:

  • Independent Development: Teams can work autonomously
  • Technology Diversity: Different frameworks in the same application
  • Incremental Migration: Gradually migrate legacy applications
  • Scalable Architecture: Handle multiple teams and applications

Support and Resources

  • Framework Documentation: Links to official framework docs
  • Community Examples: Real-world implementation examples
  • Migration Guides: Upgrading and migration assistance
  • Performance Monitoring: Built-in analytics and monitoring

Choose the archetype that best fits your team's expertise and project requirements. All archetypes are production-ready and follow industry best practices.