<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: zara qureshi</title>
    <description>The latest articles on DEV Community by zara qureshi (@zara_qureshi_fdca3ade9d57).</description>
    <link>https://dev.to/zara_qureshi_fdca3ade9d57</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3278594%2F955622ba-4992-4640-8add-2d77daa353e3.jpg</url>
      <title>DEV Community: zara qureshi</title>
      <link>https://dev.to/zara_qureshi_fdca3ade9d57</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/zara_qureshi_fdca3ade9d57"/>
    <language>en</language>
    <item>
      <title>Experimental Hono auth npm package</title>
      <dc:creator>zara qureshi</dc:creator>
      <pubDate>Thu, 11 Dec 2025 13:46:42 +0000</pubDate>
      <link>https://dev.to/zara_qureshi_fdca3ade9d57/experimental-hono-auth-npm-package-432c</link>
      <guid>https://dev.to/zara_qureshi_fdca3ade9d57/experimental-hono-auth-npm-package-432c</guid>
      <description>&lt;p&gt;Hey folks 👋&lt;/p&gt;

&lt;p&gt;I’ve been working on an authentication system (&lt;a href="https://www.npmjs.com/package/@zaraqdev/auth-service" rel="noopener noreferrer"&gt;@zaraqdev/auth-service&lt;/a&gt;) and I’m kinda stuck deciding the best architecture. (Yes I know that there are already multiple libraries out there but i just wanted to try my hand out here and see how it could actually work)&lt;br&gt;
I’d love some feedback from people who’ve built auth systems, npm packages, or microservices before.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;What I’m Building&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;I’m making an auth package that devs can drop into their app without having to write all the usual boilerplate (login, register, JWT, email verification, etc).&lt;/p&gt;

&lt;p&gt;The idea is:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;import { initAuth } from "auth-core";

const auth = initAuth({
  DB_TYPE: "mongo",
  existingConnection: db,
  DATABASE_URL://optional if connection doesnt already exist
});
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;That’s it.&lt;br&gt;
No extra DB, no huge setup.&lt;br&gt;
Just plug in your DB + go.&lt;/p&gt;

&lt;p&gt;I also want to support optional route handlers like:&lt;/p&gt;

&lt;p&gt;&lt;code&gt;app.route("/auth", honoAuthRoutes());&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;or inside Remix:&lt;br&gt;
&lt;code&gt;&lt;br&gt;
server.use("/auth/*", honoAuthRoutes());&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;Basically: auth as a plugin.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;What I WANT this project to be&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Framework-agnostic&lt;/p&gt;

&lt;p&gt;Works with Remix, Hono, Express, etc&lt;/p&gt;

&lt;p&gt;Lets users pass their own database connection&lt;/p&gt;

&lt;p&gt;Doesn’t force anyone to run an extra server&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Issues I’m Running Into&lt;/strong&gt;&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;I don’t want my npm package to depend on Hono&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;I want the core auth logic to be clean, but for testing and route adapters I still need Hono.&lt;/p&gt;

&lt;p&gt;Not sure if it should be a peerDependency or what.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Remix + Hono together feels… weird&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Right now if someone uses my package in Remix, they have to spin up a Hono server inside their Remix server.&lt;/p&gt;

&lt;p&gt;That doesn’t feel right.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Exporting route handlers cleanly&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;I want the package to export:&lt;/p&gt;

&lt;p&gt;core logic&lt;/p&gt;

&lt;p&gt;controllers&lt;/p&gt;

&lt;p&gt;hono routes&lt;/p&gt;

&lt;p&gt;express routes&lt;/p&gt;

&lt;p&gt;…without forcing every user to install every framework.&lt;br&gt;
Tricky.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;What I Need Advice On&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;What’s the best way to structure dependencies?&lt;br&gt;
Peer deps? Optional deps? Separate packages?&lt;/p&gt;

&lt;p&gt;Is mounting Hono routes inside Remix acceptable?&lt;br&gt;
Or am I doing something cursed?&lt;/p&gt;

&lt;p&gt;How would YOU architect this whole thing?&lt;br&gt;
I want it to feel simple for the user but internally clean.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;ANY tips, suggestions, warnings are welcome&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Honestly, if you’ve built:&lt;/p&gt;

&lt;p&gt;auth systems&lt;/p&gt;

&lt;p&gt;SDKs&lt;/p&gt;

&lt;p&gt;reusable npm packages&lt;/p&gt;

