Build experiences, not boilerplate.
A lightweight, declarative, JavaScript-native client framework for building reactive, realtime, collaborative, and offline-capable applications.
Design with HTML. Extend with JavaScript. Build without unnecessary complexity.
CoCreate Client is an open-source JavaScript framework that transforms standard HTML into interactive, data-driven applications through a declarative HTML Attribute API and a complementary headless JavaScript API.
Instead of spending time writing repetitive state management, DOM manipulation, form handlers, data bindings, network requests, and synchronization logic, developers can describe application behavior directly in HTML.
CoCreate Client allows developers to focus on what matters most: design, accessibility, functionality, and user experience.
Build websites, dashboards, CRMs, ERPs, CMS platforms, e-commerce applications, website builders, collaborative editors, internal tools, PWAs, and AI-assisted interfaces using familiar web technologies.
One framework. Two interfaces. Unlimited possibilities.
- Why CoCreate Client?
- Quick Start
- Core Philosophy
- Two Ways to Build
- Declarative HTML Attribute API
- Headless JavaScript API
- Unified Data Model
- Reactive Data Binding
- Forms and Data Management
- Realtime Synchronization
- Offline-First Applications
- Collaborative Applications
- Components and Rendering
- Events and Actions
- Modular Architecture
- Performance and Lazy Loading
- Progressive Enhancement
- Framework Interoperability
- Accessibility and SEO
- Application Use Cases
- Architecture
- Development Philosophy
- Getting Started
- Contributing
- Community
- License
Modern frontend development often requires developers to learn and maintain multiple layers of abstraction before building an interface.
A relatively simple application may require:
- A component framework
- State management
- Form management
- Data fetching
- Data synchronization
- Client-side routing
- Event handling
- DOM manipulation
- Realtime communication
- Local storage
- Offline caching
- Build configuration
- Supporting libraries
Each additional layer introduces complexity, dependencies, maintenance requirements, and opportunities for bugs.
CoCreate Client approaches frontend development differently.
HTML already describes the interface. JavaScript already provides the programming language. The browser already provides the platform.
CoCreate Client builds upon these native technologies instead of replacing them.
The framework provides reusable browser capabilities that can be activated through HTML attributes or invoked directly through JavaScript.
A realtime input may require:
- Creating application state.
- Binding state to an input.
- Listening for changes.
- Updating local state.
- Validating the value.
- Sending a network request.
- Handling errors.
- Synchronizing remote changes.
- Updating other connected interfaces.
<input array="users" object="123" key="name" save />The markup declares the data relationship and desired behavior.
The appropriate CoCreate modules handle the underlying operations.
The developer remains free to customize the interface, behavior, styling, and application logic.
| Traditional Development | CoCreate Client |
|---|---|
| Imperative event handlers | Declarative HTML attributes |
| Manual DOM updates | Reactive rendering |
| Repetitive form logic | Attribute-driven forms |
| Custom data binding | Shared data conventions |
| Manual realtime integration | Reusable synchronization modules |
| Custom offline handling | IndexedDB and Service Worker integration |
| Framework-specific component patterns | Native HTML and reusable components |
| Multiple disconnected abstractions | Consistent JavaScript primitives |
| Application logic coupled to rendering | Headless and declarative interfaces |
Less repetitive code. More time building the experience.
Start using CoCreate Client by including the browser script.
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>My CoCreate Application</title>
</head>
<body>
<h1>Welcome to CoCreate Client</h1>
<input
array="users"
object="123"
key="name"
placeholder="Enter your name"
save />
<script src="https://cdn.cocreate.app/latest/CoCreate.min.js"></script>
</body>
</html>CoCreate Client enhances standard HTML with application behavior.
No JSX is required.
No custom template language is required.
No mandatory build step is required for the browser-script approach.
You can begin with HTML and progressively introduce JavaScript whenever needed.
GitHub: https://github.com/CoCreateJS/client
CoCreate Client is built around several fundamental principles.
HTML provides a standardized, accessible, browser-native way to describe interfaces.
CoCreate Client extends HTML with declarative application behavior rather than introducing a replacement language.
Developers should not need to learn a new programming language to build applications.
CoCreate Client uses JavaScript objects, arrays, events, promises, modules, and native browser APIs.
Declarative HTML is ideal for describing interfaces and common behaviors.
JavaScript is ideal for custom logic, advanced integrations, and programmatic control.
Both interfaces should operate on the same underlying capabilities.
Data should not be unnecessarily coupled to a particular component or rendering mechanism.
The same data can power forms, dashboards, lists, collaborative editors, and other interfaces.
Applications should be able to integrate realtime synchronization, local persistence, and offline functionality without rebuilding their architecture.
Applications should not need to download an entire ecosystem when they only use a small subset of its capabilities.
CoCreate Client is designed around modularity and lazy loading.
CoCreate Client embraces:
- HTML
- CSS
- JavaScript
- DOM APIs
- Web Components
- Events
- Promises
- ES Modules
- WebSockets
- IndexedDB
- Service Workers
- Browser storage
- Progressive Web Apps
The goal is to extend the web platform, not hide it.
CoCreate Client provides two complementary development interfaces.
Define behavior directly through HTML attributes.
<input array="customers" object="123" key="email" save />Use the underlying JavaScript capabilities directly.
This allows developers to build custom interfaces, integrate with existing frameworks, and execute application behavior without requiring CoCreate-specific HTML.
A developer can:
- Build an application primarily with HTML.
- Build an application primarily with JavaScript.
- Combine HTML attributes with custom JavaScript.
- Integrate individual CoCreate modules into another framework.
- Use CoCreate's data and synchronization capabilities without adopting its rendering patterns.
The HTML Attribute API is an interface to the framework—not a limitation on how the framework can be used.
The HTML Attribute API is one of CoCreate Client's defining capabilities.
It allows developers to attach application behavior to standard HTML elements.
Instead of creating custom component syntax, CoCreate Client uses attributes to describe relationships, actions, data, and rendering behavior.
<input array="users" object="123" key="firstName" save /><form array="users" object>
<input key="firstName" placeholder="First name" />
<input key="lastName" placeholder="Last name" />
<input key="email" type="email" />
<button type="submit">Save</button>
</form><div array="users" render>
<div>
<h3 key="name"></h3>
<p key="email"></p>
</div>
</div>These examples illustrate the declarative model; the specific modules required for each behavior must be available in the application.
HTML attributes provide several advantages:
Readable
The behavior is visible directly on the element.
Inspectable
Developers can inspect application behavior through standard browser developer tools.
Composable
Multiple capabilities can be combined on the same element.
Framework-independent
The attributes operate on browser elements rather than requiring a particular rendering framework.
Progressive
Developers can begin with simple HTML and introduce more advanced functionality over time.
AI-friendly
Structured HTML attributes provide a predictable interface for generating and modifying application behavior.
CoCreate Client does not require developers to abandon standard HTML.
The goal is to make existing HTML more capable.
Declarative HTML is only one interface to CoCreate Client.
The underlying modules expose JavaScript capabilities that can be used independently of the HTML Attribute API.
This is especially valuable when building:
- Custom components
- Programmatic interfaces
- Complex interactions
- Advanced data workflows
- Framework integrations
- Reusable application libraries
- Automated interfaces
- AI-generated application behavior
CoCreate Client favors familiar JavaScript concepts.
const object = {
firstName: "Jane",
lastName: "Doe",
email: "jane@example.com"
};
const array = [object];
const key = "email";
const value = object[key];The same concepts appear throughout CoCreate's data model.
Developers work with familiar structures rather than learning a completely different vocabulary.
CoCreate modules can use native browser APIs directly.
const element = document.querySelector("input");
element.addEventListener("input", (event) => {
console.log(event.target.value);
});CoCreate Client is intended to complement these APIs, not replace every native browser capability with a proprietary abstraction.
A JavaScript operation can update data consumed by declarative interfaces.
A declarative action can invoke functionality implemented in JavaScript.
Both approaches participate in the same application environment.
CoCreate Client uses a consistent vocabulary for addressing application data.
The core concepts include:
| Concept | Purpose |
|---|---|
array |
Identifies a logical collection of objects |
object |
Identifies or represents an object |
key |
Identifies a property within an object |
index |
Identifies a position or indexed reference |
value |
Represents the data associated with a key |
filter |
Describes how data should be selected |
on |
Describes event-driven behavior |
emit |
Describes event or action emission |
These concepts align with JavaScript's native object and array structures.
const users = [
{
_id: "123",
name: "Jane Doe",
email: "jane@example.com"
}
];A declarative binding might reference:
<input array="users" object="123" key="email" />The attribute structure communicates which data the element represents.
CoCreate's data conventions support nested property paths.
For example:
const user = {
profile: {
contact: {
email: "jane@example.com"
}
}
};A nested property can be represented through dot notation:
<input array="users" object="123" key="profile.contact.email" />Developers should not have to learn unrelated naming conventions for every capability.
The same conceptual model can be used across:
- Forms
- Rendering
- State
- Data binding
- Realtime synchronization
- Offline storage
- Application actions
- Custom modules
This reduces cognitive overhead and encourages reusable functionality.
Reactive interfaces update in response to changing data.
CoCreate Client provides the foundation for connecting application data with DOM elements.
<input array="products" object="123" key="name" save />The element declares the data it represents.
When the appropriate binding and synchronization modules are active, changes can be propagated between the interface and the underlying data.
An application may display the same information in several places:
- An editable form
- A summary card
- A dashboard
- A table
- A detail panel
A shared data model allows these interfaces to remain consistent without requiring each component to independently implement the same synchronization logic.
CoCreate Client does not require every value to be represented through framework-specific component state.
Instead, it provides reusable data and DOM capabilities that can operate across ordinary HTML elements.
Forms are a fundamental part of most applications.
CoCreate Client simplifies common form operations by associating form elements with structured application data.
<form array="customers" object>
<label>
First Name
<input key="firstName" required />
</label>
<label>
Last Name
<input key="lastName" required />
</label>
<label>
Email
<input key="email" type="email" required />
</label>
<button type="submit">Save Customer</button>
</form>The modular client ecosystem can support:
- Form serialization
- Data binding
- Validation
- Save actions
- Data updates
- Reusable form behavior
- Asynchronous operations
- Error handling
- Realtime updates
- Offline persistence
Native HTML features remain useful:
<input type="email" required />
<input type="number" min="0" max="100" />
<input type="date" />
<select>
<option value="active">Active</option>
<option value="inactive">Inactive</option>
</select>CoCreate Client builds on browser functionality rather than requiring developers to recreate it.
Realtime applications need to propagate changes between connected interfaces.
CoCreate Client includes modules and integration patterns for realtime communication and synchronization.
Examples include:
- Collaborative editors
- Messaging interfaces
- Live dashboards
- Customer management systems
- Shared administrative tools
- Activity feeds
- Project management applications
- Multiplayer interfaces
- Live notifications
A data-bound interface identifies the information it represents.
<input array="projects" object="123" key="title" save />When connected to a compatible realtime data service, the client can participate in synchronization without requiring every element to implement its own networking logic.
Realtime functionality should not require application interfaces to manage low-level transport details individually.
Communication modules can provide reusable abstractions over WebSockets and other supported communication mechanisms.
Realtime synchronization is not limited to forms.
It can also support:
- Lists
- Tables
- Documents
- Dashboards
- Shared state
- Collaborative components
Reliable applications should account for unstable or unavailable network connections.
CoCreate Client is designed to support offline-capable application experiences using native browser technologies.
IndexedDB provides persistent structured storage within the browser.
CoCreate modules can use IndexedDB to support:
- Local application data
- Cached records
- Offline reads
- Pending changes
- Synchronization
- Local-first interactions
Service Workers can support:
- Asset caching
- Offline application loading
- Network request interception
- Background-oriented browser functionality where supported
- Progressive Web App behavior
A typical offline-capable application may follow this lifecycle:
User opens application
|
v
Load cached application assets
|
v
Read available local data
|
v
User interacts with interface
|
v
Store pending changes locally
|
v
Network becomes available
|
v
Synchronize pending changes
|
v
Update local application state
The exact synchronization strategy depends on the enabled modules and backend integration.
Offline support is valuable for:
- Mobile applications
- Field service tools
- Remote work
- Travel applications
- Retail systems
- Collaborative tools
- Unreliable network environments
The objective is to keep applications useful even when connectivity is imperfect.
Collaboration introduces challenges beyond ordinary data fetching.
Multiple users may interact with the same information simultaneously.
CoCreate Client's modular architecture supports collaborative application experiences through shared state and synchronization capabilities.
- Document editing
- Website builders
- Visual editors
- Shared dashboards
- Project management
- Team workspaces
- Form collaboration
- Content management
- Realtime chat
Depending on the modules used, collaborative applications can incorporate:
- Realtime updates
- Shared application state
- Concurrent editing
- Change propagation
- Conflict-handling strategies
- User presence
- Synchronization with persistent storage
Collaborative text editing may require more sophisticated conflict resolution than ordinary object updates.
CoCreate's broader client ecosystem can support specialized collaboration logic, including CRDT-based approaches where appropriate.
The goal is to make collaboration a reusable application capability rather than a completely separate application architecture.
CoCreate Client supports component-oriented interface development without requiring every component to use a proprietary JavaScript rendering language.
HTML remains the primary interface description.
<article class="customer-card">
<h2 key="name"></h2>
<p key="email"></p>
</article>Reusable components can combine:
- HTML structure
- CSS styling
- Declarative attributes
- JavaScript behavior
- Data bindings
- Events
- Rendering logic
<div array="customers" render>
<article>
<h3 key="name"></h3>
<p key="email"></p>
</article>
</div>This illustrates how data relationships and rendering behavior can be described through HTML.
CoCreate Client aims to avoid unnecessary rendering work.
Browser-native mechanisms can be used to observe changes and update only the relevant interface elements.
The browser provides useful primitives including:
MutationObserverIntersectionObserverResizeObserver
These can support:
- DOM change detection
- Lazy initialization
- Visibility-based behavior
- Responsive component updates
- Dynamic content enhancement
CoCreate Client works with standard DOM elements.
Developers retain access to:
document.querySelector();
document.querySelectorAll();
element.setAttribute();
element.getAttribute();
element.addEventListener();
element.dispatchEvent();The framework should make DOM development easier, not prevent developers from using the DOM directly.
Events are a natural way to coordinate application behavior.
CoCreate Client builds upon browser event concepts and reusable action patterns.
const button = document.querySelector("button");
button.addEventListener("click", (event) => {
console.log("Button clicked", event);
});CoCreate's declarative conventions allow behavior to be associated with elements through attributes.
This makes it possible to describe actions in markup while keeping their implementations reusable.
Application operations can be represented as structured data.
For example, an application may describe a request using a JavaScript object:
const payload = {
execute: "db.object.read",
array: "customers",
object: {
_id: "123"
}
};This is an illustrative structured action payload.
The client can hand such operations to compatible modules and services without requiring application code to manually implement every underlying transport or execution detail.
Structured actions are:
- Serializable
- Inspectable
- Reusable
- Easy to compose
- Suitable for automation
- Compatible with declarative interfaces
- Suitable for AI-assisted generation
The client remains responsible for user-facing interaction, while the appropriate module or service handles execution.
CoCreate Client is designed as a modular JavaScript ecosystem.
Applications can use the capabilities they need without requiring every available module.
Independent modules
Capabilities can be developed and maintained independently.
Shared conventions
Modules use consistent naming and data structures.
Composable behavior
Multiple modules can cooperate within the same application.
Lazy loading
Modules can be loaded when required.
Native JavaScript
Modules integrate with browser APIs and standard JavaScript.
Progressive adoption
Developers can introduce CoCreate functionality into existing applications incrementally.
The client ecosystem can include capabilities for:
- Data binding
- CRUD interactions
- Rendering
- Forms
- Events
- Actions
- State
- Components
- Realtime communication
- Synchronization
- IndexedDB
- Service Workers
- Files
- Uploads
- Navigation
- Collaboration
- UI interactions
- Application utilities
Not every application needs every category.
A simple landing page might use only basic interaction and rendering modules.
A CRM may use forms, CRUD, tables, realtime synchronization, and offline storage.
A website builder may combine rendering, components, drag-and-drop interactions, collaborative editing, and persistent data.
The framework scales in capability according to application needs.
Performance is an important design consideration for CoCreate Client.
The framework aims to provide substantial functionality while minimizing unnecessary initial JavaScript.
Historical client size targets have been approximately:
| Configuration | Approximate Size |
|---|---|
| Initial client runtime | 70 KB |
| Complete lazy-loaded ecosystem | 410 KB |
These figures are project targets or historical estimates, not verified measurements of the current release. Actual sizes depend on the build, enabled modules, and compression method.
Modules can be loaded only when their functionality is required.
This reduces unnecessary work during initial application startup.
- Small initial payload
- Modular loading
- Efficient DOM operations
- Reusable data bindings
- Reduced repetitive event handling
- Browser-native APIs
- Minimal unnecessary dependencies
- Efficient synchronization
- Local caching
- Progressive initialization
A small JavaScript bundle is useful, but runtime performance also depends on:
- DOM operations
- Rendering frequency
- Network activity
- Memory consumption
- Event handling
- Data access
- Synchronization overhead
- Application architecture
CoCreate Client aims to improve performance across the complete application lifecycle.
CoCreate Client embraces progressive enhancement.
Developers can begin with standard HTML and add functionality incrementally.
<form>
<label>
Email
<input type="email" required />
</label>
<button type="submit">Save</button>
</form><form array="customers" object>
<label>
Email
<input key="email" type="email" required />
</label>
<button type="submit">Save</button>
</form>document.querySelector("form").addEventListener("submit", (event) => {
console.log("Form submitted", event);
});Developers can adopt CoCreate features without abandoning standard web development.
Existing HTML applications can introduce CoCreate functionality where it provides value.
The entire interface does not need to be rewritten into a new component format.
CoCreate Client is designed to work with native web technologies and can be integrated with applications using other frontend frameworks.
Potential integration environments include:
- React
- Vue
- Angular
- Svelte
- Solid
- Web Components
- Vanilla JavaScript
- Server-rendered HTML
- Static websites
- Custom frontend frameworks
Applications can consume CoCreate modules programmatically without adopting the declarative HTML API.
Applications can also use CoCreate attributes on compatible DOM elements.
When combining CoCreate DOM behavior with another framework, developers should coordinate ownership of DOM updates to avoid conflicting rendering operations.
CoCreate Client does not require developers to replace their existing frontend stack to benefit from individual modules.
CoCreate Client encourages the use of semantic HTML and native browser behavior.
Standard HTML elements already provide important accessibility capabilities.
<label for="customer-email"> Email Address </label>
<input
id="customer-email"
type="email"
array="customers"
object="123"
key="email"
required />Developers can continue using:
- Semantic elements
- Labels
- Keyboard navigation
- Native form controls
- ARIA attributes
- Focus management
- Accessible error messages
Declarative application behavior should complement accessibility rather than replace it.
CoCreate Client can enhance HTML documents without requiring the entire interface to originate from client-side JavaScript rendering.
Applications can use:
- Semantic HTML
- Server-rendered content
- Static HTML
- Progressive enhancement
- Metadata
- Search-friendly document structures
Search visibility still depends on the application's rendering and content-delivery strategy.
CoCreate Client is not limited to a specific category of application.
Its modular capabilities can be combined to build many kinds of interfaces.
Build responsive websites with reusable components, interactive content, forms, and dynamic rendering.
Create visual editing environments with reusable components, declarative behavior, and persistent application data.
Allow users to compose interfaces, data relationships, and actions through structured configuration and HTML.
Build CRMs with:
- Customer records
- Contact forms
- Realtime updates
- Dashboards
- Data tables
- Offline-capable interfaces
- Collaborative workflows
Build ERP interfaces for managing operational data, business processes, reporting, and administrative tools.
Create CMS interfaces with:
- Content editing
- Data-driven rendering
- Reusable components
- Media handling
- Collaborative content management
Build product catalogs, administrative interfaces, customer portals, carts, and checkout integrations.
Create dashboards with live data, filters, interactive controls, and realtime updates.
Build shared project boards, task lists, collaboration interfaces, and team workspaces.
Create interfaces that support shared editing, synchronization, and reusable collaboration capabilities.
Use structured HTML, reusable actions, and declarative configuration to build AI-assisted interfaces.
AI can generate or modify application structures using standard web technologies rather than requiring a proprietary frontend language.
Combine browser storage, Service Workers, caching, and responsive interfaces to create installable, offline-capable web applications.
Build administrative applications with forms, data management, tables, dashboards, and reusable actions.
Create responsive, touch-friendly applications that use native browser capabilities and progressive enhancement.
CoCreate Client is organized around reusable browser capabilities rather than a single monolithic rendering system.
Application
|
+-- HTML Attribute API
|
+-- Headless JavaScript API
|
v
CoCreate Client Modules
|
+-- Components
+-- Rendering
+-- Data Binding
+-- Forms
+-- Events
+-- Actions
+-- State
+-- CRUD Integration
+-- Realtime Communication
+-- Offline Storage
+-- Collaboration
|
v
Native Browser APIs
|
+-- DOM
+-- Events
+-- Fetch
+-- WebSockets
+-- IndexedDB
+-- Service Workers
+-- Browser Storage
This is a conceptual architecture rather than a literal source-directory map.
HTML attributes describe behavior.
JavaScript modules expose functionality directly.
Modules implement reusable browser functionality.
Structured application data connects interfaces, actions, and synchronization.
The browser provides the underlying platform.
Prefer standard HTML, CSS, JavaScript, and browser APIs.
Build reusable capabilities that can work together without requiring one enormous framework abstraction.
Use terminology aligned with JavaScript:
- Array
- Object
- Key
- Index
- Value
- Event
- Action
Application behavior should be reusable across different interfaces.
Developers should be able to express common functionality without writing repetitive JavaScript.
Declarative simplicity should not prevent developers from implementing advanced custom behavior.
Use native browser capabilities where they provide an appropriate foundation.
Developers should be able to use one module, several modules, or the broader ecosystem.
HTML attributes and structured actions should make application behavior easier to understand, debug, and maintain.
Shared data and synchronization should be reusable capabilities.
Applications should be able to incorporate local persistence and synchronization where needed.
Structured application definitions are easier for both humans and AI systems to inspect, generate, modify, and validate.
Create an index.html file.
<script src="https://cdn.cocreate.app/latest/CoCreate.min.js"></script><input
array="users"
object="123"
key="name"
placeholder="Enter your name"
save />Use ordinary HTML and CSS.
<style>
body {
font-family: system-ui, sans-serif;
max-width: 720px;
margin: 4rem auto;
padding: 1rem;
}
input {
display: block;
width: 100%;
padding: 0.75rem;
margin-top: 0.5rem;
}
</style>Add modules for:
- Forms
- Rendering
- Data
- Realtime synchronization
- Offline storage
- Collaboration
- Components
- Custom interactions
Data persistence and remote synchronization require an appropriately configured data service.
https://github.com/CoCreateJS/client
CoCreate Client is an open-source project.
Contributions are welcome across:
- Core JavaScript modules
- Declarative HTML capabilities
- Performance improvements
- Browser compatibility
- Accessibility
- Documentation
- Examples
- Testing
- Developer tooling
- Offline functionality
- Realtime synchronization
- Collaboration features
When contributing, favor:
- Native browser capabilities where practical.
- Small, reusable modules.
- Consistent JavaScript naming conventions.
- Declarative and programmatic interoperability.
- Minimal unnecessary dependencies.
- Backward-compatible improvements where possible.
- Clear documentation and examples.
- Efficient DOM and memory usage.
For repository-specific contribution instructions, consult the project's contributing documentation.
CoCreate Client is part of the broader CoCreateJS open-source project.
The client focuses on browser-side application development and can be used independently.
CoCreate Client
https://github.com/CoCreateJS/client
CoCreateJS Organization
https://github.com/CoCreateJS
For project information, collaboration, and general inquiries:
Email: info@cocreatejs.com
Refer to the LICENSE file in the repository for the applicable license terms.
Frontend development should not require endless layers of abstraction to create useful applications.
CoCreate Client brings application behavior closer to the interface through declarative HTML while preserving the full flexibility of JavaScript.
Build with HTML.
Extend with JavaScript.
Connect data.
Synchronize in realtime.
Work offline.
Collaborate.
Create reusable components.
Integrate with existing frameworks.
Focus on the experience. Let the framework handle the repetition.
CoCreate Client — Declarative HTML. Native JavaScript. Limitless creativity.