A quiet rebellion against complexity – and a wish that building can still feel good.
Table of Contents
KoppaJS is a lightweight, modular frontend framework designed to simplify development without sacrificing flexibility. It provides a pragmatic approach to building modern web applications, focusing on:
- Simplicity: Minimal boilerplate and intuitive APIs.
- Performance: Optimized for speed and scalability.
- Modularity: Build only what you need, when you need it.
- Declarative Components: Define components with
.kpafiles. - Reactive State Management: Built-in reactivity for seamless updates.
- Lifecycle Hooks: Control component behavior with hooks like
mounted,updated, andbeforeUpdate. - Integration-Friendly: Works with existing tools and libraries.
- TypeScript Support: First-class TypeScript support for safer, more maintainable code.
The fastest way to start a new KoppaJS project:
pnpm create koppajs my-app
cd my-app
pnpm install
pnpm devThis scaffolds a ready-to-run project with Vite, TypeScript, and two sample components.
You can also use npm or npx:
npm create koppajs my-app
npx create-koppajs my-appIf you prefer to add KoppaJS to an existing project:
-
Install the core library and Vite plugin:
pnpm add @koppajs/koppajs-core pnpm add -D @koppajs/koppajs-vite-plugin
-
Create your first component:
import { Core } from '@koppajs/koppajs-core' Core.take( { state: { count: 0 }, methods: { increment() { this.state.count++ }, }, }, 'counter', ) Core()
-
Run your application: Use the KoppaJS Vite plugin to build and serve your app.
- 🌐 Official Website — koppajs.org with documentation, guides, and examples
- 🔌 Official Plugins
- Router
- Script Loader
- DSGVO / Cookie Consent Banner
- 🧩 Ecosystem Growth — Community plugins, starter templates, and integrations
- 💻 VS Code Extension — Syntax highlighting, IntelliSense, and tooling for
.kpafiles
For support, visit our GitHub Issues.
We welcome contributions! Check out our CONTRIBUTING.md for guidelines.
