@float.js/core 2.0.6 → 2.0.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +90 -0
  2. package/package.json +3 -3
package/README.md ADDED
@@ -0,0 +1,90 @@
1
+ # Float.js ⚡
2
+
3
+ > Ultra Modern Web Framework for React
4
+
5
+ Float.js is a blazing-fast, full-stack React framework with file-based routing, server-side rendering, and an exceptional developer experience.
6
+
7
+ ## Features
8
+
9
+ - ⚡ **HMR Ultra Rápido** - Hot Module Replacement instantáneo con WebSockets
10
+ - 📁 **File-based Routing** - Rutas automáticas basadas en estructura de carpetas
11
+ - 🖥️ **SSR** - Server-Side Rendering integrado
12
+ - 📡 **API Routes** - Crea APIs con archivos `route.ts`
13
+ - 🤖 **AI Ready** - Soporte nativo para streaming con OpenAI/Anthropic
14
+ - 📊 **Dev Dashboard** - Panel de desarrollo en `/__float`
15
+
16
+ ## Quick Start
17
+
18
+ ```bash
19
+ # Create a new project
20
+ npx create-float my-app
21
+ cd my-app
22
+
23
+ # Or install in existing project
24
+ npm install @float.js/core react react-dom
25
+
26
+ # Start development server
27
+ npx float dev
28
+ ```
29
+
30
+ ## Project Structure
31
+
32
+ ```
33
+ my-app/
34
+ ├── app/
35
+ │ ├── page.tsx → /
36
+ │ ├── about/
37
+ │ │ └── page.tsx → /about
38
+ │ ├── blog/
39
+ │ │ └── [slug]/
40
+ │ │ └── page.tsx → /blog/:slug
41
+ │ └── api/
42
+ │ └── hello/
43
+ │ └── route.ts → /api/hello
44
+ ├── public/
45
+ └── package.json
46
+ ```
47
+
48
+ ## Pages
49
+
50
+ Create React components in the `app/` directory:
51
+
52
+ ```tsx
53
+ // app/page.tsx
54
+ export default function Home() {
55
+ return <h1>Welcome to Float.js!</h1>
56
+ }
57
+ ```
58
+
59
+ ## API Routes
60
+
61
+ Create API endpoints with `route.ts` files:
62
+
63
+ ```ts
64
+ // app/api/hello/route.ts
65
+ export function GET(request: Request) {
66
+ return Response.json({ message: 'Hello from Float!' })
67
+ }
68
+
69
+ export function POST(request: Request) {
70
+ return Response.json({ status: 'created' }, { status: 201 })
71
+ }
72
+ ```
73
+
74
+ ## CLI Commands
75
+
76
+ | Command | Description |
77
+ |---------|-------------|
78
+ | `float dev` | Start development server with HMR |
79
+ | `float build` | Build for production |
80
+ | `float start` | Start production server |
81
+ | `float info` | Show environment information |
82
+
83
+ ## Requirements
84
+
85
+ - Node.js 18+
86
+ - React 18.2+ or React 19+
87
+
88
+ ## License
89
+
90
+ MIT © Float.js
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@float.js/core",
3
- "version": "2.0.6",
3
+ "version": "2.0.7",
4
4
  "description": "Float.js Core - Ultra Modern Web Framework",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -38,8 +38,8 @@
38
38
  "ws": "^8.19.0"
39
39
  },
40
40
  "peerDependencies": {
41
- "react": "^18.2.0",
42
- "react-dom": "^18.2.0"
41
+ "react": "^18.2.0 || ^19.0.0",
42
+ "react-dom": "^18.2.0 || ^19.0.0"
43
43
  },
44
44
  "devDependencies": {
45
45
  "@types/mime-types": "^2.1.4",