Buddhism.js
Buddhist concepts as JavaScript
Install / Use
/learn @mikeal/Buddhism.jsREADME
buddhism.js
Buddhist concepts as JavaScript
Pratītyasamutpāda (Dependent Origination)
Basic principals.
const a = (_this, that) => {
if (_this) that()
}
const b = (that) => {
const _this = false
// vm knows this will never be called, this code can be dropped
// and will never exist
if (_this) that()
}
const c = (_this) => {
const that = false
// vm knows this will never be called, this code can be dropped
// and will never exist
if (that && _this) return _this
}
Twelve-fold chain
<img src="https://user-images.githubusercontent.com/579/98151375-e9aede80-1e84-11eb-80f3-06cb9468c6f3.jpg" width="400">As a functional loop.
// Avijjā (Ignorance)
const avijja = (...args) => sankhara(...args)
// Saṅkhāra (Conditioning)
const sankhara = (...args) => vinnana(...args)
// Viññāṇa (Consciousness)
const vinnana = (...args) => namarupa(...args)
// Nāmarūpa (Name & Form)
const namarupa = (...args) => salayatana(...args)
// Saḷāyatana (Six Sense Bases)
const salayatana = (...args) => phassa(...args)
// Phassa (Contact)
const phassa = (...args) => vedana(...args)
// Vedanā (Sensation)
const vedana = (...args) => tanha(...args)
// Taṇhā (Craving)
const tanha = (...args) => upadana(...args)
// Upādāna (Clinging)
const upadana = (...args) => bhava(...args)
// Bhava (Being)
const bhava = (...args) => jati(...args)
// Jāti (Birth)
const jati = (...args) => jaramarana(...args)
// Jarāmaraṇa (Old Age & Death)
const jaramarana = (...args) => avijja(...args)
Related Skills
node-connect
349.2kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
109.5kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
349.2kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
349.2kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
View on GitHub67/100
Security Score
Audited on Jun 22, 2025
No findings
