npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2025 – Pkg Stats / Ryan Hefner

@zango-core/crm-framework

v1.0.12

Published

Zango CRM React Application Framework - A dynamic CRM framework with customizable pages

Readme

Zango CRM React Framework

A dynamic CRM framework built with React that provides CRUD operations, profile views, and custom page capabilities out of the box.

Features

  • 🚀 Dynamic Page Types: CRUD, Profile360, and Custom pages
  • 📊 Advanced Data Tables: Server-side pagination, sorting, and filtering
  • 📝 Dynamic Forms: JSON Schema-based form generation
  • 🎨 API-driven Themes: Automatic theme application from API response
  • 🔌 Plugin Architecture: Add custom pages without modifying core code
  • 📱 Responsive Design: Works on desktop and mobile
  • 🔄 Smart Navigation: Automatic routing between SPA and server routes

Installation

pnpm install @zango-core/crm-framework

Quick Start

import React from 'react';
import * as ZangoFramework from '@zango-core/crm-framework';
import * as customPages from './custom/pages';

const { ZangoApp } = ZangoFramework;

function App() {
  return <ZangoApp customPages={customPages} />;
}

export default App;

Environment Setup

Create .env file:

VITE_API_BASE_URL=http://localhost:8000
VITE_PROXY_ROUTES=/api,/zango,/frame

API Integration

Your backend should return this structure from /frame/router/initialize:

{
  "menu": [
    {
      "uri": "/app/doctors",
      "name": "Doctors", 
      "icon": "👨‍⚕️",
      "page_type": "crud",
      "entity": "doctors"
    }
  ],
  "routes": [
    {
      "path": "/app/doctors",
      "page_type": "crud", 
      "entity": "doctors"
    }
  ],
  "profile_info": {
    "name": "John Doe",
    "user_role": "Admin"
  },
  "theme": {
    "colors": {
      "primary": "#5048ed",
      "secondary": "#6d7280"
    }
  }
}

Creating Custom Pages

  1. Create component in src/custom/pages/Dashboard.js:
import React from 'react';

const Dashboard = () => {
  return (
    <div style={{ padding: '24px' }}>
      <h1>Dashboard</h1>
      <p>Your custom content here</p>
    </div>
  );
};

export default Dashboard;
  1. Export in src/custom/pages/index.js:
export { default as Dashboard } from './Dashboard';
  1. Add to your API menu configuration:
{
  "uri": "/app/dashboard",
  "name": "Dashboard",
  "page_type": "custom",
  "component": "Dashboard"
}

Development Commands

# Development with hot reload
pnpm run dev

# Production build
pnpm run build

# Library build for npm publishing
pnpm run build:lib

# Zango platform build (creates single file for Zango platform)
pnpm run build:appbuilder

API Service Usage

The framework provides a modern API service:

import { 
  fetchAppInitData,
  fetchUserProfile,
  callApi 
} from '@zango-core/crm-framework';

// Direct convenience functions
const appData = await fetchAppInitData();
const profile = await fetchUserProfile();

// Custom API calls
const result = await callApi({
  url: '/custom/endpoint',
  type: 'GET'
});

if (result.success) {
  console.log(result.response);
}

Smart Navigation

Use SmartLink for automatic navigation handling:

import { SmartLink } from '@zango-core/crm-framework';

// Automatically uses React Router or browser navigation
<SmartLink to="/app/appointments">Appointments</SmartLink>
<SmartLink to="/external-page">External Page</SmartLink>

Architecture

  • Framework (src/framework/): Core components and functionality
  • Custom (src/custom/): Your customizations and pages
  • API-driven: Routes, menu, and theme come from API
  • Plugin-based: Add functionality without modifying core

Documentation

See COMPOSABLE-USAGE-EXAMPLES.md for detailed guides on:

  • Page types (CRUD, Profile360, Custom)
  • API integration patterns
  • Theme customization
  • Smart navigation system
  • Development workflow
  • Composable architecture patterns

License

MIT © Zango Team