&lt;p&gt;framework adapters&lt;/p&gt;

&lt;p&gt;I’d really appreciate your thoughts.&lt;br&gt;
I don’t want to overcomplicate this now and regret it later.&lt;/p&gt;

&lt;p&gt;Thanks in advance!&lt;/p&gt;

&lt;p&gt;Github repo: &lt;a href="https://github.com/ZaraQureshi/AuthenticationSystem" rel="noopener noreferrer"&gt;https://github.com/ZaraQureshi/AuthenticationSystem&lt;/a&gt; (server branch has the code that actually works as api)&lt;/p&gt;

</description>
      <category>npm</category>
      <category>discuss</category>
      <category>architecture</category>
      <category>security</category>
    </item>
    <item>
      <title>Wellness Planning Made Easy: Diet, Exercise &amp; Smart Scheduling</title>
      <dc:creator>zara qureshi</dc:creator>
      <pubDate>Fri, 04 Jul 2025 15:18:26 +0000</pubDate>
      <link>https://dev.to/zara_qureshi_fdca3ade9d57/wellness-planning-made-easy-diet-exercise-smart-scheduling-3930</link>
      <guid>https://dev.to/zara_qureshi_fdca3ade9d57/wellness-planning-made-easy-diet-exercise-smart-scheduling-3930</guid>
      <description>&lt;p&gt;This is a submission for the &lt;a href="https://dev.to/challenges/runnerh"&gt;Runner H "AI Agent Prompting" Challenge&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Usecase&lt;/strong&gt;&lt;br&gt;
A personalized diet and exercise planner that will help individuals across different job description who struggle to accommodate healthy habits in their lifestyle.&lt;br&gt;
The planner will &lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;Take user's dietary and workout details as input &lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Give a google document that will have the personally curated plan &lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Schedule events in the google calendar to alert the user &lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Results&lt;/strong&gt;&lt;br&gt;
Google calendar screenshot:&lt;br&gt;
&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fr4qk23gofgip6k9953r6.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fr4qk23gofgip6k9953r6.png" alt="Image description" width="800" height="364"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Google Doc created:&lt;br&gt;
&lt;a href="https://docs.google.com/document/d/17epd-v0-pIVQUEBH9ou-nrrV1wcyE7ilRAb6rgvLCcs/edit?usp=sharing" rel="noopener noreferrer"&gt;https://docs.google.com/document/d/17epd-v0-pIVQUEBH9ou-nrrV1wcyE7ilRAb6rgvLCcs/edit?usp=sharing&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Demo run:&lt;br&gt;
&lt;a href="https://runner.hcompany.ai/chat/ef7344b7-bdf4-4961-969a-640f55195d31/share" rel="noopener noreferrer"&gt;runner.hcompany.ai&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Prompt used:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;You are a certified dietician and fitness expert. Based on the user’s inputs, create a personalized daily diet and exercise plan tailored to their routine and wellness goals.

🧾 User Input (to be filled):
Age: [Enter age]

Gender: [Enter gender]

Height: [Enter height]

Weight: [Enter weight]

Primary Goal: [e.g., increase energy, fat loss, muscle gain, etc.]

Occupation &amp;amp; Activity Level: [e.g., desk job, field work]

Workday Routine (wake/sleep times): [Enter timing]

Weekend Routine (differences): [Enter]

Diet Type: [e.g., veg, non-veg, vegan, etc.]

Food Allergies/Health Conditions: [List or “None”]

Meals/Snacks per Day: [e.g., 3 meals, 1 snack]

Caffeine/Alcohol Habits: [e.g., tea only, none, etc.]

Current Workout Routine: [Enter or “None”]

Preferred Workout Type: [e.g., walking, yoga, home workouts]

Days per Week Available for Exercise: [e.g., 4]

✅ Your Tasks:
Design a weekday and weekend-specific diet + exercise plan aligned with the user's primary goal.

Include relevant video links (e.g., YouTube) for the recommended exercises.

Set small milestone goals with daily, weekly, and monthly checkpoints for progress tracking.

Present the full plan in a well-structured Google Doc.

Set up Google Calendar alerts/reminders for meals, workouts, and check-ins for 1 week, categorized by importance (e.g., high/medium/low priority).


&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



</description>
      <category>devchallenge</category>
      <category>runnerhchallenge</category>
      <category>ai</category>
    </item>
  </channel>
</rss>
