Habitica is a free habit and productivity app that treats your real life like a game. Habitica can help you achieve your goals to become healthy and happy.
Write custom Node.js code and use any of the 400k+ npm packages available. Refer to the Pipedream Node docs to learn more.
Habitica is a website and app that helps you form good habits and stick to
them. You can use the Habitica API to help you build applications that help
people form and stick to good habits.
Here are some examples of what you can build using the Habitica API:
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
habitica: {
type: "app",
app: "habitica",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://habitica.com/api/v3/user`,
headers: {
"x-client": `3a326108-1895-4c23-874e-37668c75f2ad-Pipedream`,
"x-api-user": `${this.habitica.$auth.user_id}`,
"x-api-key": `${this.habitica.$auth.api_token}`,
},
})
},
})
// To use previous step data, pass the `steps` object to the run() function
export default defineComponent({
async run({ steps, $ }) {
// Return data to use it in future steps
return steps.trigger.event
},
})