
Security News
ECMAScript 2025 Finalized with Iterator Helpers, Set Methods, RegExp.escape, and More
ECMAScript 2025 introduces Iterator Helpers, Set methods, JSON modules, and more in its latest spec update approved by Ecma in June 2025.
frontend-hamroun
Advanced tools
A lightweight frontend JavaScript framework with React-like syntax
A lightweight, high-performance React-like framework with built-in TypeScript support and server-side rendering capabilities.
# Install CLI globally
npm install -g frontend-hamroun
# Create new project
frontend-hamroun create my-app
cd my-app
# Start development
npm run dev
frontend-hamroun add:component Button
frontend-hamroun add:component Header
frontend-hamroun add:page home
frontend-hamroun add:page about
frontend-hamroun add:api users
frontend-hamroun add:api posts
import { render, useState, useEffect } from 'frontend-hamroun';
function App() {
const [count, setCount] = useState(0);
useEffect(() => {
document.title = `Count: ${count}`;
}, [count]);
return (
<div>
<h1>Frontend Hamroun App</h1>
<p>Count: {count}</p>
<button onClick={() => setCount(count + 1)}>
Increment
</button>
</div>
);
}
render(<App />, document.getElementById('root'));
// Client-side rendering
render(element: JSX.Element, container: HTMLElement): void
// Server-side rendering + hydration
renderToString(element: JSX.Element): Promise<string>
hydrate(element: JSX.Element, container: HTMLElement): void
// State management
const [state, setState] = useState(initialValue);
const ref = useRef(initialValue);
// Side effects
useEffect(() => {
// Effect code
return () => {
// Cleanup
};
}, [dependencies]);
// Performance
const memoized = useMemo(() => computation(), [deps]);
// Error handling
const [error, resetError] = useErrorBoundary();
const Context = createContext(defaultValue);
const value = useContext(Context);
// Provider
<Context.Provider value={value}>
{children}
</Context.Provider>
# Build for production
npm run build
# Start production server
npm run start
# Build with SSR
npm run build:ssr
# Build Docker image
docker build -t my-app .
# Run container
docker run -p 3000:3000 my-app
Metric | Frontend Hamroun | React | Vue |
---|---|---|---|
Bundle Size (gzipped) | 8.2 KB | 42.2 KB | 36.1 KB |
Initial Render | 12ms | 18ms | 15ms |
Update Performance | 3.2ms | 4.8ms | 4.1ms |
Memory Usage | 2.1 MB | 3.8 MB | 3.2 MB |
git checkout -b feature/new-feature
git commit -am 'Add new feature'
git push origin feature/new-feature
This project is licensed under the MIT License - see the LICENSE file for details.
Frontend Hamroun - Building the future of web development, one component at a time.
FAQs
A lightweight frontend JavaScript framework with React-like syntax
We found that frontend-hamroun demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
ECMAScript 2025 introduces Iterator Helpers, Set methods, JSON modules, and more in its latest spec update approved by Ecma in June 2025.
Security News
A new Node.js homepage button linking to paid support for EOL versions has sparked a heated discussion among contributors and the wider community.
Research
North Korean threat actors linked to the Contagious Interview campaign return with 35 new malicious npm packages using a stealthy multi-stage malware loader.