Skip to content

2BAD/micrograd

Folders and files

NameName
Last commit message
Last commit date

Latest commit

3e17f0a Β· Mar 17, 2025

History

30 Commits
Feb 3, 2025
Feb 3, 2025
Feb 6, 2025
Feb 3, 2025
Feb 3, 2025
Feb 3, 2025
Feb 3, 2025
Feb 3, 2025
Feb 3, 2025
Feb 3, 2025
Feb 3, 2025
Feb 3, 2025
Feb 3, 2025
Mar 17, 2025
Mar 17, 2025
Feb 3, 2025
Feb 3, 2025
Feb 3, 2025

Repository files navigation

TypeScript Library Starter

A modern, zero-config template for building high-quality TypeScript libraries. Built with ESM-first architecture and powered by SWC for blazing-fast compilation, this starter kit provides everything you need to create, test, and publish professional TypeScript packages.

✨ Key Features

  • ⚑️ Lightning-Fast Build Pipeline

    • SWC-powered compilation for rapid development cycles
    • Optimized TypeScript configuration with path aliases
    • Streamlined build process with parallel execution
  • πŸ” Comprehensive Quality Tools

    • Biome for fast, consistent code formatting and linting
    • Extensive ESLint configuration for code quality (powered by axiom)
    • Integrated test runner with coverage reporting
  • πŸ“¦ Modern Package Development

    • ESM-first architecture
    • Automatic type declaration generation
    • Properly configured package exports
    • GitHub Actions workflow ready
  • πŸ›  Developer Experience

    • Zero configuration needed to get started
    • Type-safe development with strict TypeScript settings
    • Hot-reloading test environment with Vitest
    • Automated version management and publishing

Getting Started

  1. Click "Use this template" on GitHub
  2. Clone your new repository
  3. Search and replace the following:
    • ts-lib-starter β†’ your package name
    • 2BAD β†’ your name/organization (except @2bad/tsconfig references)
  4. Run npm install
  5. Start developing!

Available Scripts

# Development
npm run test        # Run all tests
npm run test:unit   # Run unit tests with coverage
npm run build       # Build the library
npm run check       # Run all code quality checks

# Maintenance
npm run fix         # Auto-fix all code style issues
npm run fix:format  # or just the format code with Biome

Package Structure

β”œβ”€β”€ source/         # Source code
β”œβ”€β”€ tests/          # Test files
β”œβ”€β”€ build/          # Compiled output (generated)
└── package.json    # Package configuration

Why Use This Template?

  • Performance First: SWC compilation is significantly faster than traditional TypeScript compilation
  • Modern Standards: Built with current best practices and modern JavaScript features
  • Quality Focused: Comprehensive testing and linting setup ensures high-quality code
  • Production Ready: Includes all necessary configurations for building and publishing packages
  • Actively Maintained: Regular updates to dependencies and features

Requirements

  • Node.js >= 20
  • npm >= 10.8.3

License

MIT Β© 2BAD


This template is part of the @2bad ecosystem of development tools.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published