1.0.0 ⢠Published 4 months ago
@tiger-framework/core v1.0.0
šÆ Tiger Framework
Tiger is a modern, lightweight web framework built on top of Bun that enables you to create beautiful, performant web applications with a simple and intuitive syntax.
⨠Features
- ā” Lightning Fast: Built on Bun for maximum performance and minimal overhead
- šØ Beautiful Design: Intuitive component system with built-in responsive design
- š ļø Developer Friendly: TypeScript support and great developer experience
- š± Responsive by Default: Automatic responsive design system for all components
- š Multi-Page Support: Built-in routing and multi-page application support
- šÆ Simple Syntax: JSX-like syntax that's easy to learn and use
š Quick Start
Prerequisites
- Bun installed on your system
Installation
# Clone the repository
git clone https://github.com/yourusername/tiger-framework.git
cd tiger-framework
# Install dependencies
bun install
Development
# Start the development server
bun run dev
# Build for production
bun run build
# Serve production build
bun run serve
š Usage
Creating a Component
Components in Tiger use a simple, JSX-like syntax:
const MyComponent = () => {
return (
<>
<view className="container">
<text as="h1">Hello Tiger!</text>
<text>Welcome to my component</text>
</view>
</>
);
};
export default MyComponent;
Built-in Elements
Tiger provides several built-in elements:
<view>
: Container element (renders as div)<text>
: Text element with optionalas
prop for semantic HTML<link>
: Navigation element<button>
: Interactive button element
Styling
Tiger uses class-based styling with automatic responsive design:
.container {
max-width: 1200px;
margin: 0 auto;
padding: 2rem;
}
Routing
Create pages in the src/pages
directory:
src/
pages/
page.tiger # Home page (/)
about/
page.tiger # About page (/about)
šļø Project Structure
tiger-framework/
āāā src/
ā āāā build/ # Build system
ā āāā dev/ # Development server
ā āāā pages/ # Application pages
ā āāā template.html # HTML template
ā āāā App.css # Global styles
āāā dist/ # Production build
āāā package.json
āāā README.md
š ļø Development Commands
bun run dev
: Start development serverbun run build
: Build for productionbun run serve
: Serve production buildbun run clean
: Clean build directory
š¤ Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
š License
This project is licensed under the MIT License - see the LICENSE file for details.
š Acknowledgments
- Built with Bun
- Inspired by React and modern web frameworks
1.0.0
4 months ago