Skip to content

aminahbl/owili-sutta

Repository files navigation

owili-sutta

Built with Astro Netlify Status

A site that serves random suttas. No friction from interfaces, options, collection navigation, or whatever; just get a sutta! The primary focus is on short text that can be read in approximately 5mins.

Project

  • Hosted on Netlify (under GitLab account).

Local development:

ntl login
ntl dev

Data

Sourced from SuttaCentral's API.

Sutta list data prep

LAST UPDATED: 2025-04-25T15:28:36.396Z

Short suttas

curl -s https://api.github.com/repos/suttacentral/bilara-data/git/trees/published:translation/en?recursive=1 | jq '[
    .tree[]
  | select(
      .type=="blob"
      and ( .path | test("(^|/)(vinaya|name)/") | not )
      and .size > 300
      and .size < 7000
    )
  | ( .path | split("/") ) as $p
  | { id:($p[-1]|split("_")[0]), translator:$p[0] }
]' > data/short-suttas.json

Long suttas

curl -s https://api.github.com/repos/suttacentral/bilara-data/git/trees/published:translation/en?recursive=1 | jq '[
    .tree[]
  | select(
      .type=="blob"
      and ( .path | test("(^|/)(vinaya|name)/") | not )
      and .size > 7000
    )
  | ( .path | split("/") ) as $p
  | { id:($p[-1]|split("_")[0]), translator:$p[0] }
]' > data/long-suttas.json

About

Get a sutta quick

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors