Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8692079
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T00:14:55+00:00 2026-06-13T00:14:55+00:00

From a general glimpse of it, it seems that source code for Meteor app

  • 0

From a general glimpse of it, it seems that source code for Meteor app is open to the clients due to ‘Write one Javascript file, run it on client and server at once’ theme.

If server side source code of particular app open to client sides, wouldn’t it be easy for random person to copy them and create very look alike app?

Wouldn’t it be easy for person with evil purpose to find security holes in the app, because its server side code is open to the public?

For instance, in Meteor 0.5.0 ‘s new example of parties app, model.js file seems to be sent to the client side as well.

Am I misunderstanding something here?

Edit

Here is the part that I do not understand.

According to http://docs.meteor.com/#structuringyourapp,

Files outside the client and server subdirectories are loaded on both the client and the server! That’s the place for model definitions and other functions

I really do not understand it. If every model implementation, (including DB interaction) is sent to client, wouldn’t app be less secure and easily copied by other developers?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T00:14:56+00:00Added an answer on June 13, 2026 at 12:14 am

    Any code in the server/ folder will not get sent to the client (see http://docs.meteor.com/#structuringyourapp)

    EDIT

    Regarding the second part:

    Any code not in client/ or server/ is code you want to run both client and server side. So obviously it must be sent to the client.

    The reason that you would place model code in there is because of latency compensation. If you want to make updates to your data, it’s best to do it immediately client-side and then run the same code server side to ‘commit’ it for real. There are many examples where this would make sense.

    If there is ‘secret’ model code that you don’t want to run client side, you can certainly have a second server/models.js file.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to make a general error handling package that should be called from
I'm making a general timer that has functionality to count up from 0 or
I am currently learning F# and functional programming in general (from a C# background)
When I do File -> Import, General (from the pop-up window)->Existing Projects into Workspace,
From my understanding of the docs this general approach should work: begin try1 rescue
General wisdom is when you remove a component from the stage you also need
In general, I have the following scenario: Fetch product and its related data from
All examples are taken from the SICP Book: http://sicpinclojure.com/?q=sicp/1-3-3-procedures-general-methods This was motivated from the
I'm currently having problems to execute a command from a shell variable. In general
The main problem I'm having is pulling data from tables, but any other general

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.