@donotdev/core
v0.1.42
Published
DoNotDev Framework - Core package with all internal modules
Downloads
663
Maintainers
Readme
@donotdev/core
Core framework package for DoNotDev. This package bundles all internal framework modules into a single entry point.
What's Included
- Type definitions - TypeScript types and interfaces
- Utilities - Helper functions and common utilities
- Store management - Zustand store factory and patterns
- Schema validation - Valibot schema creation and validation
- Hooks - React hooks for framework initialization
- i18n - Internationalization utilities
Note: Provider packages (like @donotdev/firebase) are separate and should be imported directly when needed.
Installation
npm install @donotdev/core
# or
bun install @donotdev/coreLicense
MIT. See LICENSE.md.
Usage
Tree-shakeable Imports
import { createDoNotDevStore, useTranslation } from '@donotdev/core';
// Only imported code included in bundle
const myStore = createDoNotDevStore({
name: 'myStore',
createStore: (set, get) => ({ ... })
});Namespaced Imports
import { Stores, I18n } from '@donotdev/core';
const myStore = Stores.createDoNotDevStore({ ... });License
MIT. See LICENSE.md.
