New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

kintone-framework

Package Overview
Dependencies
Maintainers
1
Versions
34
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install
Package was removed
Sorry, it seems this package was removed from the registry

kintone-framework

A lightweight framework for Kintone JavaScript customizations.

latest
Source
npmnpm
Version
1.5.0
Version published
Maintainers
1
Created
Source

Contributors Forks Stargazers Issues MIT LinkedIn


Logo

kintone-framework

A lightweight framework for Kintone JavaScript customizations.
Explore the docs »

View Demo · Report Bug · Request Feature

Table of Contents

About The Project

kintone-framework (kfw) is a lightweight, modular framework designed to streamline JavaScript customizations for Kintone applications. It provides a unified API to access Kintone objects, a REST API client integration, and an encapsulated UI component library, enabling developers to build sophisticated, maintainable Kintone apps efficiently.

(back to top)

Built With

(back to top)

Quick Start

(async () => {
  // Initialize
  await kfw.init();

  kintone.events.on(kfw.str.app.record.create.show, async (event) => {
    // Kintone REST API Client
    const response = await kfw.api.record.getRecords({
      app: 1,
      query: "",
    });
    console.log("Records:", response.records);

    // Kintone UI Component
    const btn = new kfw.ui.Button({
      text: "Submit",
      type: "normal",
    });

    btn.addEventListener("click", () => {
      alert("Hello world.");
    });

    // Kintone JavaScript API (app, portal, space only)
    const spaceElement = kfw.app.record.getSpaceElement("Submit_Button");
    if (spaceElement) {
      spaceElement.appendChild(btn);
    }

    return event;
  });
})();

Installation

kintone-framework supports installation via file upload, CDN, or NPM

Option 1: File

Option 2: CDN

Usage of the CDN is recommended solely for development purposes. For production environments, it is strongly advised to download the kfw.min.js file directly from GitHub to mitigate any potential failures or issues associated with CDN delivery.

  • Copy the CDN URL below. Change the version number if needed.
  • Navigate to the JavaScript and CSS Customization section in Kintone App.
  • Paste the CDN URL.
  • Click on Save and Update App.

jsdelivr

https://cdn.jsdelivr.net/npm/kintone-framework@1.2.3/dist/kfw.min.js

// use a version range instead of a specific version
https://cdn.jsdelivr.net/npm/kintone-framework@1.2/dist/kfw.min.js
https://cdn.jsdelivr.net/npm/kintone-framework@1/dist/kfw.min.js

// omit the version completely to get the latest one
// you should NOT use this in production
https://cdn.jsdelivr.net/npm/kintone-framework/dist/kfw.min.js

unpkg

https://unpkg.com/kintone-framework@1.2.3/dist/kfw.min.js
https://unpkg.com/kintone-framework@1.2/dist/kfw.min.js
https://unpkg.com/kintone-framework@1/dist/kfw.min.js
https://unpkg.com/kintone-framework/dist/kfw.min.js

(back to top)

Usage

Initialization

(async () => {
  await kfw.init();

  // Your code here
})();

Kintone

Use kfw to access Kintone desktop and mobile App, Portal, and Space objects

APIDescription
kfw.init()Initializes the framework.
kfw.isMobileAppBoolean resolved from kintone.isMobileApp()
kfw.strUnified event string from app and mobile.app
kfw.appUnified object from kintone.app and kintone.mobile.app
kfw.portalUnified object from kintone.portal and kintone.mobile.portal
kfw.spaceUnified object from kintone.space and kintone.mobile.space
kintone.events.on(kfw.str.app.record.create.show, (event) => {
  console.log(kfw.isMobileApp);
  console.log(kfw.str);
  console.log(kfw.app);
  console.log(kfw.portal);
  console.log(kfw.space);

  return event;
});

Refer to Kintone JavaScript API Documentation.

API

Use kfw.api to interact with Kintone REST API

const response = await kfw.api.record.getRecords({
  app: kfw.app.getId(),
  query: 'status = "In Progress"',
});
console.log(response.records);

Refer to Kintone REST API Client Documentation.

UI

Use kfw.ui to access Kintone UI Components

const btn = new kfw.ui.Button({
  text: "Click Me",
  type: "submit",
});
kfw.app.record.getSpaceElement("Submit_Button").appendChild(btn);

Refer to Kintone UI Component Documentation.

(back to top)

Development

Prerequisites

  • Node.js
  • NPM

Setup

  • Clone the repository
git clone https://github.com/fathulfahmy/kintone-framework.git
  • Install dependencies
npm install
  • Build the project
npm run build

(back to top)

Roadmap

See the open issues for a full list of proposed features (and known issues).

(back to top)

Contributing

Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.

If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement". Don't forget to give the project a star! Thanks again!

  • Fork the project
  • Create your feature branch
git checkout -b feat/amazing-feature
  • Commit your changes
git commit -m 'feat: add some Amazing Feature'
  • Push to the branch
git push origin feat/amazing-feature
  • Open a pull request

(back to top)

Contributors

contrib.rocks image

License

Distributed under the MIT License. See LICENSE for more information.

(back to top)

Contact

Fathul Fahmy - LinkedIn - mfathulfahmy@gmail.com

Project Link: https://github.com/fathulfahmy/kintone-framework

(back to top)

Acknowledgments

(back to top)

Keywords

kfw

FAQs

Package last updated on 26 Aug 2025

Did you know?

Socket

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.

Install

Related posts